------------[ cut here ]------------ WARNING: CPU: 0 PID: 19888 at net/mac80211/chan.c:844 ieee80211_recalc_chanctx_chantype+0x89d/0x10f0 net/mac80211/chan.c:844 Modules linked in: CPU: 0 UID: 0 PID: 19888 Comm: syz.7.3894 Not tainted 6.16.0-syzkaller-12126-g4faff70959d5 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:ieee80211_recalc_chanctx_chantype+0x89d/0x10f0 net/mac80211/chan.c:844 Code: c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 5b 5a 26 f7 4d 8b 36 4d 39 fe 74 22 e8 ae ef c2 f6 e9 ef f8 ff ff e8 a4 ef c2 f6 90 <0f> 0b 90 e9 47 07 00 00 e8 96 ef c2 f6 e9 39 07 00 00 48 83 7c 24 RSP: 0018:ffffc9000e686380 EFLAGS: 00010246 RAX: ffffffff8afcc452 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000e1ef000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000e686540 R08: ffff8880617c5737 R09: 1ffff1100c2f8ae6 R10: dffffc0000000000 R11: ffffed100c2f8ae7 R12: dffffc0000000000 R13: 0000000000000070 R14: ffff888028ca28c0 R15: ffff888028ca28c0 FS: 00007f7a4aea76c0(0000) GS:ffff888125c21000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc462bf5f98 CR3: 0000000031d0a000 CR4: 00000000003526f0 Call Trace: ieee80211_assign_link_chanctx+0x5ca/0xd70 net/mac80211/chan.c:944 __ieee80211_link_release_channel+0x33b/0x4a0 net/mac80211/chan.c:1890 ieee80211_leave_mesh+0xc5/0x130 net/mac80211/cfg.c:2842 rdev_leave_mesh net/wireless/rdev-ops.h:372 [inline] cfg80211_leave_mesh+0x290/0x800 net/wireless/mesh.c:277 cfg80211_netdev_notifier_call+0x1b3/0x1450 net/wireless/core.c:1567 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline] call_netdevice_notifiers net/core/dev.c:2281 [inline] __dev_close_many+0x106/0x6f0 net/core/dev.c:1726 __dev_close net/core/dev.c:1767 [inline] __dev_change_flags+0x2c7/0x6d0 net/core/dev.c:9535 netif_change_flags+0x88/0x1a0 net/core/dev.c:9600 do_setlink+0xc55/0x41c0 net/core/rtnetlink.c:3143 rtnl_group_changelink net/core/rtnetlink.c:3775 [inline] __rtnl_newlink net/core/rtnetlink.c:3929 [inline] rtnl_newlink+0x149f/0x1c70 net/core/rtnetlink.c:4057 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6946 netlink_rcv_skb+0x205/0x470 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82c/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmsg net/socket.c:2700 [inline] __do_sys_sendmsg net/socket.c:2705 [inline] __se_sys_sendmsg net/socket.c:2703 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2703 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7a49f8ebe9 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:00007f7a4aea7038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f7a4a1b5fa0 RCX: 00007f7a49f8ebe9 RDX: 0000000000000000 RSI: 0000200000000040 RDI: 0000000000000006 RBP: 00007f7a4a011e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7a4a1b6038 R14: 00007f7a4a1b5fa0 R15: 00007ffc3ea84548