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+0x3f/0x80 drivers/usb/gadget/udc/dummy_hcd.c:710 Read of size 8 at addr ffff88801e2fb6f0 by task syz.8.3726/17436 CPU: 0 UID: 0 PID: 17436 Comm: syz.8.3726 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 list_empty include/linux/list.h:404 [inline] dummy_free_request+0x3f/0x80 drivers/usb/gadget/udc/dummy_hcd.c:710 uvc_function_bind+0xe5d/0x15a0 drivers/usb/gadget/function/f_uvc.c:893 usb_add_function+0x2e1/0x9f0 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0xde0/0x1410 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0x2ca/0x9e0 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:706 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898 __driver_attach+0x339/0x600 drivers/base/dd.c:1292 bus_for_each_dev+0x23b/0x2c0 drivers/base/bus.c:383 bus_add_driver+0x345/0x670 drivers/base/bus.c:763 driver_register+0x23a/0x320 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0xf9/0x270 drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x1c9/0x2f0 drivers/usb/gadget/configfs.c:300 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x337/0x430 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc59f59e019 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc5a03b4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc59f825fa0 RCX: 00007fc59f59e019 RDX: 000000000000000b RSI: 0000200000000940 RDI: 0000000000000008 RBP: 00007fc59f63500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc59f826038 R14: 00007fc59f825fa0 R15: 00007fff071aee48 Allocated by task 1: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5334 [inline] __kmalloc_flags_noprof+0x52d/0x800 mm/slub.c:5528 _kmalloc_flags_noprof mm/slab.h:39 [inline] __alloc_empty_sheaf+0x28/0x40 mm/slub.c:2751 alloc_empty_sheaf mm/slub.c:2771 [inline] __pcs_replace_empty_main+0x430/0x6b0 mm/slub.c:4670 alloc_from_pcs mm/slub.c:4773 [inline] slab_alloc_node mm/slub.c:4905 [inline] kmem_cache_alloc_lru_noprof+0x389/0x5f0 mm/slub.c:4950 alloc_inode+0xb8/0x1b0 fs/inode.c:340 new_inode+0x1f/0x170 fs/inode.c:1174 simple_fill_super+0xeb/0x710 fs/libfs.c:1049 securityfs_fill_super+0x22/0x80 security/inode.c:47 vfs_get_super fs/super.c:1273 [inline] get_tree_single+0xc0/0x150 fs/super.c:1300 vfs_get_tree+0x92/0x2a0 fs/super.c:1700 fc_mount fs/namespace.c:1198 [inline] vfs_kern_mount+0x15b/0x220 fs/namespace.c:1236 simple_pin_fs+0xe1/0x160 fs/libfs.c:1102 securityfs_create_dentry+0x22d/0x3f0 security/inode.c:125 securityfs_create_file security/inode.c:199 [inline] securityfs_init+0xae/0xc0 security/inode.c:376 security_initcall_core+0x17/0x1e0 security/lsm_init.c:521 do_one_initcall+0x250/0x870 init/main.c:1347 do_initcall_level+0x10a/0x1a0 init/main.c:1409 do_initcalls+0x59/0xa0 init/main.c:1425 kernel_init_freeable+0x29d/0x3e0 init/main.c:1658 kernel_init+0x1d/0x1d0 init/main.c:1548 ret_from_fork+0x514/0xb70 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 ffff88801e2fb600 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 112 bytes to the right of allocated 128-byte region [ffff88801e2fb600, ffff88801e2fb680) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e2fb flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801b001a00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2, tgid 2 (kthreadd), ts 1680695270, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3266 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3380 new_slab mm/slub.c:3426 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7310 refill_sheaf mm/slub.c:2804 [inline] __pcs_replace_empty_main+0x2bf/0x6b0 mm/slub.c:4675 alloc_from_pcs mm/slub.c:4773 [inline] slab_alloc_node mm/slub.c:4905 [inline] __do_kmalloc_node mm/slub.c:5333 [inline] __kmalloc_flags_noprof+0x5be/0x800 mm/slub.c:5528 _kmalloc_flags_noprof mm/slab.h:39 [inline] __alloc_empty_sheaf+0x28/0x40 mm/slub.c:2751 alloc_empty_sheaf mm/slub.c:2771 [inline] __pcs_replace_empty_main+0x430/0x6b0 mm/slub.c:4670 alloc_from_pcs mm/slub.c:4773 [inline] slab_alloc_node mm/slub.c:4905 [inline] kmem_cache_alloc_noprof+0x382/0x5f0 mm/slub.c:4931 copy_sighand+0x50/0x220 kernel/fork.c:1680 copy_process+0x1d84/0x4390 kernel/fork.c:2283 kernel_clone+0x2d7/0x940 kernel/fork.c:2748 kernel_thread+0x13f/0x1b0 kernel/fork.c:2809 create_kthread kernel/kthread.c:459 [inline] kthreadd+0x4ec/0x6e0 kernel/kthread.c:817 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 page_owner free stack trace missing Memory state around the buggy address: ffff88801e2fb580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801e2fb600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801e2fb680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801e2fb700: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff88801e2fb780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================