aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2012-07-05 16:00:11 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-16 08:47:52 -0700
commite12fcd38abe8a869cbabd77724008f1cf812a3e7 (patch)
tree3c5c6c1d8547894aa4859a420ed1601b48333fa6 /arch/x86
parentf8e252d7a5687e0c9f11d3c36e3a867a1e64b418 (diff)
downloadkernel_samsung_crespo-e12fcd38abe8a869cbabd77724008f1cf812a3e7.tar.gz
kernel_samsung_crespo-e12fcd38abe8a869cbabd77724008f1cf812a3e7.tar.bz2
kernel_samsung_crespo-e12fcd38abe8a869cbabd77724008f1cf812a3e7.zip
mm: Hold a file reference in madvise_remove
commit 9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb upstream. Otherwise the code races with munmap (causing a use-after-free of the vma) or with close (causing a use-after-free of the struct file). The bug was introduced by commit 90ed52ebe481 ("[PATCH] holepunch: fix mmap_sem i_mutex deadlock") [bwh: Backported to 3.2: - Adjust context - madvise_remove() calls vmtruncate_range(), not do_fallocate()] [luto: Backported to 3.0: Adjust context] Cc: Hugh Dickins <hugh@veritas.com> Cc: Miklos Szeredi <mszeredi@suse.cz> Cc: Badari Pulavarty <pbadari@us.ibm.com> Cc: Nick Piggin <npiggin@suse.de> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions