------------[ cut here ]------------ usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0 WARNING: drivers/usb/gadget/udc/core.c:124 at usb_ep_enable+0xa0/0xdc drivers/usb/gadget/udc/core.c:124, CPU#1: syz.1.1296/7263 Modules linked in: CPU: 1 UID: 0 PID: 7263 Comm: syz.1.1296 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: linux,dummy-virt (DT) pstate: 604020c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : usb_ep_enable+0xa0/0xdc drivers/usb/gadget/udc/core.c:124 lr : usb_ep_enable+0xa0/0xdc drivers/usb/gadget/udc/core.c:124 sp : ffff800082f03c70 x29: ffff800082f03c70 x28: 0000000000007fff x27: 0000000000000000 x26: fcf000000646f580 x25: f5f0000008da34b8 x24: f5f0000008ca1510 x23: f6f0000005c9e0a8 x22: fdf0000010cc8478 x21: 0000000000000000 x20: f6f0000005c9ebc8 x19: f6f0000005c9e0a8 x18: 00000000ffffffff x17: fff07ffffcda2000 x16: ffff800082f00000 x15: ffff800082e052f9 x14: 00000000ffffffea x13: ffff800082f038c8 x12: 00000000000affa8 x11: ffff800082b8ed68 x10: 000000000002ffe8 x9 : ffff800082c3ed68 x8 : ffff800082c6ed50 x7 : 0000000000000001 x6 : ffffffffffffdfff x5 : fff000007f8d2188 x4 : 0000000000000000 x3 : fff07ffffcda2000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : f3f00000048f4400 Call trace: usb_ep_enable+0xa0/0xdc drivers/usb/gadget/udc/core.c:124 (P) hidg_set_alt+0x64/0x2b8 drivers/usb/gadget/function/f_hid.c:1042 set_config drivers/usb/gadget/composite.c:1018 [inline] composite_setup+0xa04/0x1a70 drivers/usb/gadget/composite.c:1901 configfs_composite_setup+0x80/0xac drivers/usb/gadget/configfs.c:1877 dummy_timer+0xb70/0xfa0 drivers/usb/gadget/udc/dummy_hcd.c:1951 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x100/0x170 kernel/time/hrtimer.c:2096 hrtimer_run_softirq+0x6c/0xac kernel/time/hrtimer.c:2113 handle_softirqs+0x100/0x244 kernel/softirq.c:622 __do_softirq+0x14/0x20 kernel/softirq.c:656 ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:889 do_softirq_own_stack+0x1c/0x40 arch/arm64/kernel/irq.c:83 invoke_softirq kernel/softirq.c:503 [inline] __irq_exit_rcu+0xd4/0x10c kernel/softirq.c:735 irq_exit_rcu+0x10/0x1c kernel/softirq.c:752 __el1_irq arch/arm64/kernel/entry-common.c:510 [inline] el1_interrupt+0x40/0x60 arch/arm64/kernel/entry-common.c:522 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:527 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:590 __daif_local_irq_enable arch/arm64/include/asm/irqflags.h:26 [inline] (P) arch_local_irq_enable arch/arm64/include/asm/irqflags.h:48 [inline] (P) raw_spin_rq_unlock_irq kernel/sched/sched.h:1673 [inline] (P) finish_lock_switch kernel/sched/core.c:5241 [inline] (P) finish_task_switch.isra.0+0x90/0x2fc kernel/sched/core.c:5359 (P) context_switch kernel/sched/core.c:5513 [inline] __schedule+0x404/0xdc8 kernel/sched/core.c:7234 __schedule_loop kernel/sched/core.c:7311 [inline] schedule+0x34/0xd4 kernel/sched/core.c:7326 schedule_timeout+0xd4/0x110 kernel/time/sleep_timeout.c:75 unix_wait_for_peer+0xd8/0xe4 net/unix/af_unix.c:1621 unix_dgram_sendmsg+0x6e8/0x728 net/unix/af_unix.c:2257 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg+0x54/0x60 net/socket.c:790 ____sys_sendmsg+0x104/0x2a8 net/socket.c:2684 ___sys_sendmsg+0xb0/0x108 net/socket.c:2738 __sys_sendmmsg+0x110/0x24c net/socket.c:2827 __do_sys_sendmmsg net/socket.c:2854 [inline] __se_sys_sendmmsg net/socket.c:2851 [inline] __arm64_sys_sendmmsg+0x28/0x38 net/socket.c:2851 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x54/0x10c arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:121 do_el0_svc+0x1c/0x34 arch/arm64/kernel/syscall.c:140 el0_svc+0x38/0x1fc arch/arm64/kernel/entry-common.c:736 el0t_64_sync_handler+0xa0/0xf0 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x1a4/0x1a8 arch/arm64/kernel/entry.S:594 ---[ end trace 0000000000000000 ]--- configfs-gadget.g1 gadget.0: Enable IN endpoint FAILED!