aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile.help
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2015-08-06 15:46:42 -0700
committerMoyster <oysterized@gmail.com>2016-08-26 19:59:37 +0200
commitff0fdcc41838613724cf92babd8772a9a8e60f59 (patch)
treead3b1a756c33df6f1b55db709e3215013959c0f6 /scripts/Makefile.help
parent2396d7be1fba23f07c16a669ea151f4773f9da5a (diff)
fsnotify: fix oops in fsnotify_clear_marks_by_group_flags()
commit 8f2f3eb59dff4ec538de55f2e0592fec85966aab upstream. fsnotify_clear_marks_by_group_flags() can race with fsnotify_destroy_marks() so that when fsnotify_destroy_mark_locked() drops mark_mutex, a mark from the list iterated by fsnotify_clear_marks_by_group_flags() can be freed and thus the next entry pointer we have cached may become stale and we dereference free memory. Fix the problem by first moving marks to free to a special private list and then always free the first entry in the special list. This method is safe even when entries from the list can disappear once we drop the lock. Signed-off-by: Jan Kara <jack@suse.com> Reported-by: Ashish Sangwan <a.sangwan@samsung.com> Reviewed-by: Ashish Sangwan <a.sangwan@samsung.com> Cc: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'scripts/Makefile.help')
0 files changed, 0 insertions, 0 deletions