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)
Sun, Mar 29, 4:39 PM
Unknown Object (File)
Sun, Mar 29, 1:01 AM
Unknown Object (File)
Thu, Mar 26, 1:09 AM
Unknown Object (File)
Wed, Mar 25, 4:13 PM
Unknown Object (File)
Tue, Mar 24, 7:17 PM
Unknown Object (File)
Thu, Mar 19, 11:19 AM
Unknown Object (File)
Wed, Mar 18, 5:20 PM
Unknown Object (File)
Wed, Mar 18, 4:34 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.