diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-19 18:30:45 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-27 03:08:52 +0200 |
commit | 352e3b249284235e00745f3e71fc348b913e5deb (patch) | |
tree | 4d0c7342c95cb30f59b706048486c72a78be9f77 /fs/fcntl.c | |
parent | events: don't use get_unused_fd_flags() when get_unused_fd() will do (diff) | |
download | linux-352e3b249284235e00745f3e71fc348b913e5deb.tar.xz linux-352e3b249284235e00745f3e71fc348b913e5deb.zip |
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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions