Tung Nguyen
84895f5ce3
tipc: fix memory leak in tipc_link_xmit
...
[ Upstream commit 69ae94725f4fc9e75219d2d69022029c5b24bc9a ]
In case the backlog transmit queue for system-importance messages is overloaded,
tipc_link_xmit() returns -ENOBUFS but the skb list is not purged. This leads to
memory leak and failure when a skb is allocated.
This commit fixes this issue by purging the skb list before tipc_link_xmit()
returns.
Fixes: 365ad353c2 ("tipc: reduce risk of user starvation during link congestion")
Signed-off-by: Tung Nguyen <tung.quang.nguyen@est.tech>
Link: https://patch.msgid.link/20250403092431.514063-1-tung.quang.nguyen@est.tech
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-02 07:39:08 +02:00
..
6lowpan
9p
9p/xen: fix release of IRQ
2024-12-14 19:44:41 +01:00
802
net: 802: LLC+SNAP OID:PID lookup on start of skb data
2025-02-01 18:18:45 +01:00
8021q
vlan: fix memory leak in vlan_newlink()
2025-04-10 14:29:34 +02:00
appletalk
atm
atm: Fix NULL pointer dereference
2025-04-10 14:29:38 +02:00
ax25
batman-adv
batman-adv: Ignore own maximum aggregation size during RX
2025-04-10 14:29:38 +02:00
bluetooth
Bluetooth: Fix error code in chan_alloc_skb_cb()
2025-04-10 14:29:38 +02:00
bpf
bpfilter
bridge
netfilter: Replace zero-length array with flexible-array member
2025-01-09 13:23:35 +01:00
caif
can
can: statistics: use atomic access in hot path
2025-04-10 14:29:42 +02:00
ceph
core
net/neighbor: add missing policy for NDTPA_QUEUE_LENBYTES
2025-04-10 14:29:38 +02:00
dcb
dccp
net: fix data-races around sk->sk_forward_alloc
2025-02-01 18:18:52 +01:00
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
2024-12-14 19:44:51 +01:00
ife
ipv4
net-timestamp: support TCP GSO case for a few missing flags
2025-03-13 12:43:30 +01:00
ipv6
ipv6: fix omitted netlink attributes when using RTEXT_FILTER_SKIP_STATS
2025-04-10 14:29:43 +02:00
iucv
kcm
key
l2tp
genetlink: hold RCU in genlmsg_mcast()
2024-11-08 16:20:50 +01:00
l3mdev
lapb
llc
llc: do not use skb_get() before dev_queue_xmit()
2025-03-13 12:43:29 +01:00
mac80211
wifi: mac80211: wake the queues in case of failure in resume
2025-01-09 13:23:35 +01:00
mac802154
mac802154: check local interfaces before deleting sdata list
2025-02-01 18:18:50 +01:00
mpls
ncsi
net/ncsi: wait for the last response to Deselect Package before configuring channel
2025-03-13 12:43:11 +01:00
netfilter
netfilter: nft_exthdr: fix offset with ipv4_find_option()
2025-04-10 14:29:35 +02:00
netlabel
netlink
netlink: terminate outstanding dump on socket close
2024-12-14 19:44:18 +01:00
netrom
netrom: check buffer length before accessing it
2025-01-09 13:23:35 +01:00
nfc
NFC: nci: Add bounds checking in nci_hci_create_pipe()
2025-03-13 12:43:11 +01:00
nsh
openvswitch
openvswitch: use RCU protection in ovs_vport_cmd_fill_info()
2025-03-13 12:43:18 +01:00
packet
af_packet: fix vlan_get_protocol_dgram() vs MSG_PEEK
2025-01-09 13:23:35 +01:00
phonet
psample
qrtr
rds
rfkill
net: rfkill: gpio: Add check for clk_enable()
2024-12-14 19:44:27 +01:00
rose
net: rose: lock the socket in rose_bind()
2025-03-13 12:43:06 +01:00
rxrpc
sched
net_sched: skbprio: Remove overly strict queue assertions
2025-04-10 14:29:43 +02:00
sctp
sctp: Fix undefined behavior in left shift operation
2025-04-10 14:29:36 +02:00
smc
net/smc: check sndbuf_space again after NOSPACE flag is set in smc_poll
2025-01-09 13:23:27 +01:00
strparser
sunrpc
sunrpc: suppress warnings for unused procfs functions
2025-03-13 12:43:24 +01:00
switchdev
tipc
tipc: fix memory leak in tipc_link_xmit
2025-05-02 07:39:08 +02:00
tls
tls: Fix tls_sw_sendmsg error handling
2025-02-01 18:18:45 +01:00
unix
vmw_vsock
vsock: avoid timeout during connect() if the socket is closing
2025-04-10 14:29:43 +02:00
wimax
wireless
wifi: nl80211: reject cooked mode if it is set along with other flags
2025-03-13 12:43:28 +01:00
x25
xdp
xfrm
xfrm_output: Force software GSO only in tunnel mode
2025-04-10 14:29:37 +02:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c