]> git.baikalelectronics.ru Git - kernel.git/commit
futex: fix handling of read-only-mapped hugepages
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Dec 2013 17:38:42 +0000 (09:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Dec 2013 17:38:42 +0000 (09:38 -0800)
commit782e8022b8429acd7c94a6fdfec4ca77e2c66712
tree5b4eba241978619d763e5ba6209e111299a22bd3
parent6e247c4bbe935b111943c430e9c1adba8b4b53c3
futex: fix handling of read-only-mapped hugepages

The hugepage code had the exact same bug that regular pages had in
commit 6f1db015c7d4 ("futexes: Remove rw parameter from
get_futex_key()").

The regular page case was fixed by commit d51e7cd052aa ("futex: Fix
regression with read only mappings"), but the transparent hugepage case
(added in 08a83592d582: "thp: update futex compound knowledge") case
remained broken.

Found by Dave Jones and his trinity tool.

Reported-and-tested-by: Dave Jones <davej@fedoraproject.org>
Cc: stable@kernel.org # v2.6.38+
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Darren Hart <dvhart@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/futex.c