The code at first looks pretty safe, but ep_free does a plain kfree on the eventpoll struct with no RCU grace period, so the walker follows epi->ep into a target that's already been freed and reused.
CVE-2025-38349 In the Linux kernel, the following vulnerability has been resolved:
eventpoll: don't decrement ep refcount while still holding the ep mutex
Jann Horn points out tha… cve.org/CVERecord?id=CVE-202…
🔥 It's poll time, party people! 🚀
Your voice can shape this epic event!
Choose your ultimate experience and let's make this event unforgettable!
If you are yet to get your ticket, visit: bit.ly/Beach-Bash-Party to grab one!
#ChooseYourVibe#EventPoll
از چه روشی استفاده میکنی؟ مثلا اگه polling داری اسمشو بزار EventPoll اگه با queue هست بزار MessageQueue اگه از سیستم کال خاصی استفاده میکنی سعی کن توی اسم کلاست استفاده کنی.
Event bus بنظرم نزدیک تره
i tried writing an eventpoll-based HTTP server and it can handle ~10k connections in a few milliseconds, but when you get closer to ~100k connections you need to start killing idle sockets quickly and i guess the lesson is networking is WIIIIIIILD