Page MenuHomeFreeBSD

re: Make sure re_rxeof() is called in net epoch context
ClosedPublic

Authored by markj on Aug 13 2025, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 5, 1:42 AM
Unknown Object (File)
Wed, Nov 5, 1:41 AM
Unknown Object (File)
Wed, Nov 5, 1:34 AM
Unknown Object (File)
Sun, Nov 2, 1:34 PM
Unknown Object (File)
Fri, Oct 17, 6:03 AM
Unknown Object (File)
Oct 10 2025, 6:58 AM
Unknown Object (File)
Oct 10 2025, 6:58 AM
Unknown Object (File)
Oct 10 2025, 6:58 AM
Subscribers

Details

Summary

It may pass packets up the stack and so needs to be called in a network
epoch. When a watchdog timeout happens, we need to enter a section
explicitly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Aug 13 2025, 2:44 PM
adrian added a subscriber: adrian.

good catch!

This revision is now accepted and ready to land.Aug 13 2025, 2:52 PM
zlei added a subscriber: zlei.
zlei added inline comments.
sys/dev/re/if_re.c
3582

Well, I thought the entire re_watchdog() should be in net epoch section, but re_detach() has done the right thing so the ifp and its related members are guaranteed to be alive, so let re_rxeof() be in net epoch section should be sufficient.