list_del corruption. prev->next should be ffff0000c9c862c8, but was 0000000000000000. (prev=ffff0000c97710c8) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:61! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 12587 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __list_del_entry_valid+0xbc/0xd0 lib/list_debug.c:59 lr : __list_del_entry_valid+0xbc/0xd0 lib/list_debug.c:59 sp : ffff800013bf39c0 x29: ffff800013bf39c0 x28: ffff0000c5fdb500 x27: 0001000000000000 x26: 0000000000000000 x25: 0000000000000000 x24: ffff0000c0d7bb80 x23: ffff0000c5fdb500 x22: ffff800009a50d84 x21: ffff0000c0f30149 x20: ffff0000c9c862c0 x19: ffff0000c9c862d8 x18: 00000000000000c0 x17: 20747562202c3863 x16: ffff80000db49158 x15: ffff0000c5fdb500 x14: 0000000000000000 x13: 00000000ffffffff x12: 0000000000040000 x11: 000000000003ffff x10: ffff800019504000 x9 : a51ac3266eb62300 x8 : a51ac3266eb62300 x7 : ffff80000819545c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff0001fefbecd0 x1 : 0000000100000001 x0 : 000000000000006d Call trace: __list_del_entry_valid+0xbc/0xd0 lib/list_debug.c:59 __list_del_entry include/linux/list.h:134 [inline] list_del include/linux/list.h:148 [inline] klist_release lib/klist.c:189 [inline] kref_put+0x6c/0x1d0 include/linux/kref.h:65 klist_dec_and_del lib/klist.c:206 [inline] klist_put lib/klist.c:217 [inline] klist_del+0x58/0xb0 lib/klist.c:230 device_del+0x280/0x5bc drivers/base/core.c:3699 hci_conn_del_sysfs+0xb0/0xfc net/bluetooth/hci_sysfs.c:78 hci_conn_cleanup+0x2d4/0x380 net/bluetooth/hci_conn.c:147 hci_conn_del+0x144/0x2a8 net/bluetooth/hci_conn.c:1022 hci_conn_hash_flush+0xe8/0x148 net/bluetooth/hci_conn.c:2367 hci_dev_close_sync+0x48c/0x9e0 net/bluetooth/hci_sync.c:4476 hci_dev_do_close net/bluetooth/hci_core.c:554 [inline] hci_rfkill_set_block+0x98/0x198 net/bluetooth/hci_core.c:947 rfkill_set_block+0xb4/0x1f8 net/rfkill/core.c:345 rfkill_fop_write+0x358/0x3f8 net/rfkill/core.c:1286 vfs_write+0x1a4/0x46c fs/read_write.c:576 ksys_write+0xb4/0x160 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __arm64_sys_write+0x24/0x34 fs/read_write.c:640 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 Code: d001b460 91346000 aa0803e3 94a76157 (d4210000) ---[ end trace 0000000000000000 ]---