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:691 Read of size 8 at addr ffff88807ee446f0 by task syz.6.1122/12438 CPU: 1 UID: 0 PID: 12438 Comm: syz.6.1122 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/10/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:691 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:0x7f5f3819de99 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:00007f5f363f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5f38426090 RCX: 00007f5f3819de99 RDX: 000000000000000b RSI: 0000200000000700 RDI: 0000000000000005 RBP: 00007f5f38233eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5f38426128 R14: 00007f5f38426090 R15: 00007ffc29b9b5a8 Allocated by task 11819: 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] __kmalloc_cache_noprof+0x32d/0x660 mm/slub.c:5515 _kmalloc_noprof include/linux/slab.h:969 [inline] __hw_addr_create+0x62/0x240 net/core/dev_addr_lists.c:62 __hw_addr_add_ex+0x1ce/0x520 net/core/dev_addr_lists.c:120 __dev_mc_add net/core/dev_addr_lists.c:998 [inline] dev_mc_add+0xa1/0x120 net/core/dev_addr_lists.c:1016 ip_mc_filter_add net/ipv4/igmp.c:1186 [inline] igmp_group_added+0x1df/0x910 net/ipv4/igmp.c:1375 ____ip_mc_inc_group+0xb46/0xdb0 net/ipv4/igmp.c:1591 __ip_mc_inc_group net/ipv4/igmp.c:1601 [inline] ip_mc_inc_group net/ipv4/igmp.c:1607 [inline] ip_mc_up+0x115/0x2e0 net/ipv4/igmp.c:1912 inetdev_event+0xfca/0x15e0 net/ipv4/devinet.c:1630 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2288 [inline] call_netdevice_notifiers net/core/dev.c:2302 [inline] __dev_notify_flags+0x1aa/0x310 net/core/dev.c:9799 netif_change_flags+0xde/0x1b0 net/core/dev.c:9828 do_setlink+0xdd6/0x4670 net/core/rtnetlink.c:3215 rtnl_changelink net/core/rtnetlink.c:3849 [inline] __rtnl_newlink net/core/rtnetlink.c:4022 [inline] rtnl_newlink+0x15c2/0x1bd0 net/core/rtnetlink.c:4159 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7076 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2252 __do_sys_sendto net/socket.c:2259 [inline] __se_sys_sendto net/socket.c:2255 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2255 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 The buggy address belongs to the object at ffff88807ee44600 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 136 bytes to the right of allocated 104-byte region [ffff88807ee44600, ffff88807ee44668) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7ee44 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801b004a00 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5636, tgid 5636 (syz-executor), ts 85825198675, free_ts 85803330429 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:3294 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3408 new_slab mm/slub.c:3454 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7338 refill_sheaf mm/slub.c:2832 [inline] __pcs_replace_empty_main+0x2bf/0x6b0 mm/slub.c:4703 alloc_from_pcs mm/slub.c:4801 [inline] slab_alloc_node mm/slub.c:4933 [inline] __kmalloc_cache_noprof+0x3a7/0x660 mm/slub.c:5511 _kmalloc_noprof include/linux/slab.h:969 [inline] __hw_addr_create+0x62/0x240 net/core/dev_addr_lists.c:62 __hw_addr_add_ex+0x1ce/0x520 net/core/dev_addr_lists.c:120 __hw_addr_add net/core/dev_addr_lists.c:137 [inline] dev_addr_init+0x15a/0x240 net/core/dev_addr_lists.c:689 alloc_netdev_mqs+0x2b4/0x12b0 net/core/dev.c:12071 rtnl_create_link+0x321/0xd70 net/core/rtnetlink.c:3721 rtnl_newlink_create+0x25f/0xb00 net/core/rtnetlink.c:3903 __rtnl_newlink net/core/rtnetlink.c:4044 [inline] rtnl_newlink+0x167f/0x1bd0 net/core/rtnetlink.c:4159 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7076 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0xc1e/0xd10 mm/page_alloc.c:2950 rcu_do_batch kernel/rcu/tree.c:2645 [inline] rcu_core+0x78b/0x10a0 kernel/rcu/tree.c:2897 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Memory state around the buggy address: ffff88807ee44580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807ee44600: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc >ffff88807ee44680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807ee44700: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff88807ee44780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================