aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/conf
diff options
context:
space:
mode:
authorAaron Espinoza <acesp25@freebsd.org>2026-08-29 03:16:35 +0000
committerPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-08-30 18:04:18 +0000
commitc006c8dac0e5de354c48e3b5fc2bce4e0e6f5152 (patch)
tree2e96bb30598a217b0c39da2e75be6b16c144193a /sys/arm64/conf
parent5076e9b5463afa47cf2e7689431d3dd33e5b15cb (diff)
if_bridge: Fix NULL softc dereference in bridge_input()HEADmain
In bridge_input, sc is initialized to NULL and doesn't get resolved until after the Ethernet header pullup. So the pullup's failure path ends up dereferencing the NULL sc when bumping up IFCOUNTER_IERRORS. The m_freem call right under it is redundant as the failure path in m_pullup already freed the chain. Drop both lines, matching what we have in bridge_output. ether_input_internal() discards frames shorter than ETHER_HDR_LEN before the bridge hook, so it is unlikely that it will fire. We still keep the guard as lagg(4) and ng_ether(4) may replace the mbuf before the bridge hook. Signed-off-by: Aaron Espinoza <acesp25@freebsd.org> Reviewed by: pouria Pull Request: https://github.com/freebsd/freebsd-src/pull/2393
Diffstat (limited to 'sys/arm64/conf')
0 files changed, 0 insertions, 0 deletions