configfs-gadget gadget: uvc: uvc_function_bind() configfs-gadget gadget: uvc: Unable to allocate streaming EP ================================================================== BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:290 [inline] BUG: KASAN: slab-out-of-bounds in dummy_free_request+0x3b/0x70 drivers/usb/gadget/udc/dummy_hcd.c:687 Read of size 8 at addr ffff888075bc43f0 by task syz.0.218/5032 CPU: 1 PID: 5032 Comm: syz.0.218 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 list_empty include/linux/list.h:290 [inline] dummy_free_request+0x3b/0x70 drivers/usb/gadget/udc/dummy_hcd.c:687 uvc_function_bind+0xe24/0x12d0 drivers/usb/gadget/function/f_uvc.c:785 usb_add_function+0x2d9/0x980 drivers/usb/gadget/composite.c:324 configfs_composite_bind+0xa02/0xf60 drivers/usb/gadget/configfs.c:1417 udc_bind_to_driver+0x203/0x5f0 drivers/usb/gadget/udc/core.c:1574 usb_gadget_probe_driver+0x1fb/0x380 drivers/usb/gadget/udc/core.c:1637 gadget_dev_desc_UDC_store+0x1ba/0x2e0 drivers/usb/gadget/configfs.c:289 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x30b/0x400 fs/configfs/file.c:229 call_write_iter include/linux/fs.h:2173 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7effb120ae99 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:00007effaf463028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007effb1492fa0 RCX: 00007effb120ae99 RDX: 000000000000000b RSI: 0000200000000880 RDI: 0000000000000003 RBP: 00007effb12a0eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007effb1493038 R14: 00007effb1492fa0 R15: 00007ffcc2f35ca8 Allocated by task 7: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:607 [inline] __hw_addr_create net/core/dev_addr_lists.c:29 [inline] __hw_addr_add_ex+0x1ed/0x780 net/core/dev_addr_lists.c:93 __dev_mc_add net/core/dev_addr_lists.c:832 [inline] dev_mc_add+0x91/0x110 net/core/dev_addr_lists.c:850 igmp6_group_added+0x228/0x7c0 net/ipv6/mcast.c:684 __ipv6_dev_mc_inc+0x959/0xb20 net/ipv6/mcast.c:955 addrconf_join_solict net/ipv6/addrconf.c:2211 [inline] addrconf_dad_begin net/ipv6/addrconf.c:4026 [inline] addrconf_dad_work+0x3bd/0x1530 net/ipv6/addrconf.c:4153 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888075bc4300 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 112 bytes to the right of 128-byte region [ffff888075bc4300, ffff888075bc4380) The buggy address belongs to the page: page:ffffea0001d6f100 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888075bc4c00 pfn:0x75bc4 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001eafec0 0000000c0000000c ffff888016c418c0 raw: ffff888075bc4c00 000000008010000d 00000001ffffffff 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 3559, ts 95911999419, free_ts 95608100925 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc_trace+0xf9/0x290 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] kernfs_get_open_node fs/kernfs/file.c:552 [inline] kernfs_fop_open+0x887/0xba0 fs/kernfs/file.c:698 do_dentry_open+0x7f7/0xf90 fs/open.c:826 do_open fs/namei.c:3616 [inline] path_openat+0x2718/0x2fb0 fs/namei.c:3750 do_filp_open+0x1df/0x400 fs/namei.c:3777 do_sys_openat2+0x14b/0x500 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_openat fs/open.c:1287 [inline] __se_sys_openat fs/open.c:1282 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1282 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x119/0x830 mm/page_alloc.c:3433 release_pages+0x185f/0x1bd0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline] tlb_flush_mmu_free mm/mmu_gather.c:241 [inline] tlb_flush_mmu mm/mmu_gather.c:248 [inline] tlb_finish_mmu+0x1b4/0x370 mm/mmu_gather.c:371 exit_mmap+0x3d0/0x640 mm/mmap.c:3218 __mmput+0x115/0x390 kernel/fork.c:1128 exit_mm+0x632/0x7b0 kernel/exit.c:551 do_exit+0x5b8/0x2110 kernel/exit.c:871 do_group_exit+0x12c/0x2f0 kernel/exit.c:998 get_signal+0x7eb/0x12e0 kernel/signal.c:2901 arch_do_signal_or_restart+0xe6/0x12a0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888075bc4280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888075bc4300: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc >ffff888075bc4380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888075bc4400: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff888075bc4480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================