usb 1-1: new full-speed USB device number 15 using dummy_hcd ================================================================== BUG: KASAN: use-after-free in hlist_add_head include/linux/list.h:930 [inline] BUG: KASAN: use-after-free in enqueue_timer+0xae/0x480 kernel/time/timer.c:611 Write of size 8 at addr ffff8881167d0a00 by task kworker/1:7/708 CPU: 1 PID: 708 Comm: kworker/1:7 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report_generic.c:356 hlist_add_head include/linux/list.h:930 [inline] enqueue_timer+0xae/0x480 kernel/time/timer.c:611 __mod_timer+0x79f/0xb30 kernel/time/timer.c:-1 schedule_timeout+0x127/0x2e0 kernel/time/timer.c:1970 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common+0x354/0x620 kernel/sched/completion.c:117 wait_for_completion_timeout+0xe/0x10 kernel/sched/completion.c:157 usb_start_wait_urb+0x166/0x2f0 drivers/usb/core/message.c:63 usb_internal_control_msg drivers/usb/core/message.c:102 [inline] usb_control_msg+0x241/0x3f0 drivers/usb/core/message.c:153 set_port_feature drivers/usb/core/hub.c:468 [inline] hub_port_reset+0x302/0x16e0 drivers/usb/core/hub.c:3098 hub_port_init+0x988/0x2880 drivers/usb/core/hub.c:5076 hub_port_connect drivers/usb/core/hub.c:5523 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x242f/0x4350 drivers/usb/core/hub.c:5980 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 2453: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:388 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc+0xb1/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] hci_alloc_dev_priv+0x27/0x1bd0 net/bluetooth/hci_core.c:2433 hci_alloc_dev include/net/bluetooth/hci_core.h:1484 [inline] hci_uart_register_dev drivers/bluetooth/hci_ldisc.c:641 [inline] hci_uart_set_proto drivers/bluetooth/hci_ldisc.c:719 [inline] hci_uart_tty_ioctl+0x3d6/0xa20 drivers/bluetooth/hci_ldisc.c:774 tty_ioctl+0x8ef/0xc60 drivers/tty/tty_io.c:2785 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x12f/0x1b0 fs/ioctl.c:856 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856 x64_sys_call+0x58b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 2452: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:241 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 hci_release_dev+0x12a3/0x13b0 net/bluetooth/hci_core.c:2761 bt_host_release+0x82/0x90 net/bluetooth/hci_sysfs.c:85 device_release+0xa4/0x1d0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:681 [inline] kobject_release lib/kobject.c:712 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x19d/0x280 lib/kobject.c:729 put_device+0x1f/0x30 drivers/base/core.c:3806 hci_free_dev+0x1c/0x20 net/bluetooth/hci_core.c:2556 hci_uart_tty_close+0x1a3/0x230 drivers/bluetooth/hci_ldisc.c:555 tty_ldisc_close drivers/tty/tty_ldisc.c:456 [inline] tty_ldisc_kill+0x10f/0x1f0 drivers/tty/tty_ldisc.c:608 tty_ldisc_release+0x1a5/0x200 drivers/tty/tty_ldisc.c:776 tty_release_struct+0x29/0xe0 drivers/tty/tty_io.c:1689 tty_release+0xbfd/0x1210 drivers/tty/tty_io.c:1860 __fput+0x1fc/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1db/0x240 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 insert_work+0x51/0x300 kernel/workqueue.c:1368 __queue_work+0x9b1/0xd30 kernel/workqueue.c:1527 queue_work_on+0xd2/0x140 kernel/workqueue.c:1555 queue_work include/linux/workqueue.h:510 [inline] hci_cmd_sync_run net/bluetooth/hci_sync.c:140 [inline] __hci_cmd_sync_sk+0xa3e/0xcf0 net/bluetooth/hci_sync.c:162 __hci_cmd_sync_status_sk net/bluetooth/hci_sync.c:253 [inline] __hci_cmd_sync_status net/bluetooth/hci_sync.c:277 [inline] hci_cmd_sync_status+0x53/0x120 net/bluetooth/hci_sync.c:288 hci_dev_cmd+0x628/0x720 net/bluetooth/hci_core.c:-1 hci_sock_ioctl+0x41e/0x7f0 net/bluetooth/hci_sock.c:1096 sock_do_ioctl+0x101/0x310 net/socket.c:1194 sock_ioctl+0x4d8/0x6e0 net/socket.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x12f/0x1b0 fs/ioctl.c:856 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856 x64_sys_call+0x58b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 insert_work+0x51/0x300 kernel/workqueue.c:1368 __queue_work+0x9b1/0xd30 kernel/workqueue.c:1527 queue_work_on+0xd2/0x140 kernel/workqueue.c:1555 queue_work include/linux/workqueue.h:510 [inline] hci_cmd_timeout+0x191/0x200 net/bluetooth/hci_core.c:1468 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff8881167d0000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2560 bytes inside of 8192-byte region [ffff8881167d0000, ffff8881167d2000) The buggy address belongs to the physical page: page:ffffea000459f400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1167d0 head:ffffea000459f400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000001 ffff888100043500 raw: 0000000000000000 0000000000020002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 2544721871, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2643 prep_new_page+0x1c/0x110 mm/page_alloc.c:2650 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4554 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5868 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3d0 mm/slub.c:2020 ___slab_alloc+0x6bd/0xb20 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x203/0x2c0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node+0xa1/0x1e0 mm/slab_common.c:945 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0x294/0x480 mm/util.c:592 kvzalloc_node include/linux/slab.h:720 [inline] sbitmap_init_node+0x43b/0x580 lib/sbitmap.c:113 scsi_realloc_sdev_budget_map+0x24e/0x3a0 drivers/scsi/scsi_scan.c:246 scsi_alloc_sdev+0x7ee/0xac0 drivers/scsi/scsi_scan.c:357 scsi_probe_and_add_lun+0x192/0x3bb0 drivers/scsi/scsi_scan.c:1188 __scsi_scan_target+0x1e8/0xbb0 drivers/scsi/scsi_scan.c:1724 page_owner free stack trace missing Memory state around the buggy address: ffff8881167d0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881167d0980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881167d0a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881167d0a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881167d0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================