configfs-gadget.g1 gadget.0: uvc: uvc_function_bind() configfs-gadget.g1 gadget.0: uvc: Unable to allocate streaming EP ================================================================== BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:404 [inline] BUG: KASAN: slab-out-of-bounds in dummy_free_request+0x44/0x84 drivers/usb/gadget/udc/dummy_hcd.c:691 Read of size 8 at addr ffff0000d260f4f0 by task syz.2.1318/10177 CPU: 0 UID: 0 PID: 10177 Comm: syz.2.1318 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 list_empty include/linux/list.h:404 [inline] dummy_free_request+0x44/0x84 drivers/usb/gadget/udc/dummy_hcd.c:691 usb_ep_free_request+0x108/0x3fc drivers/usb/gadget/udc/core.c:221 uvc_function_bind+0xbb0/0x1230 drivers/usb/gadget/function/f_uvc.c:893 usb_add_function+0x1d0/0x6bc drivers/usb/gadget/composite.c:333 configfs_composite_bind+0xb4c/0x10b8 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0x274/0x834 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x29c/0x800 drivers/base/dd.c:706 __driver_probe_device+0x1e0/0x350 drivers/base/dd.c:868 driver_probe_device+0x6c/0x19c drivers/base/dd.c:898 __driver_attach+0x168/0x384 drivers/base/dd.c:1292 bus_for_each_dev+0x128/0x1b4 drivers/base/bus.c:383 driver_attach+0x50/0x60 drivers/base/dd.c:1310 bus_add_driver+0x208/0x500 drivers/base/bus.c:763 driver_register+0x220/0x310 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0xf0/0x25c drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x164/0x22c drivers/usb/gadget/configfs.c:300 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x27c/0x354 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x51c/0xa0c fs/read_write.c:687 ksys_write+0x12c/0x228 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:736 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 Allocated by task 4334: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5362 [inline] __kmalloc_noprof+0x340/0x6b8 mm/slub.c:5387 _kmalloc_noprof include/linux/slab.h:973 [inline] _kzalloc_noprof include/linux/slab.h:1290 [inline] tomoyo_get_name+0x1fc/0x400 security/tomoyo/memory.c:173 tomoyo_assign_domain+0x240/0x5ec security/tomoyo/domain.c:569 tomoyo_find_next_domain+0xba0/0x1640 security/tomoyo/domain.c:857 tomoyo_bprm_check_security+0x10c/0x170 security/tomoyo/tomoyo.c:102 security_bprm_check+0x8c/0x258 security/security.c:820 search_binary_handler fs/exec.c:1684 [inline] exec_binprm fs/exec.c:1726 [inline] bprm_execve+0x748/0x1398 fs/exec.c:1778 do_execveat_common+0x3e0/0x52c fs/exec.c:1876 __do_sys_execve fs/exec.c:1949 [inline] __se_sys_execve fs/exec.c:1943 [inline] __arm64_sys_execve+0xa0/0xc4 fs/exec.c:1943 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:736 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 The buggy address belongs to the object at ffff0000d260f400 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 142 bytes to the right of allocated 98-byte region [ffff0000d260f400, ffff0000d260f462) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11260f flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c0001a00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d260f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d260f400: 00 00 00 00 00 00 00 00 00 00 00 00 02 fc fc fc >ffff0000d260f480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d260f500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d260f580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ------------[ cut here ]------------ WARNING: drivers/usb/gadget/udc/dummy_hcd.c:691 at dummy_free_request+0x7c/0x84 drivers/usb/gadget/udc/dummy_hcd.c:691, CPU#0: syz.2.1318/10177 Modules linked in: CPU: 0 UID: 0 PID: 10177 Comm: syz.2.1318 Tainted: G B L syzkaller #0 PREEMPT Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : dummy_free_request+0x7c/0x84 drivers/usb/gadget/udc/dummy_hcd.c:691 lr : dummy_free_request+0x7c/0x84 drivers/usb/gadget/udc/dummy_hcd.c:691 sp : ffff8000931d74e0 x29: ffff8000931d74e0 x28: 0000000000000000 x27: ffff0000c29e2528 x26: ffff0000d15db000 x25: 1fffe0001853c4a5 x24: dfff800000000000 x23: dfff800000000000 x22: ffff800088b07eb8 x21: ffff800087332040 x20: ffff0000c99e8068 x19: ffff0000d260f4f0 x18: 0000000000000000 x17: 3d3d3d3d3d3d3d3d x16: 3d3d3d3d3d3d3d3d x15: 3d3d3d3d3d3d3d3d x14: 3d3d3d3d3d3d3d3d x13: 0000000000000001 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000080000 x9 : 000000000001ac2d x8 : ffff800096059000 x7 : 0000000000000000 x6 : ffff80008048de94 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000802f7b18 x2 : 0000000000000000 x1 : ffff0000c82e1d40 x0 : 0000000000000001 Call trace: dummy_free_request+0x7c/0x84 drivers/usb/gadget/udc/dummy_hcd.c:691 (P) usb_ep_free_request+0x108/0x3fc drivers/usb/gadget/udc/core.c:221 uvc_function_bind+0xbb0/0x1230 drivers/usb/gadget/function/f_uvc.c:893 usb_add_function+0x1d0/0x6bc drivers/usb/gadget/composite.c:333 configfs_composite_bind+0xb4c/0x10b8 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0x274/0x834 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x29c/0x800 drivers/base/dd.c:706 __driver_probe_device+0x1e0/0x350 drivers/base/dd.c:868 driver_probe_device+0x6c/0x19c drivers/base/dd.c:898 __driver_attach+0x168/0x384 drivers/base/dd.c:1292 bus_for_each_dev+0x128/0x1b4 drivers/base/bus.c:383 driver_attach+0x50/0x60 drivers/base/dd.c:1310 bus_add_driver+0x208/0x500 drivers/base/bus.c:763 driver_register+0x220/0x310 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0xf0/0x25c drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x164/0x22c drivers/usb/gadget/configfs.c:300 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x27c/0x354 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x51c/0xa0c fs/read_write.c:687 ksys_write+0x12c/0x228 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:736 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 irq event stamp: 961 hardirqs last enabled at (961): [] irqentry_exit_to_kernel_mode_after_preempt include/linux/irq-entry-common.h:507 [inline] hardirqs last enabled at (961): [] arm64_exit_to_kernel_mode+0x80/0x94 arch/arm64/kernel/entry-common.c:62 hardirqs last disabled at (960): [] __el1_irq arch/arm64/kernel/entry-common.c:506 [inline] hardirqs last disabled at (960): [] el1_interrupt+0x28/0x60 arch/arm64/kernel/entry-common.c:522 softirqs last enabled at (920): [] __alloc_skb+0x1c0/0x610 net/core/skbuff.c:698 softirqs last disabled at (918): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last disabled at (918): [] __alloc_skb+0x1a8/0x610 net/core/skbuff.c:697 ---[ end trace 0000000000000000 ]--- udc dummy_udc.0: failed to start g1: -22 configfs-gadget.g1 gadget.0: probe with driver configfs-gadget.g1 failed with error -22 UDC core: g1: couldn't find an available UDC or it's busy