HomeFreeBSD

net: Enter a net epoch around protocol if_up/down notifications

Description

net: Enter a net epoch around protocol if_up/down notifications

When traversing a list of interface addresses, we need to be in a net
epoch section, and protocol ctlinput routines need a stable reference to
the address.

Reported by: syzbot+3219af764ead146a3a4e@syzkaller.appspotmail.com
Reviewed by: kp, melifaro
Sponsored by: The FreeBSD Foundation

(cherry picked from commit b1e6a792d68e9c59740d5e925405d8d4343d099b)

Details

Provenance
markjAuthored on Sep 10 2021, 1:07 PM
Parents
rGb4194a432b59: callout(9): Allow spin locks use with callout_init_mtx().
Branches
Unknown
Tags
Unknown