aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/window/parser4.c
diff options
context:
space:
mode:
authorR. Christian McDonald <rcm@FreeBSD.org>2026-12-04 20:37:23 +0000
committerR. Christian McDonald <rcm@FreeBSD.org>2026-12-04 20:37:23 +0000
commitb82b4c2fab4706848e07557550f89b90970274cd (patch)
tree8fcbd5426d35fae6e2c575fca37e60f8e3fe1aa7 /usr.bin/window/parser4.c
parentba0212297e663039e4a88c13dd59dfb803c94fc2 (diff)
if_bridge: Fix a NULL dereference on frames injected by netmapHEADmain
A frame that a netmap application writes to a bridge's host ring enters bridge_input() with the bridge itself as the receiving interface. bridge_input() looks up the member that owns the source address and continues with that member as ifp, but since 85967694b459 it takes bif from ifp->if_bridge before the lookup, so bif stays NULL. The first injected frame with a known source address panics in bridge_vfilter_in(), so any netmap application on a bridge, such as Suricata in inline mode, panics the kernel as soon as it passes traffic. Take the member from the address table entry instead, and add a test that passes traffic through a bridge in netmap mode. Reviewed by: kp MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D62445
Diffstat (limited to 'usr.bin/window/parser4.c')
0 files changed, 0 insertions, 0 deletions