Skip to content
Commit 352e3b24 authored by Al Viro's avatar Al Viro
Browse files

fanotify: sanitize failure exits in copy_event_to_user()



* do copy_to_user() before prepare_for_access_response(); that kills
the need in remove_access_response().
* don't do fd_install() until we are past the last possible failure
exit.  Don't use sys_close() on cleanup side - just put_unused_fd()
and fput().  Less racy that way...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ab72a702
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment