mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
c915d8f591
When inotify_freeing_mark() races with inotify_handle_inode_event() it
can happen that inotify_handle_inode_event() sees that i_mark->wd got
already reset to -1 and reports this value to userspace which can
confuse the inotify listener. Avoid the problem by validating that wd is
sensible (and pretend the mark got removed before the event got
generated otherwise).
CC: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
inotify_fsnotify.c | ||
inotify_user.c | ||
inotify.h | ||
Kconfig | ||
Makefile |