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
F144442296: D51885.id161866.diff
Sun, Feb 8, 11:26 AM
F144290971: D51885.id160296.diff
Sat, Feb 7, 4:29 PM
Unknown Object (File)
Sat, Jan 31, 7:27 AM
Unknown Object (File)
Jan 4 2026, 11:18 PM
Unknown Object (File)
Dec 7 2025, 2:33 AM
Unknown Object (File)
Nov 26 2025, 9:19 PM
Unknown Object (File)
Nov 25 2025, 6:00 PM
Unknown Object (File)
Nov 25 2025, 2:31 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66212
Build 63095: arc lint + arc unit

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.