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, Dec 7, 2:33 AM
Unknown Object (File)
Wed, Nov 26, 9:19 PM
Unknown Object (File)
Tue, Nov 25, 6:00 PM
Unknown Object (File)
Tue, Nov 25, 2:31 PM
Unknown Object (File)
Sat, Nov 22, 12:18 AM
Unknown Object (File)
Nov 5 2025, 1:42 AM
Unknown Object (File)
Nov 5 2025, 1:41 AM
Unknown Object (File)
Nov 5 2025, 1: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.