------------[ cut here ]------------ usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0 WARNING: drivers/usb/gadget/udc/core.c:124 at usb_ep_enable+0x330/0x42c drivers/usb/gadget/udc/core.c:124, CPU#1: kworker/1:4/3536 Modules linked in: CPU: 1 UID: 0 PID: 3536 Comm: kworker/1:4 Not tainted syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) Workqueue: usb_hub_wq hub_event pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : usb_ep_enable+0x330/0x42c drivers/usb/gadget/udc/core.c:124 lr : usb_ep_enable+0x330/0x42c drivers/usb/gadget/udc/core.c:124 sp : ffff80008db77820 x29: ffff80008db77820 x28: 0000000000000000 x27: ffff000018386000 x26: ffff00001cf57020 x25: ffff00001c596528 x24: ffff000018386828 x23: 1fffe00003013823 x22: 0000000000000005 x21: ffff00001cf5703a x20: 0000000000000081 x19: ffff00001809c0e0 x18: ffff00006bfa9268 x17: ffff800083858d58 x16: 00000000f1f1f1f1 x15: 00000000f3f3f3f3 x14: 0000000000000000 x13: 0000000000020000 x12: ffff60000d7f4a6b x11: 1fffe0000d7f4a6a x10: ffff60000d7f4a6a x9 : dfff800000000000 x8 : ffff00006bfa5353 x7 : 0000000000000001 x6 : ffff60000d7f4a6a x5 : ffff00006bfa5350 x4 : 1fffe000028bc001 x3 : dfff800000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000145e0000 Call trace: usb_ep_enable+0x330/0x42c drivers/usb/gadget/udc/core.c:124 (P) hidg_set_alt+0x110/0x8ec drivers/usb/gadget/function/f_hid.c:1042 set_config drivers/usb/gadget/composite.c:1018 [inline] composite_setup+0x1edc/0x7b98 drivers/usb/gadget/composite.c:1901 configfs_composite_setup+0xd8/0x128 drivers/usb/gadget/configfs.c:1877 dummy_timer+0x17b8/0x34dc drivers/usb/gadget/udc/dummy_hcd.c:1955 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x2a0/0xaa0 kernel/time/hrtimer.c:2131 hrtimer_run_softirq+0x168/0x2ac kernel/time/hrtimer.c:2148 handle_softirqs+0x2d8/0x1054 kernel/softirq.c:645 __do_softirq+0x14/0x20 kernel/softirq.c:679 ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:885 do_softirq_own_stack+0x1c/0x40 arch/arm64/kernel/irq.c:83 invoke_softirq kernel/softirq.c:526 [inline] __irq_exit_rcu+0x3fc/0x560 kernel/softirq.c:758 irq_exit_rcu+0x14/0x80 kernel/softirq.c:775 __el1_irq arch/arm64/kernel/entry-common.c:531 [inline] el1_interrupt+0x40/0x60 arch/arm64/kernel/entry-common.c:543 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:548 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:586 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:175 [inline] (P) arch_local_irq_restore arch/arm64/include/asm/irqflags.h:195 [inline] (P) __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] (P) _raw_spin_unlock_irqrestore+0x40/0xb4 kernel/locking/spinlock.c:221 (P) spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] dummy_urb_enqueue+0x3cc/0x614 drivers/usb/gadget/udc/dummy_hcd.c:1341 usb_hcd_submit_urb+0x1d8/0x1e9c drivers/usb/core/hcd.c:1542 usb_submit_urb+0x56c/0x1200 drivers/usb/core/urb.c:586 usb_start_wait_urb+0x108/0x430 drivers/usb/core/message.c:62 usb_internal_control_msg drivers/usb/core/message.c:117 [inline] usb_control_msg+0x2ac/0x3d0 drivers/usb/core/message.c:167 usb_control_msg_send drivers/usb/core/message.c:226 [inline] usb_set_configuration+0xa68/0x1880 drivers/usb/core/message.c:2215 usb_generic_driver_probe+0x7c/0xc8 drivers/usb/core/generic.c:250 usb_probe_device+0xa4/0x328 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x180/0x850 drivers/base/dd.c:706 __driver_probe_device+0x2bc/0x3e8 drivers/base/dd.c:868 driver_probe_device+0xe8/0x160 drivers/base/dd.c:898 __device_attach_driver+0x16c/0x280 drivers/base/dd.c:1026 bus_for_each_drv+0x108/0x1a0 drivers/base/bus.c:500 __device_attach+0x16c/0x37c drivers/base/dd.c:1098 device_initial_probe+0x8c/0xa0 drivers/base/dd.c:1153 bus_probe_device+0x4c/0x130 drivers/base/bus.c:620 device_add+0xcc4/0x1380 drivers/base/core.c:3776 usb_new_device.part.0+0xae8/0x1130 drivers/usb/core/hub.c:2713 usb_new_device include/linux/pm_wakeup.h:242 [inline] hub_port_connect drivers/usb/core/hub.c:5585 [inline] hub_port_connect_change drivers/usb/core/hub.c:5725 [inline] port_event drivers/usb/core/hub.c:5889 [inline] hub_event+0x20f4/0x38c0 drivers/usb/core/hub.c:5971 process_one_work+0x830/0x1c00 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x42c/0xc90 kernel/workqueue.c:3560 kthread+0x2ec/0x384 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 irq event stamp: 8351 hardirqs last enabled at (8350): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (8350): [] _raw_spin_unlock_irqrestore+0x80/0xb4 kernel/locking/spinlock.c:221 hardirqs last disabled at (8351): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (8351): [] _raw_spin_lock_irqsave+0x7c/0x80 kernel/locking/spinlock.c:181 softirqs last enabled at (8298): [] softirq_handle_end kernel/softirq.c:491 [inline] softirqs last enabled at (8298): [] handle_softirqs+0xa98/0x1054 kernel/softirq.c:673 softirqs last disabled at (8347): [] __do_softirq+0x14/0x20 kernel/softirq.c:679 ---[ end trace 0000000000000000 ]--- configfs-gadget.g1 gadget.0: Enable IN endpoint FAILED!