diff options
| author | Miklos Szeredi <[email protected]> | 2012-01-12 16:59:46 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-01-15 02:01:42 +0000 |
| commit | fed474857efbed79cd390d0aee224231ca718f63 (patch) | |
| tree | 8935acfe89c87fe63f72bb114fa17f97f7c26564 /fs/proc/array.c | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ros... (diff) | |
| download | kernel-fed474857efbed79cd390d0aee224231ca718f63.tar.gz kernel-fed474857efbed79cd390d0aee224231ca718f63.zip | |
fsnotify: don't BUG in fsnotify_destroy_mark()
Removing the parent of a watched file results in "kernel BUG at
fs/notify/mark.c:139".
To reproduce
add "-w /tmp/audit/dir/watched_file" to audit.rules
rm -rf /tmp/audit/dir
This is caused by fsnotify_destroy_mark() being called without an
extra reference taken by the caller.
Reported by Francesco Cosoleto here:
https://bugzilla.novell.com/show_bug.cgi?id=689860
Fix by removing the BUG_ON and adding a comment about not accessing mark after
the iput.
Signed-off-by: Miklos Szeredi <[email protected]>
CC: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
