]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: Allocate overflow events with proper type
authorJan Kara <jack@suse.cz>
Fri, 21 Feb 2014 18:14:11 +0000 (19:14 +0100)
committerJan Kara <jack@suse.cz>
Tue, 25 Feb 2014 10:18:06 +0000 (11:18 +0100)
commit722b8cc687a09c0e267a2c64abf257dec1375e4c
treec9bc7bd04326afc92d85a476d28453218c40e14e
parenta8feb9d3595d33387f3f7037e890721d81c361a6
fsnotify: Allocate overflow events with proper type

Commit e86c6342910c "fsnotify: do not share events between notification
groups" used overflow event statically allocated in a group with the
size of the generic notification event. This causes problems because
some code looks at type specific parts of event structure and gets
confused by a random data it sees there and causes crashes.

Fix the problem by allocating overflow event with type corresponding to
the group type so code cannot get confused.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c
fs/notify/group.c
fs/notify/inotify/inotify_user.c
fs/notify/notification.c
include/linux/fsnotify_backend.h