Remi Pommarel
4a50753aac
mac80211: mesh: Free pending skb when destroying a mpath
[ Upstream commit 5e43540c2af0a0c0a18e39579b1ad49541f87506 ]
A mpath object can hold reference on a list of skb that are waiting for
mpath resolution to be sent. When destroying a mpath this skb list
should be cleaned up in order to not leak memory.
Fixing that kind of leak:
unreferenced object 0xffff0000181c9300 (size 1088):
comm "openvpn", pid 1782, jiffies 4295071698 (age 80.416s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 f9 80 36 00 00 00 00 00 ..........6.....
02 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............
backtrace:
[<000000004bc6a443>] kmem_cache_alloc+0x1a4/0x2f0
[<000000002caaef13>] sk_prot_alloc.isra.39+0x34/0x178
[<00000000ceeaa916>] sk_alloc+0x34/0x228
[<00000000ca1f1d04>] inet_create+0x198/0x518
[<0000000035626b1c>] __sock_create+0x134/0x328
[<00000000a12b3a87>] __sys_socket+0xb0/0x158
[<00000000ff859f23>] __arm64_sys_socket+0x40/0x58
[<00000000263486ec>] el0_svc_handler+0xd0/0x1a0
[<0000000005b5157d>] el0_svc+0x8/0xc
unreferenced object 0xffff000012973a40 (size 216):
comm "openvpn", pid 1782, jiffies 4295082137 (age 38.660s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 c0 06 16 00 00 ff ff 00 93 1c 18 00 00 ff ff ................
backtrace:
[<000000004bc6a443>] kmem_cache_alloc+0x1a4/0x2f0
[<0000000023c8c8f9>] __alloc_skb+0xc0/0x2b8
[<000000007ad950bb>] alloc_skb_with_frags+0x60/0x320
[<00000000ef90023a>] sock_alloc_send_pskb+0x388/0x3c0
[<00000000104fb1a3>] sock_alloc_send_skb+0x1c/0x28
[<000000006919d2dd>] __ip_append_data+0xba4/0x11f0
[<0000000083477587>] ip_make_skb+0x14c/0x1a8
[<0000000024f3d592>] udp_sendmsg+0xaf0/0xcf0
[<000000005aabe255>] inet_sendmsg+0x5c/0x80
[<000000008651ea08>] __sys_sendto+0x15c/0x218
[<000000003505c99b>] __arm64_sys_sendto+0x74/0x90
[<00000000263486ec>] el0_svc_handler+0xd0/0x1a0
[<0000000005b5157d>] el0_svc+0x8/0xc
Fixes: 2bdaf386f9 (mac80211: mesh: move path tables into if_mesh)
Signed-off-by: Remi Pommarel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
|
2020-08-05 09:59:48 +02:00 |
| .. |
|
aead_api.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aead_api.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aes_ccm.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aes_cmac.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aes_cmac.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aes_gcm.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aes_gmac.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
aes_gmac.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
agg-rx.c
|
mac80211: add missing null return check from call to ieee80211_get_sband
|
2019-07-31 10:51:17 +02:00 |
|
agg-tx.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
cfg.c
|
mac80211: mesh: Free ie data when leaving mesh
|
2020-08-05 09:59:48 +02:00 |
|
chan.c
|
treewide: Add SPDX license identifier for missed files
|
2019-05-21 10:50:45 +02:00 |
|
debug.h
|
|
|
|
debugfs.c
|
mac80211: AMPDU handling for rekeys with Extended Key ID
|
2019-07-26 13:29:10 +02:00 |
|
debugfs.h
|
|
|
|
debugfs_key.c
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
|
2019-06-22 08:59:24 -04:00 |
|
debugfs_key.h
|
|
|
|
debugfs_netdev.c
|
mac80211: fix txq null pointer dereference
|
2019-10-01 17:56:19 +02:00 |
|
debugfs_netdev.h
|
|
|
|
debugfs_sta.c
|
mac80211: drop data frames without key on encrypted links
|
2020-04-01 11:02:01 +02:00 |
|
debugfs_sta.h
|
|
|
|
driver-ops.c
|
mac80211: don't warn about CW params when not using them
|
2019-07-20 21:40:32 +02:00 |
|
driver-ops.h
|
mac80211: pass the vif to cancel_remain_on_channel
|
2019-07-26 13:08:28 +02:00 |
|
ethtool.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 432
|
2019-06-05 17:37:16 +02:00 |
|
fils_aead.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
fils_aead.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
he.c
|
mac80211: fix possible NULL pointerderef in obss pd code
|
2019-08-21 10:58:32 +02:00 |
|
ht.c
|
mac80211: add support for the ADDBA extension element
|
2019-07-29 16:40:22 +02:00 |
|
ibss.c
|
mac80211: IBSS: send deauth when expiring inactive STAs
|
2019-09-11 09:33:29 +02:00 |
|
ieee80211_i.h
|
mac80211: IBSS: send deauth when expiring inactive STAs
|
2019-09-11 09:33:29 +02:00 |
|
iface.c
|
mac80211: allow drivers to set max MTU
|
2019-09-11 09:33:29 +02:00 |
|
Kconfig
|
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
|
2019-07-08 20:57:08 -07:00 |
|
key.c
|
mac80211: drop data frames without key on encrypted links
|
2020-04-01 11:02:01 +02:00 |
|
key.h
|
mac80211: clear crypto tx tailroom counter upon keys enable
|
2019-09-11 09:33:28 +02:00 |
|
led.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
led.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
main.c
|
mac80211: populate debugfs only after cfg80211 init
|
2020-04-29 16:33:18 +02:00 |
|
Makefile
|
|
|
|
mesh.c
|
mac80211: fix channel switch trigger from unknown mesh peer
|
2020-05-02 08:48:58 +02:00 |
|
mesh.h
|
mac80211: implement HE support for mesh
|
2019-07-26 16:14:12 +02:00 |
|
mesh_hwmp.c
|
mac80211: mesh: fix discovery timer re-arming issue / crash
|
2020-06-03 08:21:30 +02:00 |
|
mesh_pathtbl.c
|
mac80211: mesh: Free pending skb when destroying a mpath
|
2020-08-05 09:59:48 +02:00 |
|
mesh_plink.c
|
mac80211: implement HE support for mesh
|
2019-07-26 16:14:12 +02:00 |
|
mesh_ps.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
mesh_sync.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
michael.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
michael.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
mlme.c
|
mac80211: add ieee80211_is_any_nullfunc()
|
2020-05-10 10:31:32 +02:00 |
|
ocb.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
offchannel.c
|
mac80211: pass the vif to cancel_remain_on_channel
|
2019-07-26 13:08:28 +02:00 |
|
pm.c
|
|
|
|
rate.c
|
mac80211: populate debugfs only after cfg80211 init
|
2020-04-29 16:33:18 +02:00 |
|
rate.h
|
mac80211: populate debugfs only after cfg80211 init
|
2020-04-29 16:33:18 +02:00 |
|
rc80211_minstrel.c
|
mac80211: call rate_control_send_low() internally
|
2019-06-14 14:17:37 +02:00 |
|
rc80211_minstrel.h
|
mac80211: minstrel_ht: improve rate probing for devices with static fallback
|
2019-08-21 11:10:13 +02:00 |
|
rc80211_minstrel_debugfs.c
|
|
|
|
rc80211_minstrel_ht.c
|
mac80211: populate debugfs only after cfg80211 init
|
2020-04-29 16:33:18 +02:00 |
|
rc80211_minstrel_ht.h
|
mac80211: minstrel_ht: improve rate probing for devices with static fallback
|
2019-08-21 11:10:13 +02:00 |
|
rc80211_minstrel_ht_debugfs.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
rx.c
|
mac80211: allow rx of mesh eapol frames with default rx key
|
2020-07-29 10:18:26 +02:00 |
|
scan.c
|
mac80211: fix scan when operating on DFS channels in ETSI domains
|
2019-10-07 22:10:50 +02:00 |
|
spectmgmt.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
sta_info.c
|
mac80211: sta_info: Add lockdep condition for RCU list usage
|
2020-05-10 10:31:28 +02:00 |
|
sta_info.h
|
mac80211: drop data frames without key on encrypted links
|
2020-04-01 11:02:01 +02:00 |
|
status.c
|
mac80211: add ieee80211_is_any_nullfunc()
|
2020-05-10 10:31:32 +02:00 |
|
tdls.c
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
|
2019-06-17 15:55:34 -07:00 |
|
tkip.c
|
mac80211: Fix TKIP replay protection immediately after key setup
|
2020-02-05 21:22:46 +00:00 |
|
tkip.h
|
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
|
2019-07-08 20:57:08 -07:00 |
|
trace.c
|
|
|
|
trace.h
|
mac80211: pass the vif to cancel_remain_on_channel
|
2019-07-26 13:08:28 +02:00 |
|
trace_msg.h
|
mac80211: Increase MAX_MSG_LEN
|
2019-03-29 11:20:36 +01:00 |
|
tx.c
|
mac80211: add ieee80211_is_any_nullfunc()
|
2020-05-10 10:31:32 +02:00 |
|
util.c
|
mac80211: fix wrong 160/80+80 MHz setting
|
2020-03-05 16:43:41 +01:00 |
|
vht.c
|
mac80211: vht: add support VHT EXT NSS BW in parsing VHT
|
2019-09-11 09:13:03 +02:00 |
|
wep.c
|
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
|
2019-07-08 20:57:08 -07:00 |
|
wep.h
|
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
|
2019-07-08 20:57:08 -07:00 |
|
wme.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
wme.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
wpa.c
|
mac80211: add IEEE80211_KEY_FLAG_GENERATE_MMIE to ieee80211_key_flags
|
2019-07-26 16:14:12 +02:00 |
|
wpa.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |