Bluetooth: hci2: Opcode 0x0c1a failed: -110 Bluetooth: hci2: Error when powering off device on rfkill (-110) ================================================================== 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 ffff0000d26d8570 by task kworker/1:3/6558 CPU: 1 UID: 0 PID: 6558 Comm: kworker/1:3 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: events rfkill_op_handler 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/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0xb0/0x110 mm/kasan/report.c:595 __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:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] bt_accept_unlink+0x40/0x248 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x148/0x360 net/bluetooth/l2cap_sock.c:1616 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:7325 hci_disconn_cfm include/net/bluetooth/hci_core.h:2121 [inline] hci_conn_hash_flush+0x108/0x218 net/bluetooth/hci_conn.c:2602 hci_dev_close_sync+0x89c/0x1154 net/bluetooth/hci_sync.c:5303 hci_dev_do_close+0x34/0x98 net/bluetooth/hci_core.c:501 hci_rfkill_set_block+0x1c0/0x2a4 net/bluetooth/hci_core.c:929 rfkill_set_block+0x18c/0x374 net/rfkill/core.c:346 rfkill_epo+0x8c/0x158 net/rfkill/core.c:466 __rfkill_handle_global_op net/rfkill/input.c:60 [inline] rfkill_op_handler+0x164/0x25c net/rfkill/input.c:108 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Allocated by task 6180: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:77 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:573 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __kmalloc_cache_noprof+0x3a4/0x65c mm/slub.c:5763 kmalloc_noprof include/linux/slab.h:957 [inline] syslog_print+0xf0/0x624 kernel/printk/printk.c:1580 do_syslog+0x3e0/0x65c kernel/printk/printk.c:1758 __do_sys_syslog kernel/printk/printk.c:1850 [inline] __se_sys_syslog kernel/printk/printk.c:1848 [inline] __arm64_sys_syslog+0x80/0x98 kernel/printk/printk.c:1848 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 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+0x5c/0x254 arch/arm64/kernel/entry-common.c:746 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:765 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Freed by task 6180: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:77 __kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2539 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x184/0x600 mm/slub.c:6837 syslog_print+0x5bc/0x624 kernel/printk/printk.c:1672 do_syslog+0x3e0/0x65c kernel/printk/printk.c:1758 __do_sys_syslog kernel/printk/printk.c:1850 [inline] __se_sys_syslog kernel/printk/printk.c:1848 [inline] __arm64_sys_syslog+0x80/0x98 kernel/printk/printk.c:1848 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 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+0x5c/0x254 arch/arm64/kernel/entry-common.c:746 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:765 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 The buggy address belongs to the object at ffff0000d26d8000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1392 bytes inside of freed 2048-byte region [ffff0000d26d8000, ffff0000d26d8800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1126d8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0002000 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0002000 0000000000000000 dead000000000001 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc349b601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d26d8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d26d8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000d26d8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d26d8580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d26d8600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== slab kmalloc-2k start ffff0000d26d8000 pointer offset 1392 size 2048 list_del corruption. prev->next should be ffff0000d402d570, but was 0000000000000000. (prev=ffff0000d26d8570) ------------[ 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: 6558 Comm: kworker/1:3 Tainted: G B syzkaller #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: events rfkill_op_handler pstate: 63400005 (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 : ffff8000a2357630 x29: ffff8000a2357630 x28: 0000000000000003 x27: ffff0000d402c00c x26: ffff0000d402c000 x25: 1fffe0001a805802 x24: dfff800000000000 x23: 1fffe0001a4db0ae x22: dfff800000000000 x21: ffff0000d26d8570 x20: ffff0000d26d8570 x19: ffff0000d402d570 x18: 1fffe000337dfe90 x17: ffff80008f57e000 x16: ffff800082deb6c0 x15: 0000000000000001 x14: 1fffe000337e2918 x13: 0000000000000000 x12: 0000000000000000 x11: ffff6000337e2919 x10: 0000000000ff0100 x9 : 1d07c0bb9454f700 x8 : 1d07c0bb9454f700 x7 : 0000000000000000 x6 : ffff800080492744 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000010 x2 : 0000000000000002 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:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] bt_accept_unlink+0x40/0x248 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x148/0x360 net/bluetooth/l2cap_sock.c:1616 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:7325 hci_disconn_cfm include/net/bluetooth/hci_core.h:2121 [inline] hci_conn_hash_flush+0x108/0x218 net/bluetooth/hci_conn.c:2602 hci_dev_close_sync+0x89c/0x1154 net/bluetooth/hci_sync.c:5303 hci_dev_do_close+0x34/0x98 net/bluetooth/hci_core.c:501 hci_rfkill_set_block+0x1c0/0x2a4 net/bluetooth/hci_core.c:929 rfkill_set_block+0x18c/0x374 net/rfkill/core.c:346 rfkill_epo+0x8c/0x158 net/rfkill/core.c:466 __rfkill_handle_global_op net/rfkill/input.c:60 [inline] rfkill_op_handler+0x164/0x25c net/rfkill/input.c:108 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Code: 91050000 aa1303e1 aa1503e3 974c6929 (d4210000) ---[ end trace 0000000000000000 ]---