================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock_irq+0xa2/0xf0 kernel/locking/spinlock.c:170 Read of size 1 at addr ffff8880266ee318 by task kworker/1:2/992 CPU: 1 UID: 0 PID: 992 Comm: kworker/1:2 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: events l2cap_chan_timeout 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 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:580 kasan_check_byte include/linux/kasan.h:401 [inline] lock_acquire+0x8d/0x360 kernel/locking/lockdep.c:5842 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xa2/0xf0 kernel/locking/spinlock.c:170 rt_mutex_slowlock_block+0x5c2/0x6d0 kernel/locking/rtmutex.c:1650 __rt_mutex_slowlock kernel/locking/rtmutex.c:1721 [inline] __rt_mutex_slowlock_locked kernel/locking/rtmutex.c:1760 [inline] rt_mutex_slowlock+0x2b1/0x6e0 kernel/locking/rtmutex.c:1800 __rt_mutex_lock kernel/locking/rtmutex.c:1815 [inline] __mutex_lock_common kernel/locking/rtmutex_api.c:536 [inline] mutex_lock_nested+0x16a/0x1d0 kernel/locking/rtmutex_api.c:547 l2cap_chan_timeout+0x63/0x390 net/bluetooth/l2cap_core.c:417 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+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6246: 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:400 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __kmalloc_cache_noprof+0x1ef/0x6c0 mm/slub.c:5771 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] l2cap_conn_add+0xaa/0x8e0 net/bluetooth/l2cap_core.c:6887 l2cap_chan_connect+0x6c8/0xe30 net/bluetooth/l2cap_core.c:7078 l2cap_sock_connect+0x5c8/0x7a0 net/bluetooth/l2cap_sock.c:256 __sys_connect_file net/socket.c:2102 [inline] __sys_connect+0x323/0x450 net/socket.c:2121 __do_sys_connect net/socket.c:2127 [inline] __se_sys_connect net/socket.c:2124 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2124 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 Freed by task 5119: 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+0x5c/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2543 [inline] slab_free mm/slub.c:6642 [inline] kfree+0x197/0x950 mm/slub.c:6849 l2cap_connect_cfm+0x11d/0x1040 net/bluetooth/l2cap_core.c:7260 hci_connect_cfm include/net/bluetooth/hci_core.h:2107 [inline] hci_conn_failed+0x1ce/0x310 net/bluetooth/hci_conn.c:1324 hci_abort_conn_sync+0x658/0xe30 net/bluetooth/hci_sync.c:5703 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+0x4bc/0x870 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 ffff8880266ee000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 792 bytes inside of freed 1024-byte region [ffff8880266ee000, ffff8880266ee400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x266e8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88813ff26dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 0080000000000040 ffff88813ff26dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 0080000000000003 ffffea000099ba01 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 0x252800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_THISNODE), pid 13, tgid 13 (kworker/u8:1), ts 9583539490, free_ts 0 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+0x28c0/0x2960 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183 alloc_slab_page mm/slub.c:3061 [inline] allocate_slab+0x71/0x350 mm/slub.c:3232 new_slab mm/slub.c:3286 [inline] ___slab_alloc+0xb10/0x1400 mm/slub.c:4655 __slab_alloc+0xc6/0x1f0 mm/slub.c:4778 __slab_alloc_node mm/slub.c:4854 [inline] slab_alloc_node mm/slub.c:5276 [inline] __kmalloc_cache_node_noprof+0x1a0/0x700 mm/slub.c:5779 kmalloc_node_noprof include/linux/slab.h:983 [inline] blk_mq_alloc_hctx block/blk-mq.c:4006 [inline] blk_mq_alloc_and_init_hctx+0x182/0xd50 block/blk-mq.c:4503 __blk_mq_realloc_hw_ctxs+0x169/0x400 block/blk-mq.c:4534 blk_mq_realloc_hw_ctxs block/blk-mq.c:4561 [inline] blk_mq_init_allocated_queue+0x416/0x14e0 block/blk-mq.c:4593 blk_mq_alloc_queue+0x191/0x280 block/blk-mq.c:4403 scsi_alloc_sdev+0x785/0xb60 drivers/scsi/scsi_scan.c:339 scsi_probe_and_add_lun+0x1c5/0x4580 drivers/scsi/scsi_scan.c:1211 __scsi_scan_target+0x1dd/0xd10 drivers/scsi/scsi_scan.c:1776 scsi_scan_channel drivers/scsi/scsi_scan.c:1864 [inline] scsi_scan_host_selected+0x375/0x690 drivers/scsi/scsi_scan.c:1893 do_scsi_scan_host drivers/scsi/scsi_scan.c:2032 [inline] do_scan_async+0x124/0x760 drivers/scsi/scsi_scan.c:2042 page_owner free stack trace missing Memory state around the buggy address: ffff8880266ee200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880266ee280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880266ee300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880266ee380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880266ee400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================