mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
eventpoll: use-after-possible-free in epoll_create1()
As soon as we'd installed the file into descriptor table, it can get closed by another thread. Freeing ep in process... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
31605debdf
commit
98022748f6
@ -1654,8 +1654,8 @@ SYSCALL_DEFINE1(epoll_create1, int, flags)
|
||||
error = PTR_ERR(file);
|
||||
goto out_free_fd;
|
||||
}
|
||||
fd_install(fd, file);
|
||||
ep->file = file;
|
||||
fd_install(fd, file);
|
||||
return fd;
|
||||
|
||||
out_free_fd:
|
||||
|
Loading…
Reference in New Issue
Block a user