mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium list_del corruption. prev->next should be ffff8880afd3e460, but was ffff8880a2ba9cf8 ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:51! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4004 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51 IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready Code: e8 25 43 f7 ff 0f 0b 48 89 f1 48 c7 c7 a0 e2 b3 88 4c 89 e6 e8 11 43 f7 ff 0f 0b 48 89 ee 48 c7 c7 40 e4 b3 88 e8 00 43 f7 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 80 e3 b3 88 e8 ec 42 f7 ff 0f 0b RSP: 0018:ffff88808e967720 EFLAGS: 00010286 RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1011d2ced6 RBP: ffff8880afd3e460 R08: 0000000000000054 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880afd3e5a0 R13: ffff8880afd3e5a0 R14: ffff88809e85a040 R15: 0000000000000000 FS: 00007fcf6f19d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563844e5f188 CR3: 000000009971b000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry include/linux/list.h:117 [inline] list_del include/linux/list.h:125 [inline] klist_release lib/klist.c:190 [inline] kref_put include/linux/kref.h:70 [inline] klist_dec_and_del+0x97/0x480 lib/klist.c:207 klist_put+0x7a/0x150 lib/klist.c:218 device_del+0x162/0xaf0 drivers/base/core.c:2321 hci_conn_del_sysfs+0xdc/0x180 net/bluetooth/hci_sysfs.c:78 hci_conn_cleanup+0x24b/0x550 net/bluetooth/hci_conn.c:128 hci_conn_del+0x2a0/0x780 net/bluetooth/hci_conn.c:611 hci_conn_hash_flush+0x19c/0x260 net/bluetooth/hci_conn.c:1513 hci_dev_do_close+0x6bc/0x1020 net/bluetooth/hci_core.c:1687 hci_unregister_dev+0x14f/0x460 net/bluetooth/hci_core.c:3288 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:354 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath+0x3f0/0x4a0 arch/x86/entry/common.c:271 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:407 RIP: 0033:0x7fcf70c6d0d9 Code: Bad RIP value. RSP: 002b:00007fcf6f19d118 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: 0000000000000000 RBX: 00007fcf70d8d120 RCX: 00007fcf70c6d0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fcf70cc8ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc671fdcaf R14: 00007fcf6f19d300 R15: 0000000000022000 Modules linked in: ---[ end trace bda828f2a573333c ]--- RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51 Code: e8 25 43 f7 ff 0f 0b 48 89 f1 48 c7 c7 a0 e2 b3 88 4c 89 e6 e8 11 43 f7 ff 0f 0b 48 89 ee 48 c7 c7 40 e4 b3 88 e8 00 43 f7 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 80 e3 b3 88 e8 ec 42 f7 ff 0f 0b RSP: 0018:ffff88808e967720 EFLAGS: 00010286 RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1011d2ced6 RBP: ffff8880afd3e460 R08: 0000000000000054 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880afd3e5a0 R13: ffff8880afd3e5a0 R14: ffff88809e85a040 R15: 0000000000000000 FS: 00007fcf6f19d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcf70c6d0af CR3: 000000009971b000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400