HomeFreeBSD

If there is a system with a bpf consumer running and a packet is wanted

Description

If there is a system with a bpf consumer running and a packet is wanted
to be transmitted but the arp cache entry expired, which triggers an arp request
to be sent, the bpf code might want to sleep but crash the system due
to a non sleep lock held from the arp entry not released properly.

Release the lock before calling the arp request code to solve the issue
as is done on all the other code paths.

PR: 200323
Approved by: ae, gnn(mentor)
MFC after: 1 week
Sponsored by: Netgate
Differential Revision: https://reviews.freebsd.org/D2828

Details

Provenance
eriAuthored on
Differential Revision
D2828: ARP request proper locking handling
Parents
rS284511: illumos compat: use flsl/flsll for highbit/highbit64
Branches
Unknown
Tags
Unknown