------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: drivers/usb/gadget/udc/core.c:124 at usb_ep_enable+0x3e6/0x490 drivers/usb/gadget/udc/core.c:124, CPU#3: udevd/5189
Modules linked in:
CPU: 3 UID: 0 PID: 5189 Comm: udevd Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:usb_ep_enable+0x3f8/0x490 drivers/usb/gadget/udc/core.c:124
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 93 00 00 00 48 8d 3d ba 1d 84 0a 48 8b 4b 08 40 0f b6 d5 4d 89 e0 48 c7 c6 00 b7 fb 8c <67> 48 0f b9 3a bd ea ff ff ff e9 8e fd ff ff 49 c7 c4 a0 a9 fb 8c
RSP: 0018:ffffc90000708a10 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff88802d71c0e0 RCX: ffffffff8cfbee00
RDX: 0000000000000081 RSI: ffffffff8cfbb700 RDI: ffffffff927810a0
RBP: 0000000000000081 R08: ffffffff8cfba9e0 R09: 0000000000000000
R10: ffffffff926ab25f R11: 0000000000000003 R12: ffffffff8cfba9e0
R13: 0000000000000000 R14: ffff88802d71c0e0 R15: ffff88805950c8a0
FS: 00007f4825004880(0000) GS:ffff8880d4775000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556943526e08 CR3: 00000000284be000 CR4: 0000000000352ef0
Call Trace:
hidg_set_alt+0x190/0xa10 drivers/usb/gadget/function/f_hid.c:1042
set_config drivers/usb/gadget/composite.c:1018 [inline]
composite_setup+0x2ccf/0x9290 drivers/usb/gadget/composite.c:1901
configfs_composite_setup+0xfb/0x130 drivers/usb/gadget/configfs.c:1877
dummy_timer+0x20a0/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:1983
__run_hrtimer kernel/time/hrtimer.c:2079 [inline]
__hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136
hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153
handle_softirqs+0x216/0xa20 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0x178/0x220 kernel/softirq.c:786
irq_exit_rcu+0x9/0x30 kernel/softirq.c:809
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:lock_is_held_type+0xf5/0x140 kernel/locking/lockdep.c:6021
Code: ff ff ff ff 65 0f c1 15 41 b8 cb 09 83 fa 01 8b 44 24 04 75 2d 9c 5a 80 e6 02 75 47 41 f7 c5 00 02 00 00 74 01 fb 48 83 c4 08 <5b> 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc e9 57 57 03 00 31 c0
RSP: 0018:ffffc900034e77c0 EFLAGS: 00000296
RAX: 0000000000000001 RBX: ffffffff8ffeafe0 RCX: 0000000000000001
RDX: 0000000000000046 RSI: ffffffff8e602977 RDI: ffffffff8c835980
RBP: ffff8880319f4b00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000200 R11: 0000000000000001 R12: 00000000ffffffff
R13: 0000000000000246 R14: ffff8880319f56b0 R15: 0000000000000000
lock_is_held include/linux/lockdep.h:249 [inline]
rcu_read_lock_any_held kernel/rcu/update.c:386 [inline]
rcu_read_lock_any_held+0x40/0x90 kernel/rcu/update.c:380
__rhashtable_lookup include/linux/rhashtable.h:632 [inline]
rhashtable_lookup include/linux/rhashtable.h:677 [inline]
rhashtable_lookup_fast include/linux/rhashtable.h:715 [inline]
__netlink_lookup+0x49d/0x950 net/netlink/af_netlink.c:496
netlink_lookup+0x78/0x270 net/netlink/af_netlink.c:516
netlink_getsockbyportid net/netlink/af_netlink.c:1158 [inline]
netlink_unicast+0x30d/0x950 net/netlink/af_netlink.c:1355
netlink_sendmsg+0x9ac/0x10c0 net/netlink/af_netlink.c:1920
sock_sendmsg_nosec net/socket.c:800 [inline]
__sock_sendmsg net/socket.c:818 [inline]
____sys_sendmsg+0xa99/0xc30 net/socket.c:2715
___sys_sendmsg+0x190/0x1e0 net/socket.c:2769
__sys_sendmsg+0x160/0x210 net/socket.c:2801
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f48248a7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffd610acee0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f4825004880 RCX: 00007f48248a7407
RDX: 0000000000000000 RSI: 00007ffd610acf40 RDI: 0000000000000004
RBP: 00005644560814d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000000e4
R13: 0000564455e41d80 R14: 0000000000000000 R15: 0000000000000000
----------------
Code disassembly (best guess):
0: 48 89 fa mov %rdi,%rdx
3: 48 c1 ea 03 shr $0x3,%rdx
7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
b: 0f 85 93 00 00 00 jne 0xa4
11: 48 8d 3d ba 1d 84 0a lea 0xa841dba(%rip),%rdi # 0xa841dd2
18: 48 8b 4b 08 mov 0x8(%rbx),%rcx
1c: 40 0f b6 d5 movzbl %bpl,%edx
20: 4d 89 e0 mov %r12,%r8
23: 48 c7 c6 00 b7 fb 8c mov $0xffffffff8cfbb700,%rsi
* 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction
2f: bd ea ff ff ff mov $0xffffffea,%ebp
34: e9 8e fd ff ff jmp 0xfffffdc7
39: 49 c7 c4 a0 a9 fb 8c mov $0xffffffff8cfba9a0,%r12