syzbot


memory leak in reg_copy_regd

Status: fixed on 2022/03/08 16:11
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+1638e7c770eef6b6c0d0@syzkaller.appspotmail.com
Fix commit: e53e9828a8d2 cfg80211: always free wiphy specific regdomain
First crash: 984d, last: 984d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 5.15 000/917] 5.15.3-rc1 review 945 (945) 2021/11/24 18:04
[PATCH 5.14 000/849] 5.14.19-rc1 review 859 (859) 2021/11/16 14:04
[PATCH] cfg80211: always free wiphy specific regdomain 1 (1) 2021/09/27 11:11
[PATCH] net: wireless: move the deallocation of regulatory domain to wiphy_free 1 (1) 2021/07/26 11:55
[PATCH] cfg80211: free the object allocated in wiphy_apply_custom_regulatory 12 (12) 2021/07/23 09:59
[syzbot] memory leak in reg_copy_regd 0 (1) 2021/07/22 06:12
Last patch testing requests (6)
Created Duration User Patch Repo Result
2021/07/26 09:42 16m mudongliangabcd@gmail.com patch upstream OK
2021/07/26 09:32 3m mudongliangabcd@gmail.com patch upstream error OK
2021/07/26 07:22 6m mudongliangabcd@gmail.com patch upstream error OK
2021/07/22 15:07 14m mudongliangabcd@gmail.com patch upstream OK
2021/07/22 07:53 3m mudongliangabcd@gmail.com patch upstream error OK
2021/07/22 07:21 3m mudongliangabcd@gmail.com patch upstream error OK

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888111969200 (size 512):
  comm "syz-executor817", pid 8828, jiffies 4294955311 (age 19.340s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    05 00 00 00 39 39 00 00 00 00 00 00 d0 a6 24 00  ....99........$.
  backtrace:
    [<ffffffff83e971f0>] kmalloc include/linux/slab.h:596 [inline]
    [<ffffffff83e971f0>] kzalloc include/linux/slab.h:721 [inline]
    [<ffffffff83e971f0>] reg_copy_regd+0x30/0x120 net/wireless/reg.c:444
    [<ffffffff83e98e21>] wiphy_apply_custom_regulatory+0x101/0x1a0 net/wireless/reg.c:2582
    [<ffffffff82b31e27>] mac80211_hwsim_new_radio+0x897/0x1300 drivers/net/wireless/mac80211_hwsim.c:3344
    [<ffffffff82b32cb5>] hwsim_new_radio_nl+0x425/0x5f0 drivers/net/wireless/mac80211_hwsim.c:3924
    [<ffffffff83867aa3>] genl_family_rcv_msg_doit+0x113/0x180 net/netlink/genetlink.c:739
    [<ffffffff83868184>] genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
    [<ffffffff83868184>] genl_rcv_msg+0x174/0x2c0 net/netlink/genetlink.c:800
    [<ffffffff83866857>] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2504
    [<ffffffff83867164>] genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
    [<ffffffff83865a42>] netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
    [<ffffffff83865a42>] netlink_unicast+0x392/0x4c0 net/netlink/af_netlink.c:1340
    [<ffffffff83865edb>] netlink_sendmsg+0x36b/0x6b0 net/netlink/af_netlink.c:1929
    [<ffffffff836cf446>] sock_sendmsg_nosec net/socket.c:703 [inline]
    [<ffffffff836cf446>] sock_sendmsg+0x56/0x80 net/socket.c:723
    [<ffffffff836cf9ac>] ____sys_sendmsg+0x36c/0x390 net/socket.c:2392
    [<ffffffff836d39fb>] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2446
    [<ffffffff836d3af8>] __sys_sendmsg+0x88/0x100 net/socket.c:2475
    [<ffffffff843af915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff843af915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/18 06:02 upstream d980cc0620ae f115ae98 .config console log report syz C ci-upstream-gce-leak memory leak in reg_copy_regd
* Struck through repros no longer work on HEAD.