------------[ cut here ]------------ usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0 WARNING: CPU: 1 PID: 703 at drivers/usb/gadget/udc/core.c:125 usb_ep_enable+0x210/0x3c0 drivers/usb/gadget/udc/core.c:124 Modules linked in: CPU: 1 UID: 0 PID: 703 Comm: udevd Not tainted syzkaller #0 91781886e4a1baa38ce9d8cd537274748dd3a26f Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:usb_ep_enable+0x210/0x3c0 drivers/usb/gadget/udc/core.c:124 Code: 4d 00 48 c7 c0 a0 50 6d 86 49 c7 c0 c0 50 6d 86 4c 0f 44 c0 48 c7 c7 60 50 6d 86 48 c7 c6 2c ea 1c 87 44 89 f2 e8 20 c8 4b fd <0f> 0b e9 4c ff ff ff e8 e4 ef ce fd 49 bc 00 00 00 00 00 fc ff df RSP: 0018:ffffc90000230878 EFLAGS: 00010046 RAX: abda31ce5870cf00 RBX: ffff888104b880b0 RCX: ffff888121113900 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc900002308a0 R08: ffff8881f6f294d3 R09: 1ffff1103ede529a R10: dffffc0000000000 R11: ffffed103ede529b R12: dffffc0000000000 R13: ffff888104b880b8 R14: 0000000000000081 R15: ffff88811eed74ba FS: 00007f202f9bd880(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe23e5eb700 CR3: 0000000121bb2000 CR4: 00000000003526b0 DR0: 0000000000000000 DR1: 00000000e88ba5cb DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: hidg_set_alt+0x138/0xa70 drivers/usb/gadget/function/f_hid.c:1057 set_config+0x812/0xd10 drivers/usb/gadget/composite.c:1021 composite_setup+0x1885/0x32f0 drivers/usb/gadget/composite.c:1929 configfs_composite_setup+0xc6/0x110 drivers/usb/gadget/configfs.c:1883 dummy_timer+0x2eee/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:1935 __run_hrtimer kernel/time/hrtimer.c:1757 [inline] __hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838 handle_softirqs+0x1aa/0x620 kernel/softirq.c:621 __do_softirq kernel/softirq.c:659 [inline] invoke_softirq kernel/softirq.c:476 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708 irq_exit_rcu+0xd/0x30 kernel/softirq.c:720 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702 RIP: 0010:preempt_schedule_irq+0xa6/0x110 kernel/sched/core.c:8202 Code: 24 20 f7 44 24 20 00 02 00 00 43 c6 44 37 04 f8 74 0b 0f 0b 48 f7 03 08 00 00 00 74 3a 65 ff 05 88 72 60 7a fb bf 01 00 00 00 f5 d8 ff ff fa 65 ff 0d 75 72 60 7a 65 48 8b 1d 65 72 60 7a 48 RSP: 0018:ffffc9000e6774c0 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffc9000e677598 RCX: ffff8881f6f00000 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffc9000e677548 R08: ffff888121113900 R09: 0000000000000002 R10: 0000000000000000 R11: ffffffff81425f90 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff92001ccee98 raw_irqentry_exit_cond_resched+0x32/0x40 kernel/entry/common.c:311 irqentry_exit+0x4a/0x60 kernel/entry/common.c:354 sysvec_apic_timer_interrupt+0x50/0x90 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702 RIP: 0010:check_region_inline mm/kasan/generic.c:-1 [inline] RIP: 0010:kasan_check_range+0xf/0x2b0 mm/kasan/generic.c:189 Code: ff c3 cc cc cc cc cc cc cc cc cc b8 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 b0 01 48 85 f6 0f 84 c0 01 00 00 <55> 48 89 e5 41 57 41 56 41 55 41 54 53 4c 8d 04 37 49 39 f8 0f 82 RSP: 0018:ffffc9000e677648 EFLAGS: 00000202 RAX: ffffffff82747f01 RBX: 1ffff92001cceed4 RCX: ffffffff82747c9f RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffffff88c188e8 RBP: ffffc9000e677650 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001cceebc R12: 0000000000000202 R13: 00000000000001a1 R14: dffffc0000000000 R15: 0000000000000001 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_inc_return include/linux/atomic/atomic-instrumented.h:453 [inline] avc_reclaim_node security/selinux/avc.c:467 [inline] avc_alloc_node+0x11f/0x520 security/selinux/avc.c:506 avc_insert security/selinux/avc.c:619 [inline] avc_compute_av+0xeb/0x760 security/selinux/avc.c:995 avc_perm_nonode+0xda/0x1d0 security/selinux/avc.c:1118 avc_has_perm_noaudit+0x21f/0x360 security/selinux/avc.c:1161 avc_has_perm+0xd3/0x240 security/selinux/avc.c:1196 inode_has_perm security/selinux/hooks.c:1690 [inline] path_has_perm security/selinux/hooks.c:1722 [inline] selinux_inode_getattr+0x2bf/0x3d0 security/selinux/hooks.c:3193 security_inode_getattr+0xe3/0x180 security/security.c:2378 vfs_getattr fs/stat.c:204 [inline] vfs_statx_path+0x3f/0x300 fs/stat.c:251 vfs_statx+0x138/0x210 fs/stat.c:315 vfs_fstatat+0xe5/0x1d0 fs/stat.c:341 __do_sys_newfstatat fs/stat.c:505 [inline] __se_sys_newfstatat+0x127/0x3c0 fs/stat.c:499 __x64_sys_newfstatat+0x9f/0xc0 fs/stat.c:499 x64_sys_call+0x1821/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f202f311b0a Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7 RSP: 002b:00007ffeccfbfec8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ffeccfc13c8 RCX: 00007f202f311b0a RDX: 00007ffeccfbfed0 RSI: 00007ffeccfbff60 RDI: 00000000ffffff9c RBP: 0000562fe0809540 R08: 00007ffeccfc13c8 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 0000562fe0809630 R13: 00007ffeccfbff60 R14: 00007ffeccfc13c1 R15: 00007ffeccfc13c8 ---[ end trace 0000000000000000 ]--- configfs-gadget.g1 gadget.0: Enable IN endpoint FAILED! ---------------- Code disassembly (best guess): 0: 24 20 and $0x20,%al 2: f7 44 24 20 00 02 00 testl $0x200,0x20(%rsp) 9: 00 a: 43 c6 44 37 04 f8 movb $0xf8,0x4(%r15,%r14,1) 10: 74 0b je 0x1d 12: 0f 0b ud2 14: 48 f7 03 08 00 00 00 testq $0x8,(%rbx) 1b: 74 3a je 0x57 1d: 65 ff 05 88 72 60 7a incl %gs:0x7a607288(%rip) # 0x7a6072ac 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 f5 d8 ff ff call 0xffffd924 <-- trapping instruction 2f: fa cli 30: 65 ff 0d 75 72 60 7a decl %gs:0x7a607275(%rip) # 0x7a6072ac 37: 65 48 8b 1d 65 72 60 mov %gs:0x7a607265(%rip),%rbx # 0x7a6072a4 3e: 7a 3f: 48 rex.W