]> git.karo-electronics.de Git - karo-tx-linux.git/commit
audit: don't free_chunk() after fsnotify_add_mark()
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 15 Aug 2012 10:55:22 +0000 (12:55 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Sep 2012 02:37:02 +0000 (03:37 +0100)
commit7d78916c93c07eedb9cf37f5b09e62fbd65968cc
treedf626fa715d4b75aef8b307dc2b3a0d801e4f244
parent43007cdf7ef0067581def99b20ac1625e33008c9
audit: don't free_chunk() after fsnotify_add_mark()

commit 0fe33aae0e94b4097dd433c9399e16e17d638cd8 upstream.

Don't do free_chunk() after fsnotify_add_mark().  That one does a delayed unref
via the destroy list and this results in use-after-free.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
kernel/audit_tree.c