https://github.com/torvalds/linux
Revision 9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb authored by Andy Lutomirski on 05 July 2012, 23:00:11 UTC, committed by Linus Torvalds on 06 July 2012, 17:34:38 UTC
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")

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>
Cc: stable@vger.kernel.org
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 1b7fa4c
History
Tip revision: 9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb authored by Andy Lutomirski on 05 July 2012, 23:00:11 UTC
mm: Hold a file reference in madvise_remove
Tip revision: 9ab4233
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 5.3 KB
Makefile -rw-r--r-- 2.3 KB
gen_init_cpio.c -rw-r--r-- 13.1 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top