Bluetooth: hci3: hcon ffff88807d824000 sent 0 < count 7 Bluetooth: hci3: hcon ffff88802f460000 sent 0 < count 8 Bluetooth: hci3: hcon ffff88807d824000 sent 0 < count 20248 ================================================================== BUG: KASAN: slab-use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x23d/0x290 kernel/locking/spinlock_debug.c:115 Read of size 4 at addr ffff88807d824904 by task kworker/u9:4/5866 CPU: 1 UID: 0 PID: 5866 Comm: kworker/u9:4 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Workqueue: hci3 hci_rx_work Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x23d/0x290 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0xb3/0xf0 kernel/locking/spinlock.c:162 skb_dequeue+0x2e/0x150 net/core/skbuff.c:3897 hci_conn_tx_dequeue+0xed/0x220 net/bluetooth/hci_conn.c:3084 hci_num_comp_pkts_evt+0x269/0xa00 net/bluetooth/hci_event.c:4420 hci_event_func net/bluetooth/hci_event.c:7535 [inline] hci_event_packet+0x7e0/0x1200 net/bluetooth/hci_event.c:7589 hci_rx_work+0x46a/0xe80 net/bluetooth/hci_core.c:4099 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x47c/0x820 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 5866: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:397 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:414 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x3d5/0x6f0 mm/slub.c:5397 kmalloc_noprof include/linux/slab.h:956 [inline] kzalloc_noprof include/linux/slab.h:1090 [inline] __hci_conn_add+0x2b9/0x1b10 net/bluetooth/hci_conn.c:948 le_conn_complete_evt+0x3d6/0x1220 net/bluetooth/hci_event.c:5635 hci_le_conn_complete_evt+0x187/0x450 net/bluetooth/hci_event.c:5787 hci_event_func net/bluetooth/hci_event.c:7532 [inline] hci_event_packet+0x78f/0x1200 net/bluetooth/hci_event.c:7589 hci_rx_work+0x46a/0xe80 net/bluetooth/hci_core.c:4099 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x47c/0x820 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 20624: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 __kasan_save_free_info+0x46/0x50 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+0x5b/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2484 [inline] slab_free mm/slub.c:6121 [inline] kfree+0x199/0x6d0 mm/slub.c:6329 device_release+0x99/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x228/0x480 lib/kobject.c:737 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline] hci_conn_del+0xc33/0x11b0 net/bluetooth/hci_conn.c:1210 hci_abort_conn_sync+0x658/0xe30 net/bluetooth/hci_sync.c:5696 hci_cmd_sync_work+0x213/0x3a0 net/bluetooth/hci_sync.c:332 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x47c/0x820 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88807d824000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2308 bytes inside of freed 8192-byte region [ffff88807d824000, ffff88807d826000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807d820000 pfn:0x7d820 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801a842280 ffffea0000a6ce10 ffffea000085f410 raw: ffff88807d820000 0000000000020001 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801a842280 ffffea0000a6ce10 ffffea000085f410 head: ffff88807d820000 0000000000020001 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001f60801 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 0x528c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP), pid 19371, tgid 19371 (syz-executor), ts 960270180207, free_ts 960248391020 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3854 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5144 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2996 [inline] allocate_slab+0x8a/0x330 mm/slub.c:3164 new_slab mm/slub.c:3218 [inline] ___slab_alloc+0xbd1/0x13f0 mm/slub.c:4420 __slab_alloc+0x55/0xa0 mm/slub.c:4511 __slab_alloc_node mm/slub.c:4586 [inline] slab_alloc_node mm/slub.c:4996 [inline] __do_kmalloc_node mm/slub.c:5365 [inline] __kvmalloc_node_noprof+0x6ba/0x910 mm/slub.c:6527 kvmalloc_array_node_noprof include/linux/slab.h:1118 [inline] __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:471 [inline] ptr_ring_init_noprof include/linux/ptr_ring.h:489 [inline] skb_array_init_noprof include/linux/skb_array.h:182 [inline] pfifo_fast_init+0x372/0x6c0 net/sched/sch_generic.c:869 qdisc_create_dflt+0x13b/0x4e0 net/sched/sch_generic.c:1019 attach_one_default_qdisc net/sched/sch_generic.c:1178 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2660 [inline] attach_default_qdiscs net/sched/sch_generic.c:1196 [inline] dev_activate+0x378/0x1150 net/sched/sch_generic.c:1255 __dev_open+0x69c/0x880 net/core/dev.c:1691 __dev_change_flags+0x1ea/0x6d0 net/core/dev.c:9598 netif_change_flags+0x88/0x1a0 net/core/dev.c:9661 do_setlink+0xc55/0x41c0 net/core/rtnetlink.c:3143 rtnl_changelink net/core/rtnetlink.c:3761 [inline] __rtnl_newlink net/core/rtnetlink.c:3920 [inline] rtnl_newlink+0x160b/0x1c70 net/core/rtnetlink.c:4057 page last free pid 5232 tgid 5232 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2891 discard_slab mm/slub.c:3262 [inline] __put_partials+0x146/0x170 mm/slub.c:3727 put_cpu_partial+0x17c/0x250 mm/slub.c:3802 __slab_free+0x2b9/0x390 mm/slub.c:5555 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:349 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4710 [inline] slab_alloc_node mm/slub.c:5008 [inline] kmem_cache_alloc_node_noprof+0x433/0x710 mm/slub.c:5060 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2617 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2671 __sys_sendmsg net/socket.c:2703 [inline] __do_sys_sendmsg net/socket.c:2708 [inline] __se_sys_sendmsg net/socket.c:2706 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2706 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88807d824800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807d824880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807d824900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807d824980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807d824a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================