]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
eventpoll: kill __ep_remove()
authorChristian Brauner <brauner@kernel.org>
Thu, 23 Apr 2026 09:56:06 +0000 (11:56 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 23 Apr 2026 22:35:56 +0000 (00:35 +0200)
commite9e5cd40d7c403e19f21d0f7b8b8ba3a76b58330
tree5eacf4f9d714168d831dad504644ee64fb164a35
parent0f7bdfd413000985de09fc39eb9efa1e091a3ce0
eventpoll: kill __ep_remove()

Remove the boolean conditional in __ep_remove() and restructure the code
so the check for racing with eventpoll_release_file() are only done in
the ep_remove_safe() path where they belong.

Link: https://patch.msgid.link/20260423-work-epoll-uaf-v1-3-2470f9eec0f5@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/eventpoll.c