fsnotify: Allocate overflow events with proper type
Commit 7053aee2 "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>
Showing
- fs/notify/fanotify/fanotify_user.c 13 additions, 0 deletionsfs/notify/fanotify/fanotify_user.c
- fs/notify/group.c 7 additions, 1 deletionfs/notify/group.c
- fs/notify/inotify/inotify_user.c 12 additions, 0 deletionsfs/notify/inotify/inotify_user.c
- fs/notify/notification.c 2 additions, 2 deletionsfs/notify/notification.c
- include/linux/fsnotify_backend.h 1 addition, 1 deletioninclude/linux/fsnotify_backend.h
Loading
Please register or sign in to comment