Bluetooth: hci4: hardware error 0x00 ================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x8c/0x1b4 lib/list_debug.c:62 Read of size 8 at addr ffff0000d7e0f558 by task kworker/u9:6/6538 CPU: 1 UID: 0 PID: 6538 Comm: kworker/u9:6 Not tainted 6.16.0-rc5-syzkaller-gec4801305969 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: hci4 hci_error_reset Call tra 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/0x254 mm/kasan/report.c:408 print_report+0x68/0x84 mm/kasan/report.c:521 kasan_report+0xb0/0x110 mm/kasan/report.c:634 __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_disconn_cfm+0x90/0xe0 net/bluetooth/l2cap_core.c:7309 hci_disconn_cfm include/net/bluetooth/hci_core.h:2071 [inline] hci_conn_hash_flush+0x104/0x214 net/bluetooth/hci_conn.c:2560 hci_dev_close_sync+0x89c/0x1154 net/bluetooth/hci_sync.c:5294 hci_dev_do_close net/bluetooth/hci_core.c:501 [inline] hci_error_reset+0xfc/0x358 net/bluetooth/hci_core.c:1034 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:843 Allocated by task 6130: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x2a4/0x3fc mm/slub.c:4359 kmalloc_noprof include/linux/slab.h:905 [inline] syslog_print+0xf0/0x624 kernel/printk/printk.c:1607 do_syslog+0x3e0/0x65c kernel/printk/printk.c:1785 __do_sys_syslog kernel/printk/printk.c:1877 [inline] __se_sys_syslog kernel/printk/printk.c:1875 [inline] __arm64_sys_syslog+0x80/0x98 kernel/printk/printk.c:1875 __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 Freed by task 6130: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x68/0x88 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x17c/0x474 mm/slub.c:4842 syslog_print+0x5bc/0x624 kernel/printk/printk.c:1699 do_syslog+0x3e0/0x65c kernel/printk/printk.c:1785 __do_sys_syslog kernel/printk/printk.c:1877 [inline] __se_sys_syslog kernel/printk/printk.c:1875 [inline] __arm64_sys_syslog+0x80/0x98 kernel/printk/printk.c:1875 __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 object at ffff0000d7e0f000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1368 bytes inside of freed 2048-byte region [ffff0000d7e0f000, ffff0000d7e0f800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000d7e0b000 pfn:0x117e08 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000240 ffff0000c0002000 fffffdffc321a010 fffffdffc3600210 raw: ffff0000d7e0b000 0000000000080004 00000000f5000000 0000000000000000 head: 05ffc00000000240 ffff0000c0002000 fffffdffc321a010 fffffdffc3600210 head: ffff0000d7e0b000 0000000000080004 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc35f8201 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d7e0f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d7e0f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000d7e0f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d7e0f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d7e0f600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== slab kmalloc-2k start ffff0000d7e0f000 pointer offset 1368 size 2048 list_del corruption. prev->next should be ffff0000cf584558, but was 0000000000000000. (prev=ffff0000d7e0f558) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:64! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 6538 Comm: kworker/u9:6 Tainted: G B 6.16.0-rc5-syzkaller-gec4801305969 #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: hci4 hci_error_reset 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 : ffff8000a0f27710 x29: ffff8000a0f27710 x28: 0000000000000003 x27: ffff0000cf58500c x26: ffff0000cf585000 x25: 1fffe00019eb0a02 x24: dfff800000000000 x23: 1fffe0001afc1eab x22: dfff800000000000 x21: ffff0000d7e0f558 x20: ffff0000d7e0f558 x19: ffff0000cf584558 x18: 1fffe000337d8876 x17: 20747562202c3835 x16: ffff80008ae63d08 x15: ffff700011ede144 x14: 1ffff00011ede144 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011ede144 x10: 0000000000ff0100 x9 : ae85b401dd7eef00 x8 : ae85b401dd7eef00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a0f27098 x4 : ffff80008f766be0 x3 : ffff80008054d314 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_disconn_cfm+0x90/0xe0 net/bluetooth/l2cap_core.c:7309 hci_disconn_cfm include/net/bluetooth/hci_core.h:2071 [inline] hci_conn_hash_flush+0x104/0x214 net/bluetooth/hci_conn.c:2560 hci_dev_close_sync+0x89c/0x1154 net/bluetooth/hci_sync.c:5294 hci_dev_do_close net/bluetooth/hci_core.c:501 [inline] hci_error_reset+0xfc/0x358 net/bluetooth/hci_core.c:1034 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:843 Code: 910d8000 aa1303e1 aa1503e3 9741cb35 (d4210000) ---[ end trace 0000000000000000 ]---