smsusb:smsusb_onresponse: error, urb status -71, 0 bytes smsusb:smsusb_onresponse: error, urb status -71, 0 bytes smsusb:smsusb_onresponse: error, urb status -71, 0 bytes smsusb:smsusb_onresponse: error, urb status -71, 0 bytes ================================================================== BUG: KASAN: slab-use-after-free in dummy_timer+0x2815/0x3080 drivers/usb/gadget/udc/dummy_hcd.c:1849 Read of size 4 at addr ffff88807d1065d4 by task kworker/0:1/9 CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: usb_hub_wq hub_event Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 dummy_timer+0x2815/0x3080 drivers/usb/gadget/udc/dummy_hcd.c:1849 __run_hrtimer kernel/time/hrtimer.c:1750 [inline] __hrtimer_run_queues+0x52a/0xc40 kernel/time/hrtimer.c:1814 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1831 handle_softirqs+0x280/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:console_flush_all+0x8b1/0xd20 arch/x86/include/asm/irqflags.h:-1 Code: ed 01 00 00 e8 50 84 1b 00 4d 85 ff 48 8b 5c 24 38 75 07 e8 41 84 1b 00 eb 06 e8 3a 84 1b 00 fb 49 bf 00 00 00 00 00 fc ff df <48> 8b 44 24 58 42 0f b6 04 38 84 c0 0f 85 2f 02 00 00 80 3b 01 0f RSP: 0018:ffffc900000e6e20 EFLAGS: 00000287 RAX: ffffffff816b90d6 RBX: ffffc900000e6fbf RCX: 0000000000100000 RDX: ffffc9001a6e3000 RSI: 000000000000c981 RDI: 000000000000c982 RBP: ffffc900000e6f90 R08: ffffffff911bf507 R09: 1ffffffff2237ea0 R10: dffffc0000000000 R11: fffffbfff2237ea1 R12: ffffffff8d8b7d60 R13: 1ffffffff19f96f8 R14: ffffffff8d8b7db8 R15: dffffc0000000000 console_unlock+0xad/0x350 kernel/printk/printk.c:3069 vprintk_emit+0x497/0x610 kernel/printk/printk.c:2341 dev_vprintk_emit+0x356/0x410 drivers/base/core.c:4953 dev_printk_emit+0xef/0x140 drivers/base/core.c:4964 _dev_notice+0x11f/0x170 drivers/base/core.c:5021 usb_parse_configuration drivers/usb/core/config.c:679 [inline] usb_get_configuration+0x494f/0x4eb0 drivers/usb/core/config.c:962 usb_enumerate_device drivers/usb/core/hub.c:2492 [inline] usb_new_device+0x147/0x1660 drivers/usb/core/hub.c:2630 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29bf/0x49f0 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Allocated by task 5906: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] smsusb_init_device drivers/media/usb/siano/smsusb.c:397 [inline] smsusb_probe+0x8b8/0x1e50 drivers/media/usb/siano/smsusb.c:569 usb_probe_interface+0x5c9/0xb20 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 usb_set_configuration+0x1a79/0x20c0 drivers/usb/core/message.c:2207 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13d/0x270 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 usb_new_device+0xa3c/0x1660 drivers/usb/core/hub.c:2660 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29bf/0x49f0 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Freed by task 5906: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2e/0x50 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1811 [inline] slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837 slab_free mm/slub.c:3830 [inline] __kmem_cache_free+0xba/0x1e0 mm/slub.c:3843 smsusb_term_device+0x1ac/0x220 drivers/media/usb/siano/smsusb.c:352 smsusb_init_device drivers/media/usb/siano/smsusb.c:491 [inline] smsusb_probe+0x17a0/0x1e50 drivers/media/usb/siano/smsusb.c:569 usb_probe_interface+0x5c9/0xb20 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 usb_set_configuration+0x1a79/0x20c0 drivers/usb/core/message.c:2207 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13d/0x270 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 usb_new_device+0xa3c/0x1660 drivers/usb/core/hub.c:2660 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29bf/0x49f0 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 insert_work+0x3d/0x310 kernel/workqueue.c:1651 __queue_work+0xc39/0x1020 kernel/workqueue.c:1800 queue_work_on+0x128/0x1f0 kernel/workqueue.c:1835 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1650 dummy_timer+0xc04/0x3080 drivers/usb/gadget/udc/dummy_hcd.c:1993 __run_hrtimer kernel/time/hrtimer.c:1750 [inline] __hrtimer_run_queues+0x52a/0xc40 kernel/time/hrtimer.c:1814 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1831 handle_softirqs+0x280/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 insert_work+0x3d/0x310 kernel/workqueue.c:1651 __queue_work+0xc39/0x1020 kernel/workqueue.c:1800 queue_work_on+0x128/0x1f0 kernel/workqueue.c:1835 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1650 dummy_timer+0xc04/0x3080 drivers/usb/gadget/udc/dummy_hcd.c:1993 __run_hrtimer kernel/time/hrtimer.c:1750 [inline] __hrtimer_run_queues+0x52a/0xc40 kernel/time/hrtimer.c:1814 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1831 handle_softirqs+0x280/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 The buggy address belongs to the object at ffff88807d106000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1492 bytes inside of freed 4096-byte region [ffff88807d106000, ffff88807d107000) The buggy address belongs to the physical page: page:ffffea0001f44000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7d100 head:ffffea0001f44000 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c42140 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000040004 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 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 6009, tgid 6009 (udevd), ts 116094728899, free_ts 115760096254 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4486 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa4/0x230 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x224/0x460 security/tomoyo/file.c:771 security_file_open+0x62/0xa0 security/security.c:2854 do_dentry_open+0x380/0x1500 fs/open.c:916 do_open fs/namei.c:3640 [inline] path_openat+0x27f1/0x3230 fs/namei.c:3797 do_filp_open+0x1f5/0x430 fs/namei.c:3824 do_sys_openat2+0x134/0x1d0 fs/open.c:1421 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458 __slab_free+0x35a/0x400 mm/slub.c:3736 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] __kmem_cache_alloc_node+0x13a/0x250 mm/slub.c:3534 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] usb_control_msg+0x74/0x3e0 drivers/usb/core/message.c:144 get_bMaxPacketSize0 drivers/usb/core/hub.c:4813 [inline] hub_port_init+0xbf3/0x2750 drivers/usb/core/hub.c:5009 hub_port_connect drivers/usb/core/hub.c:5458 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x2542/0x49f0 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 Memory state around the buggy address: ffff88807d106480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807d106500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807d106580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807d106600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807d106680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: ed in (%dx),%eax 1: 01 00 add %eax,(%rax) 3: 00 e8 add %ch,%al 5: 50 push %rax 6: 84 1b test %bl,(%rbx) 8: 00 4d 85 add %cl,-0x7b(%rbp) b: ff 48 8b decl -0x75(%rax) e: 5c pop %rsp f: 24 38 and $0x38,%al 11: 75 07 jne 0x1a 13: e8 41 84 1b 00 call 0x1b8459 18: eb 06 jmp 0x20 1a: e8 3a 84 1b 00 call 0x1b8459 1f: fb sti 20: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 27: fc ff df * 2a: 48 8b 44 24 58 mov 0x58(%rsp),%rax <-- trapping instruction 2f: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax 34: 84 c0 test %al,%al 36: 0f 85 2f 02 00 00 jne 0x26b 3c: 80 3b 01 cmpb $0x1,(%rbx) 3f: 0f .byte 0xf