diff options
| author | Andy Lutomirski <[email protected]> | 2012-07-05 23:00:11 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-07-06 17:34:38 +0000 |
| commit | 9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb (patch) | |
| tree | d69ebd5c2e2af1a2de34cc8abe2d57a4eebd35a5 /tools/perf/util/trace-event-scripting.c | |
| parent | Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/o... (diff) | |
| download | kernel-9ab4233dd08036fe34a89c7dc6f47a8bf2eb29eb.tar.gz kernel-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 <[email protected]>
Cc: Miklos Szeredi <[email protected]>
Cc: Badari Pulavarty <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: [email protected]
Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
