Bluetooth: hci4: Opcode 0x0c1a failed: -110 Bluetooth: hci4: Error when powering off device on rfkill (-110) ================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 Read of size 8 at addr ffff8881436f4558 by task kworker/1:0/24 CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0 Not tainted 6.16.0-rc5-syzkaller-00121-gbc9ff192a6c9 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: events rfkill_op_handler Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xd2/0x2b0 mm/kasan/report.c:521 kasan_report+0x118/0x150 mm/kasan/report.c:634 __list_del_entry_valid_or_report+0x92/0x190 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+0x39/0x240 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x17e/0x460 net/bluetooth/l2cap_sock.c:1613 l2cap_chan_del+0xb2/0x5e0 net/bluetooth/l2cap_core.c:655 l2cap_conn_del+0x388/0x680 net/bluetooth/l2cap_core.c:1787 hci_disconn_cfm include/net/bluetooth/hci_core.h:2070 [inline] hci_conn_hash_flush+0x10a/0x230 net/bluetooth/hci_conn.c:2560 hci_dev_close_sync+0xaef/0x1330 net/bluetooth/hci_sync.c:5294 hci_dev_do_close+0x2f/0x90 net/bluetooth/hci_core.c:501 hci_rfkill_set_block+0x21d/0x2e0 net/bluetooth/hci_core.c:929 rfkill_set_block+0x1d2/0x440 net/rfkill/core.c:346 rfkill_epo+0x7e/0x180 net/rfkill/core.c:466 __rfkill_handle_global_op net/rfkill/input.c:60 [inline] rfkill_op_handler+0x84/0x240 net/rfkill/input.c:108 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 15426: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4328 [inline] __kmalloc_node_track_caller_noprof+0x271/0x4e0 mm/slub.c:4347 kmalloc_reserve+0x136/0x290 net/core/skbuff.c:601 pskb_expand_head+0x18e/0x1150 net/core/skbuff.c:2241 netlink_trim+0x1d5/0x2e0 net/netlink/af_netlink.c:1301 netlink_broadcast_filtered+0x80/0x1140 net/netlink/af_netlink.c:1514 nlmsg_multicast_filtered include/net/netlink.h:1151 [inline] nlmsg_multicast include/net/netlink.h:1170 [inline] nlmsg_notify+0xf0/0x1a0 net/netlink/af_netlink.c:2594 rtnl_notify net/core/rtnetlink.c:958 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:4419 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4435 [inline] rtnetlink_event+0x224/0x270 net/core/rtnetlink.c:7004 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2268 [inline] call_netdevice_notifiers net/core/dev.c:2282 [inline] netif_set_mac_address+0x37c/0x4c0 net/core/dev.c:9693 do_setlink+0x88c/0x41c0 net/core/rtnetlink.c:3093 rtnl_changelink net/core/rtnetlink.c:3759 [inline] __rtnl_newlink net/core/rtnetlink.c:3918 [inline] rtnl_newlink+0x160b/0x1c70 net/core/rtnetlink.c:4055 rtnetlink_rcv_msg+0x7cc/0xb70 net/core/rtnetlink.c:6944 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2551 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x75c/0x8e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:727 __sys_sendto+0x3bd/0x520 net/socket.c:2180 __do_sys_sendto net/socket.c:2187 [inline] __se_sys_sendto net/socket.c:2183 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2183 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 15426: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 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+0x18e/0x440 mm/slub.c:4842 skb_release_data+0x62d/0x7c0 net/core/skbuff.c:1087 skb_release_all net/core/skbuff.c:1152 [inline] __kfree_skb net/core/skbuff.c:1166 [inline] consume_skb+0x9e/0xf0 net/core/skbuff.c:1398 netlink_broadcast_filtered+0x103e/0x1140 net/netlink/af_netlink.c:1537 nlmsg_multicast_filtered include/net/netlink.h:1151 [inline] nlmsg_multicast include/net/netlink.h:1170 [inline] nlmsg_notify+0xf0/0x1a0 net/netlink/af_netlink.c:2594 rtnl_notify net/core/rtnetlink.c:958 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:4419 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4435 [inline] rtnetlink_event+0x224/0x270 net/core/rtnetlink.c:7004 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2268 [inline] call_netdevice_notifiers net/core/dev.c:2282 [inline] netif_set_mac_address+0x37c/0x4c0 net/core/dev.c:9693 do_setlink+0x88c/0x41c0 net/core/rtnetlink.c:3093 rtnl_changelink net/core/rtnetlink.c:3759 [inline] __rtnl_newlink net/core/rtnetlink.c:3918 [inline] rtnl_newlink+0x160b/0x1c70 net/core/rtnetlink.c:4055 rtnetlink_rcv_msg+0x7cc/0xb70 net/core/rtnetlink.c:6944 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2551 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x75c/0x8e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:727 __sys_sendto+0x3bd/0x520 net/socket.c:2180 __do_sys_sendto net/socket.c:2187 [inline] __se_sys_sendto net/socket.c:2183 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2183 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8881436f4000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1368 bytes inside of freed 2048-byte region [ffff8881436f4000, ffff8881436f4800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881436f1000 pfn:0x1436f0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x57ff00000000240(workingset|head|node=1|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 057ff00000000240 ffff88801a442000 ffff888140400948 ffffea000502c210 raw: ffff8881436f1000 0000000000080004 00000000f5000000 0000000000000000 head: 057ff00000000240 ffff88801a442000 ffff888140400948 ffffea000502c210 head: ffff8881436f1000 0000000000080004 00000000f5000000 0000000000000000 head: 057ff00000000003 ffffea00050dbc01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 3380473262, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x21d5/0x22b0 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab+0x8a/0x3b0 mm/slub.c:2619 new_slab mm/slub.c:2673 [inline] ___slab_alloc+0xbfc/0x1480 mm/slub.c:3859 __slab_alloc mm/slub.c:3949 [inline] __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __kmalloc_cache_noprof+0x296/0x3d0 mm/slub.c:4354 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] acpi_ds_create_walk_state+0xd9/0x270 drivers/acpi/acpica/dswstate.c:518 acpi_ps_execute_method+0x220/0x7c0 drivers/acpi/acpica/psxface.c:134 acpi_ns_evaluate+0x5a6/0xa20 drivers/acpi/acpica/nseval.c:205 acpi_evaluate_object+0x53f/0xa10 drivers/acpi/acpica/nsxfeval.c:354 acpi_evaluate_integer+0xfc/0x270 drivers/acpi/utils.c:260 acpi_bus_get_status_handle drivers/acpi/bus.c:82 [inline] acpi_bus_get_status+0x14a/0x380 drivers/acpi/bus.c:111 acpi_scan_init_status drivers/acpi/scan.c:1857 [inline] acpi_add_single_object+0x391/0x1a20 drivers/acpi/scan.c:1890 acpi_bus_check_add+0x349/0x820 drivers/acpi/scan.c:2173 acpi_ns_walk_namespace+0x268/0x690 drivers/acpi/acpica/nswalk.c:-1 page_owner free stack trace missing Memory state around the buggy address: ffff8881436f4400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881436f4480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881436f4500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881436f4580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881436f4600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================