Re: [PATCH] rmap: fix pgoff calculation to handle hugepage correctly

From: Rik van Riel
Date: Tue Jul 01 2014 - 13:42:48 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/01/2014 10:46 AM, Naoya Horiguchi wrote:
> I triggered VM_BUG_ON() in vma_address() when I try to migrate an
> anonymous hugepage with mbind() in the kernel v3.16-rc3. This is
> because pgoff's calculation in rmap_walk_anon() fails to consider
> compound_order() only to have an incorrect value. So this patch
> fixes it.
>
> Signed-off-by: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>

Acked-by: Rik van Riel <riel@xxxxxxxxxx>

- --
All rights reversed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTsvMDAAoJEM553pKExN6DFIkH/1JOOZq3VtVLMr4f5I7QsqkE
/g3QU5JKbCdQZKeV+X1jFbZOyU7/B5gwSTVJMBIlAfFjm/tu21OgUeKAafvgfQHl
EVzisjPg1kN5jgtRrO61u4Bnt0rkLWSobBhDpwxslU2nWHNjVlyTBV5Hu2WcpWPB
PHoo+qt1/W185tVe6jeb6VpSZwGDXHWj7AQXGCBO3llCIythpbi/+u1IeoL3jW7V
UG2/xWZiRVBAoKoD4myvJvY6ny8o+WLpZh505WWJKM6WuTvSPhyOt+K1tWV3Sttq
km1aVgnSBYiH6m7if1PwLFtFTlvwhiDI2VZwW+GwhXWak6dh6lS+TssxOw1M9U4=
=zYJe
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/