diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-10-30 21:14:55 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-10-31 17:54:56 +0100 |
commit | 0d6ec079d6aaa098b978d6395973bb027c752a03 (patch) | |
tree | 681a9c667b5cf48e6166eecf12c9745ffc717fc4 /.mailmap | |
parent | fsnotify: clean up fsnotify_prepare/finish_user_wait() (diff) | |
download | linux-0d6ec079d6aaa098b978d6395973bb027c752a03.tar.xz linux-0d6ec079d6aaa098b978d6395973bb027c752a03.zip |
fsnotify: pin both inode and vfsmount mark
We may fail to pin one of the marks in fsnotify_prepare_user_wait() when
dropping the srcu read lock, resulting in use after free at the next
iteration.
Solution is to store both marks in iter_info instead of just the one we'll
be sending the event for.
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 9385a84d7e1f ("fsnotify: Pass fsnotify_iter_info into handle_event handler")
Cc: <stable@vger.kernel.org> # v4.12
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions