Bluetooth: hci3: Opcode 0x0406 failed: -4 Bluetooth: hci3: Opcode 0x0406 failed: -4 Bluetooth: hci3: Opcode 0x0406 failed: -4 ================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid_or_report+0x8c/0x1b4 lib/list_debug.c:62 Read of size 8 at addr ffff0000d57aa558 by task syz.0.515/8882 CPU: 0 UID: 0 PID: 8882 Comm: syz.0.515 Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x220 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:480 kasan_report+0xb0/0x110 mm/kasan/report.c:593 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 __list_del_entry_valid_or_report+0x8c/0x1b4 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del_init include/linux/list.h:287 [inline] bt_accept_unlink+0x40/0x248 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x148/0x360 net/bluetooth/l2cap_sock.c:1613 l2cap_chan_del+0xb8/0x470 net/bluetooth/l2cap_core.c:655 l2cap_conn_del+0x2f8/0x5f0 net/bluetooth/l2cap_core.c:1787 l2cap_connect_cfm+0x110/0xd40 net/bluetooth/l2cap_core.c:7259 hci_connect_cfm include/net/bluetooth/hci_core.h:2059 [inline] hci_conn_failed+0x198/0x318 net/bluetooth/hci_conn.c:1275 hci_abort_conn_sync+0x504/0xb8c net/bluetooth/hci_sync.c:5689 hci_disconnect_all_sync+0x1ac/0x358 net/bluetooth/hci_sync.c:5712 hci_suspend_sync+0x428/0xae0 net/bluetooth/hci_sync.c:6188 hci_suspend_dev+0x1d8/0x3d4 net/bluetooth/hci_core.c:2851 hci_suspend_notifier+0xe0/0x268 net/bluetooth/hci_core.c:2422 notifier_call_chain+0x1b8/0x4e4 kernel/notifier.c:85 notifier_call_chain_robust kernel/notifier.c:120 [inline] blocking_notifier_call_chain_robust+0x88/0x110 kernel/notifier.c:345 pm_notifier_call_chain_robust+0x34/0x60 kernel/power/main.c:102 snapshot_open+0x17c/0x268 kernel/power/user.c:77 misc_open+0x2b8/0x328 drivers/char/misc.c:161 chrdev_open+0x1b0/0x4b0 fs/char_dev.c:414 do_dentry_open+0xb7c/0x1544 fs/open.c:964 vfs_open+0x44/0x2d4 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x2424/0x2c40 fs/namei.c:4055 do_filp_open+0x18c/0x36c fs/namei.c:4082 do_sys_openat2+0x11c/0x1b4 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x120/0x158 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1157aa flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 0000000000000000 fffffdffc355ea90 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d57aa400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000d57aa480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000d57aa500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000d57aa580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000d57aa600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== non-slab/vmalloc memory list_del corruption. prev->next should be ffff0000d01f0558, but was 0000000000000000. (prev=ffff0000d57aa558) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:64! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 8882 Comm: syz.0.515 Tainted: G B 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __list_del_entry_valid_or_report+0x17c/0x1b4 lib/list_debug.c:62 lr : __list_del_entry_valid_or_report+0x17c/0x1b4 lib/list_debug.c:62 sp : ffff80009cfc6da0 x29: ffff80009cfc6da0 x28: 0000000000000003 x27: ffff0000d4c6100c x26: ffff0000d4c61000 x25: 1fffe0001a98c202 x24: dfff800000000000 x23: 1fffe0001aaf54ab x22: dfff800000000000 x21: ffff0000d57aa558 x20: ffff0000d57aa558 x19: ffff0000d01f0558 x18: 1fffe000337d1c76 x17: 20747562202c3835 x16: ffff80008ae69508 x15: ffff700011ee0158 x14: 1ffff00011ee0158 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011ee0158 x10: 0000000000ff0100 x9 : 3d26ab923af00e00 x8 : 3d26ab923af00e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009cfc6738 x4 : ffff80008f776bc0 x3 : ffff80008054bdfc x2 : 0000000000000000 x1 : 0000000100000000 x0 : 000000000000006d Call trace: __list_del_entry_valid_or_report+0x17c/0x1b4 lib/list_debug.c:62 (P) __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del_init include/linux/list.h:287 [inline] bt_accept_unlink+0x40/0x248 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x148/0x360 net/bluetooth/l2cap_sock.c:1613 l2cap_chan_del+0xb8/0x470 net/bluetooth/l2cap_core.c:655 l2cap_conn_del+0x2f8/0x5f0 net/bluetooth/l2cap_core.c:1787 l2cap_connect_cfm+0x110/0xd40 net/bluetooth/l2cap_core.c:7259 hci_connect_cfm include/net/bluetooth/hci_core.h:2059 [inline] hci_conn_failed+0x198/0x318 net/bluetooth/hci_conn.c:1275 hci_abort_conn_sync+0x504/0xb8c net/bluetooth/hci_sync.c:5689 hci_disconnect_all_sync+0x1ac/0x358 net/bluetooth/hci_sync.c:5712 hci_suspend_sync+0x428/0xae0 net/bluetooth/hci_sync.c:6188 hci_suspend_dev+0x1d8/0x3d4 net/bluetooth/hci_core.c:2851 hci_suspend_notifier+0xe0/0x268 net/bluetooth/hci_core.c:2422 notifier_call_chain+0x1b8/0x4e4 kernel/notifier.c:85 notifier_call_chain_robust kernel/notifier.c:120 [inline] blocking_notifier_call_chain_robust+0x88/0x110 kernel/notifier.c:345 pm_notifier_call_chain_robust+0x34/0x60 kernel/power/main.c:102 snapshot_open+0x17c/0x268 kernel/power/user.c:77 misc_open+0x2b8/0x328 drivers/char/misc.c:161 chrdev_open+0x1b0/0x4b0 fs/char_dev.c:414 do_dentry_open+0xb7c/0x1544 fs/open.c:964 vfs_open+0x44/0x2d4 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x2424/0x2c40 fs/namei.c:4055 do_filp_open+0x18c/0x36c fs/namei.c:4082 do_sys_openat2+0x11c/0x1b4 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x120/0x158 fs/open.c:1463 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: 910d8000 aa1303e1 aa1503e3 9741c60c (d4210000) ---[ end trace 0000000000000000 ]---