summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2012-07-05 16:00:11 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-06 10:34:38 -0700
commit9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb (patch)
treed69ebd5c2e2af1a2de34cc8abe2d57a4eebd35a5 /crypto
parent1b7fa4c27111757789b21bb78543317dad4cfd08 (diff)
downloadlinux-stable-9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb.tar.gz
linux-stable-9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb.tar.bz2
linux-stable-9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb.zip
mm: Hold a file reference in madvise_remove
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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions