eventpoll: defer struct eventpoll free to RCU grace period

In certain situations, ep_free() in eventpoll.c will kfree the epi->ep
eventpoll struct while it still being used by another concurrent thread.
Defer the kfree() to an RCU callback to prevent UAF.

Fixes: f2e467a482 ("eventpoll: Fix semi-unbounded recursion")
Signed-off-by: Nicholas Carlini <nicholas@carlini.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Nicholas Carlini 2026-03-31 15:25:32 +02:00 • committed by Christian Brauner
commit 07712db808
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2