Remi Pommarel
6a01afcf84
mac80211: mesh: Free ie data when leaving mesh
At ieee80211_join_mesh() some ie data could have been allocated (see
copy_mesh_setup()) and need to be cleaned up when leaving the mesh.
This fixes the following kmemleak report:
unreferenced object 0xffff0000116bc600 (size 128):
comm "wpa_supplicant", pid 608, jiffies 4294898983 (age 293.484s)
hex dump (first 32 bytes):
30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 0...............
00 0f ac 08 00 00 00 00 c4 65 40 00 00 00 00 00 .........e@.....
backtrace:
[<00000000bebe439d>] __kmalloc_track_caller+0x1c0/0x330
[<00000000a349dbe1>] kmemdup+0x28/0x50
[<0000000075d69baa>] ieee80211_join_mesh+0x6c/0x3b8 [mac80211]
[<00000000683bb98b>] __cfg80211_join_mesh+0x1e8/0x4f0 [cfg80211]
[<0000000072cb507f>] nl80211_join_mesh+0x520/0x6b8 [cfg80211]
[<0000000077e9bcf9>] genl_family_rcv_msg+0x374/0x680
[<00000000b1bd936d>] genl_rcv_msg+0x78/0x108
[<0000000022c53788>] netlink_rcv_skb+0xb0/0x1c0
[<0000000011af8ec9>] genl_rcv+0x34/0x48
[<0000000069e41f53>] netlink_unicast+0x268/0x2e8
[<00000000a7517316>] netlink_sendmsg+0x320/0x4c0
[<0000000069cba205>] ____sys_sendmsg+0x354/0x3a0
[<00000000e06bab0f>] ___sys_sendmsg+0xd8/0x120
[<0000000037340728>] __sys_sendmsg+0xa4/0xf8
[<000000004fed9776>] __arm64_sys_sendmsg+0x44/0x58
[<000000001c1e5647>] el0_svc_handler+0xd0/0x1a0
Fixes: c80d545da3 (mac80211: Let userspace enable and configure vendor specific path selection.)
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Link: https://lore.kernel.org/r/20200704135007.27292-1-repk@triplefau.lt
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-07-30 10:23:35 +02:00
..
2020-06-14 01:57:21 +09:00
2020-06-20 21:33:57 -07:00
2020-02-24 13:02:53 -08:00
2020-06-28 21:37:23 -07:00
2020-05-18 17:35:02 -07:00
2020-06-13 16:27:13 -07:00
2020-07-23 12:09:57 -07:00
2020-06-09 12:59:45 -07:00
2020-06-03 16:27:18 -07:00
2020-06-30 22:21:29 +02:00
2020-07-08 08:27:56 +02:00
2020-07-07 15:37:57 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-16 16:02:08 +02:00
2020-07-29 12:16:21 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-04-28 14:39:46 -07:00
2020-06-24 14:39:43 -07:00
2020-05-23 16:56:17 -07:00
2020-07-09 12:35:33 -07:00
2020-07-20 18:02:28 -07:00
2020-06-14 01:57:21 +09:00
2020-07-29 12:12:50 -07:00
2020-07-28 17:24:08 -07:00
2020-05-19 12:50:14 -07:00
2020-06-14 01:57:21 +09:00
2020-07-08 15:24:33 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-28 21:41:23 -07:00
2020-07-30 10:23:35 +02:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-07-27 11:50:57 -07:00
2020-06-14 01:57:21 +09:00
2020-07-22 01:21:34 +02:00
2020-06-14 01:57:21 +09:00
2020-07-01 15:49:11 -07:00
2020-06-09 12:59:45 -07:00
2020-07-17 13:08:08 -07:00
2020-06-14 01:57:21 +09:00
2020-06-24 14:34:58 -07:00
2020-06-14 01:57:21 +09:00
2020-04-27 02:07:40 -04:00
2020-05-23 16:36:05 -07:00
2020-07-24 17:29:52 -07:00
2020-07-01 17:35:17 -07:00
2020-06-09 12:59:45 -07:00
2020-07-20 17:47:10 -07:00
2020-07-24 15:17:22 -07:00
2020-07-22 18:00:12 -07:00
2020-07-20 17:52:25 -07:00
2020-07-15 13:01:01 -04:00
2020-06-14 01:57:21 +09:00
2020-07-20 20:11:22 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-07-15 17:47:15 -07:00
2020-06-26 11:52:57 +02:00
2020-06-14 01:57:21 +09:00
2020-06-30 15:44:03 +02:00
2020-06-30 12:29:39 -07:00
2020-07-27 13:25:39 -07:00
2020-05-23 16:56:17 -07:00
2020-06-14 01:57:21 +09:00
2020-05-23 16:56:17 -07:00
2020-05-29 13:10:39 -07:00