HomeFreeBSD

Fix unlocked access to ifnet address list

Description

Fix unlocked access to ifnet address list

in_broadcast() was iterating over the ifnet address list without
first taking an IF_ADDR_RLOCK. This could cause a panic if a
concurrent operation modified the list.

Reviewed by: bz
MFC after: 2 months
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7227

Details

Provenance
rstoneAuthored on
Reviewer
bz
Differential Revision
D7227: Fix unlocked access to ifnet address list
Parents
rS304436: Don't check for broadcast IPs on non-bcast pkts
Branches
Unknown
Tags
Unknown