Skip to content
Rota Nacional

Radar ·

An epoll use-after-free race fixed with RCU

Published May 26, 2026, the post describes a use-after-free race in fs/eventpoll.c and commit 07712db80857, which replaces kfree() with kfree_rcu().

The post reports a use-after-free race in epoll, in fs/eventpoll.c. The fix identified by commit 07712db80857 replaces kfree() with kfree_rcu(), delaying the release of struct eventpoll until an RCU grace period has passed. The case illustrates using RCU to address this kind of race in kernel code.

To check the details and context of the change, consult the original post and verify commit 07712db80857 in the project history, comparing the change in fs/eventpoll.c. If you use AI to study or apply the material, avoid sending confidential code or logs without authorization, and check responses against the code and original sources.

Get new articles

Privacy, AI engineering and security in your inbox.

Rota Nacional

Bring privacy into your workflow.

30 days, no card, with a starting quota. After that, Pix credit from R$ 5,00.

Try free