------------[ cut here ]------------ WARNING: CPU: 3 PID: 11807 at net/mac80211/chan.c:833 ieee80211_recalc_chanctx_chantype+0x7ae/0xaf0 net/mac80211/chan.c:833 Modules linked in: CPU: 3 UID: 0 PID: 11807 Comm: syz.3.1692 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ieee80211_recalc_chanctx_chantype+0x7ae/0xaf0 net/mac80211/chan.c:833 Code: 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 80 3c 02 00 0f 84 6f f9 ff ff 4c 89 ff e8 4d 7b 40 f7 e9 62 f9 ff ff e8 93 d8 d7 f6 90 <0f> 0b 90 e9 18 fc ff ff e8 85 d8 d7 f6 49 8d bd 30 0a 00 00 48 b8 RSP: 0018:ffffc90003886730 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 000000000000000f RCX: ffffc90007ad1000 RDX: 0000000000080000 RSI: ffffffff8ae50f3d RDI: 0000000000000005 RBP: dffffc0000000000 R08: 0000000000000005 R09: 000000000000000f R10: 000000000000000f R11: 0000000000000001 R12: 1ffff92000710cef R13: 0000000000000000 R14: ffff888056d4a910 R15: 0000000000000007 FS: 00007fbadcdb06c0(0000) GS:ffff8880d6d05000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbadcd6df98 CR3: 0000000041caf000 CR4: 0000000000352ef0 Call Trace: ieee80211_assign_link_chanctx+0xb90/0xf00 net/mac80211/chan.c:933 __ieee80211_link_release_channel+0x273/0x4b0 net/mac80211/chan.c:1879 ieee80211_link_release_channel+0x128/0x200 net/mac80211/chan.c:2154 ieee80211_leave_mesh+0x71/0x150 net/mac80211/cfg.c:2955 rdev_leave_mesh net/wireless/rdev-ops.h:372 [inline] cfg80211_leave_mesh+0x23e/0x900 net/wireless/mesh.c:277 cfg80211_leave+0x26a/0x3f0 net/wireless/core.c:1392 cfg80211_netdev_notifier_call+0x2c1/0x1120 net/wireless/core.c:1576 notifier_call_chain+0xbc/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2229 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline] call_netdevice_notifiers net/core/dev.c:2281 [inline] __dev_close_many+0xff/0x760 net/core/dev.c:1726 __dev_close net/core/dev.c:1767 [inline] __dev_change_flags+0x4d8/0x720 net/core/dev.c:9635 netif_change_flags+0x8d/0x160 net/core/dev.c:9700 do_setlink.constprop.0+0xb53/0x4380 net/core/rtnetlink.c:3151 rtnl_group_changelink net/core/rtnetlink.c:3783 [inline] __rtnl_newlink net/core/rtnetlink.c:3937 [inline] rtnl_newlink+0x18e0/0x2000 net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6951 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa98/0xc70 net/socket.c:2630 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2684 __sys_sendmsg+0x16d/0x220 net/socket.c:2716 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbadbf8f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbadcdb0038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbadc1e5fa0 RCX: 00007fbadbf8f749 RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000004 RBP: 00007fbadc013f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbadc1e6038 R14: 00007fbadc1e5fa0 R15: 00007ffd4b61e5d8