linux/drivers/net
Wesley Atwell 7d9351435e netdevsim: drop PSP ext ref on forward failure
nsim_do_psp() takes an extra reference to the PSP skb extension so the
extension survives __dev_forward_skb(). That forward path scrubs the skb
and drops attached skb extensions before nsim_psp_handle_ext() can
reattach the PSP metadata.

If __dev_forward_skb() fails in nsim_forward_skb(), the function returns
before nsim_psp_handle_ext() can attach that extension to the skb, leaving
the extra reference leaked.

Drop the saved PSP extension reference before returning from the
forward-failure path. Guard the put because plain or non-decapsulated
traffic can also fail forwarding without ever taking the extra PSP
reference.

Fixes: f857478d62 ("netdevsim: a basic test PSP implementation")
Signed-off-by: Wesley Atwell <atwellwea@gmail.com>
Reviewed-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20260317061431.1482716-1-atwellwea@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-18 17:13:34 -07:00
..
arcnet
bonding bonding: prevent potential infinite loop in bond_header_parse() 2026-03-16 19:29:45 -07:00
caif serial: caif: hold tty->link reference in ldisc_open and ser_release 2026-03-09 18:47:55 -07:00
can can: hi311x: hi3110_open(): add check for hi3110_power_enable() return value 2026-03-10 11:12:52 +01:00
dsa net: dsa: realtek: Fix LED group port bit for non-zero LED group 2026-03-11 19:03:21 -07:00
ethernet bnxt_en: fix OOB access in DBG_BUF_PRODUCER async event handler 2026-03-17 15:57:57 -07:00
fddi
fjes
hamradio
hyperv
ieee802154
ipa
ipvlan
mctp mctp: i2c: fix skb memory leak in receive path 2026-03-10 11:10:55 +01:00
mdio
netdevsim netdevsim: drop PSP ext ref on forward failure 2026-03-18 17:13:34 -07:00
ovpn
pcs
phy net: sfp: improve Huawei MA5671a fixup 2026-03-09 18:46:46 -07:00
plip
ppp
pse-pd
slip
team
thunderbolt
usb net: usb: aqc111: Do not perform PM inside suspend callback 2026-03-17 13:36:12 +01:00
vmxnet3
vxlan net: vxlan: fix nd_tbl NULL dereference when IPv6 is disabled 2026-03-05 07:52:56 -08:00
wan
wireguard
wireless
wwan
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sungem_phy.c
tap.c
tun.c
tun_vnet.h
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c xen: branch for v7.0-rc3 2026-03-07 07:44:32 -08:00