NetBSD-Bugs archive

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

kern/59340: bridge: a race condition on bridge_stop



>Number:         59340
>Category:       kern
>Synopsis:       bridge: a race condition on bridge_stop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 22 05:35:00 +0000 2025
>Originator:     Ryota Ozaki
>Release:        -current
>Organization:
>Environment:
>Description:
bridge_stop tries to stop callout by calling callout_halt.  However, callout_reset can be called after calling callout_halt, which is not expected, because there is a race condition (TOCTOU) on if_flags between bridge_stop and bridge_rtage_work that calls callout_reset.
>How-To-Repeat:
N/A
>Fix:
Ensure bridge_rtage_work not to call callout_reset before calling callout_halt in bridge_stop.



Home | Main Index | Thread Index | Old Index