Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/net



Module Name:    src
Committed By:   ozaki-r
Date:           Tue Apr 22 05:47:51 UTC 2025

Modified Files:
        src/sys/net: if_bridge.c if_bridgevar.h

Log Message:
bridge: resolve a race condition in bridge_stop()

Without BRIDGE_LOCK, the callout can be scheduled after callout_halt.

Note that we should avoid depending on IFF_RUNNING which can be racy.
Suggested by riastradh at https://mail-index.netbsd.org/source-changes-d/2025/04/16/msg014470.html

PR kern/59340


To generate a diff of this commit:
cvs rdiff -u -r1.198 -r1.199 src/sys/net/if_bridge.c
cvs rdiff -u -r1.39 -r1.40 src/sys/net/if_bridgevar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index