do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fda2c725697 ================================ WARNING: inconsistent lock state 5.19.0-rc6-syzkaller-00115-g4a57a8400075 #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. udevd/4114 [HC0[0]:SC1[1]:HE0:SE0] takes: ffffffff8beb39f8 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffffffff8beb39f8 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area+0x1c/0x130 mm/vmalloc.c:1805 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] alloc_vmap_area+0xa49/0x1f00 mm/vmalloc.c:1586 __get_vm_area_node+0x142/0x3f0 mm/vmalloc.c:2453 __vmalloc_node_range+0x250/0x13e0 mm/vmalloc.c:3125 __vmalloc_node mm/vmalloc.c:3230 [inline] __vmalloc+0x69/0x80 mm/vmalloc.c:3244 pcpu_mem_zalloc mm/percpu.c:516 [inline] pcpu_mem_zalloc+0x51/0xa0 mm/percpu.c:508 pcpu_alloc_chunk mm/percpu.c:1454 [inline] pcpu_create_chunk+0xd7/0x930 mm/percpu-vm.c:338 pcpu_alloc+0x1012/0x13d0 mm/percpu.c:1834 alloc_kmem_cache_cpus.constprop.0+0x29/0xc0 mm/slab.c:1729 do_tune_cpucache+0x37/0x230 mm/slab.c:3844 enable_cpucache+0x3c/0xa0 mm/slab.c:3938 kmem_cache_init_late+0x33/0x66 mm/slab.c:1276 start_kernel+0x2f5/0x48f init/main.c:1058 secondary_startup_64_no_verify+0xce/0xdb irq event stamp: 375143 hardirqs last enabled at (375142): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (375142): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 hardirqs last disabled at (375143): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (375143): [] _raw_spin_lock_irqsave+0x4e/0x50 kernel/locking/spinlock.c:162 softirqs last enabled at (369228): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (369228): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (375139): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (375139): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(vmap_area_lock); lock(vmap_area_lock); *** DEADLOCK *** 6 locks held by udevd/4114: #0: ffffffff8c5bf3e8 (tomoyo_ss){....}-{0:0}, at: tomoyo_check_open_permission+0xe8/0x380 security/tomoyo/file.c:761 #1: ffffc900007a0d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline] #1: ffffc900007a0d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1464 #2: ffff8880225bd230 (&dev->event_lock#2){-.-.}-{2:2}, at: input_event drivers/input/input.c:456 [inline] #2: ffff8880225bd230 (&dev->event_lock#2){-.-.}-{2:2}, at: input_event+0x7b/0xb0 drivers/input/input.c:449 #3: ffffffff8bd845a0 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x710 drivers/input/input.c:884 #4: ffffffff8c7fcb58 (kbd_event_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] #4: ffffffff8c7fcb58 (kbd_event_lock){..-.}-{2:2}, at: kbd_event+0x86/0x1780 drivers/tty/vt/keyboard.c:1537 #5: ffffffff8bd845a0 (rcu_read_lock){....}-{1:2}, at: show_state_filter+0x0/0x300 kernel/sched/core.c:8763 stack backtrace: CPU: 2 PID: 4114 Comm: udevd Not tainted 5.19.0-rc6-syzkaller-00115-g4a57a8400075 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_usage_bug kernel/locking/lockdep.c:3961 [inline] valid_state kernel/locking/lockdep.c:3973 [inline] mark_lock_irq kernel/locking/lockdep.c:4176 [inline] mark_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632 mark_lock kernel/locking/lockdep.c:4596 [inline] mark_usage kernel/locking/lockdep.c:4527 [inline] __lock_acquire+0x11e7/0x5660 kernel/locking/lockdep.c:5007 lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] find_vmap_area+0x1c/0x130 mm/vmalloc.c:1805 check_heap_object mm/usercopy.c:176 [inline] __check_object_size mm/usercopy.c:250 [inline] __check_object_size+0x1f8/0x700 mm/usercopy.c:212 check_object_size include/linux/thread_info.h:199 [inline] __copy_from_user_inatomic include/linux/uaccess.h:62 [inline] copy_from_user_nmi arch/x86/lib/usercopy.c:47 [inline] copy_from_user_nmi+0xcb/0x130 arch/x86/lib/usercopy.c:31 copy_code arch/x86/kernel/dumpstack.c:91 [inline] show_opcodes+0x59/0xb0 arch/x86/kernel/dumpstack.c:121 show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:149 __show_regs+0x1e/0x60 arch/x86/kernel/process_64.c:74 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:292 sched_show_task kernel/sched/core.c:8801 [inline] sched_show_task+0x44c/0x5c0 kernel/sched/core.c:8775 show_state_filter+0x13e/0x300 kernel/sched/core.c:8846 k_spec drivers/tty/vt/keyboard.c:667 [inline] k_spec+0xe1/0x130 drivers/tty/vt/keyboard.c:656 kbd_keycode drivers/tty/vt/keyboard.c:1524 [inline] kbd_event+0xcdd/0x1780 drivers/tty/vt/keyboard.c:1543 input_to_handler+0x3b9/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:156 input_pass_values drivers/input/input.c:426 [inline] input_handle_event+0x67e/0x1440 drivers/input/input.c:426 input_event drivers/input/input.c:457 [inline] input_event+0x8e/0xb0 drivers/input/input.c:449 hidinput_hid_event+0x79d/0x2010 drivers/hid/hid-input.c:1631 hid_process_event+0x491/0x570 drivers/hid/hid-core.c:1527 hid_input_array_field+0x30c/0x660 drivers/hid/hid-core.c:1631 hid_process_report drivers/hid/hid-core.c:1681 [inline] hid_report_raw_event+0xa8a/0x1280 drivers/hid/hid-core.c:1998 hid_input_report+0x360/0x4c0 drivers/hid/hid-core.c:2065 hid_irq_in+0x50e/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1747 dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:finish_task_switch.isra.0+0x2b9/0xbb0 kernel/sched/core.c:5026 Code: 8b 3b 4c 89 f7 48 c7 03 00 00 00 00 ff d2 4d 85 ff 75 bd 4c 89 f7 e8 66 f8 ff ff e8 01 69 2e 00 fb 65 48 8b 1c 25 80 6f 02 00 <48> 8d bb 80 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc9000481f0c0 EFLAGS: 00000202 RAX: 000000000005b961 RBX: ffff888024b3e1c0 RCX: 1ffffffff1b75ae9 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000481f108 R08: 0000000000000001 R09: 0000000000000001 R10: ffffed10059473f0 R11: 0000000000000001 R12: ffff88802ca3acd8 R13: ffff8880127c80c0 R14: ffff88802ca39f80 R15: ffff88802ca3a9b8 context_switch kernel/sched/core.c:5149 [inline] __schedule+0xa08/0x4b50 kernel/sched/core.c:6458 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:6766 irqentry_exit+0x31/0x80 kernel/entry/common.c:428 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:in_task_stack+0x4/0x40 arch/x86/kernel/dumpstack.c:36 Code: 00 00 00 4c 89 ee 48 c7 c7 a0 c8 b9 8b e8 54 8c a7 fa e9 5c ff ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 8b 46 20 <48> 8d 88 00 80 00 00 48 39 f8 77 21 48 39 f9 76 1c 48 89 42 08 b8 RSP: 0018:ffffc9000481f328 EFLAGS: 00000282 RAX: ffffc90004818000 RBX: ffff888024b3e1c0 RCX: ffffc9000481f3f0 RDX: ffffc9000481f3d0 RSI: ffff888024b3e1c0 RDI: ffffc9000481f380 RBP: ffffc9000481f3d0 R08: 0000000000000001 R09: ffffc9000481f3d0 R10: fffff52000903e85 R11: 0000000000000001 R12: ffffc9000481f380 R13: ffffc9000481f3d0 R14: ffffc9000481f408 R15: ffffc9000481f3d0 get_stack_info_noinstr+0x14/0x120 arch/x86/kernel/dumpstack_64.c:173 get_stack_info+0x2d/0x90 arch/x86/kernel/dumpstack_64.c:199 __unwind_start+0x4ae/0x800 arch/x86/kernel/unwind_orc.c:681 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0x5c/0xe0 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] ____kasan_kmalloc mm/kasan/common.c:515 [inline] ____kasan_kmalloc mm/kasan/common.c:474 [inline] __kasan_kmalloc+0xa6/0xd0 mm/kasan/common.c:524 kasan_kmalloc include/linux/kasan.h:234 [inline] __do_kmalloc mm/slab.c:3696 [inline] __kmalloc+0x209/0x4d0 mm/slab.c:3705 kmalloc include/linux/slab.h:605 [inline] tomoyo_realpath_from_path+0xc3/0x620 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x272/0x380 security/tomoyo/file.c:771 tomoyo_file_open security/tomoyo/tomoyo.c:320 [inline] tomoyo_file_open+0x9d/0xc0 security/tomoyo/tomoyo.c:315 security_file_open+0x45/0xb0 security/security.c:1645 do_dentry_open+0x349/0x11f0 fs/open.c:835 do_open fs/namei.c:3520 [inline] path_openat+0x1c71/0x2910 fs/namei.c:3653 do_filp_open+0x1aa/0x400 fs/namei.c:3680 do_sys_openat2+0x16d/0x4c0 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_openat fs/open.c:1310 [inline] __se_sys_openat fs/open.c:1305 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1305 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fda2c725697 Code: 25 00 00 41 00 3d 00 00 41 00 74 37 64 8b 04 25 18 00 00 00 85 c0 75 5b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 85 00 00 00 48 83 c4 68 5d 41 5c c3 0f 1f RSP: 002b:00007ffc969f4f30 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000563d64c17830 RCX: 00007fda2c725697 RDX: 0000000000080000 RSI: 00007ffc969f5048 RDI: 00000000ffffff9c RBP: 00007ffc969f5048 R08: 0000563d62eb2e73 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 0000563d64c17920 R14: 00007ffc969f5048 R15: 0000563d64b3a540 Code: 25 00 00 41 00 3d 00 00 41 00 74 37 64 8b 04 25 18 00 00 00 85 c0 75 5b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 85 00 00 00 48 83 c4 68 5d 41 5c c3 0f 1f RSP: 002b:00007ffc969f4f30 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000563d64c17830 RCX: 00007fda2c725697 RDX: 0000000000080000 RSI: 00007ffc969f5048 RDI: 00000000ffffff9c RBP: 00007ffc969f5048 R08: 0000563d62eb2e73 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 0000563d64c17920 R14: 00007ffc969f5048 R15: 0000563d64b3a540 task:udevd state:D stack:27096 pid: 4199 ppid: 3136 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 rwsem_down_read_slowpath+0x5b9/0xb00 kernel/locking/rwsem.c:1077 __down_read_common kernel/locking/rwsem.c:1242 [inline] __down_read kernel/locking/rwsem.c:1251 [inline] down_read+0xe2/0x440 kernel/locking/rwsem.c:1491 kernfs_iop_permission+0xc1/0x130 fs/kernfs/inode.c:290 do_inode_permission fs/namei.c:458 [inline] inode_permission.part.0+0x3d6/0x670 fs/namei.c:525 inode_permission fs/namei.c:506 [inline] may_lookup fs/namei.c:1731 [inline] link_path_walk.part.0+0x92f/0xf70 fs/namei.c:2283 link_path_walk fs/namei.c:2266 [inline] path_openat+0x260/0x2910 fs/namei.c:3649 do_filp_open+0x1aa/0x400 fs/namei.c:3680 do_sys_openat2+0x16d/0x4c0 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_openat fs/open.c:1310 [inline] __se_sys_openat fs/open.c:1305 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1305 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fda2c725697 RSP: 002b:00007ffc969f78f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000563d64b2d050 RCX: 00007fda2c725697 RDX: 0000000000080000 RSI: 00007ffc969f7a28 RDI: 00000000ffffff9c RBP: 00007ffc969f7a28 R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 0000563d64b2d050 R14: 0000000000000001 R15: 0000563d64af62c0 task:kworker/2:5 state:I stack:29792 pid: 4218 ppid: 2 flags:0x00004000 Workqueue: 0x0 (events) Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 worker_thread+0x15c/0x1080 kernel/workqueue.c:2457 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 task:udevd state:S stack:27824 pid: 4235 ppid: 3136 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 schedule_hrtimeout_range_clock+0x343/0x390 kernel/time/hrtimer.c:2296 ep_poll fs/eventpoll.c:1856 [inline] do_epoll_wait+0x1290/0x1930 fs/eventpoll.c:2234 __do_sys_epoll_wait fs/eventpoll.c:2246 [inline] __se_sys_epoll_wait fs/eventpoll.c:2241 [inline] __x64_sys_epoll_wait+0x158/0x270 fs/eventpoll.c:2241 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fda2c733e46 RSP: 002b:00007ffc969fbf28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fda2c733e46 RDX: 0000000000000004 RSI: 00007ffc969fbf68 RDI: 0000000000000004 RBP: 0000563d64b05a60 R08: 0000000000000007 R09: 0000563d64b27b10 R10: 00000000ffffffff R11: 0000000000000246 R12: 0000563d64b82950 R13: 00007ffc969fbf68 R14: 00000000ffffffff R15: 0000563d64af62c0 task:kworker/1:5 state:I stack:30088 pid: 4302 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 worker_thread+0x15c/0x1080 kernel/workqueue.c:2457 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 task:syz-executor415 state:S stack:28528 pid: 4402 ppid: 3734 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 freezable_schedule include/linux/freezer.h:172 [inline] futex_wait_queue+0x144/0x3b0 kernel/futex/waitwake.c:355 futex_wait+0x2c9/0x670 kernel/futex/waitwake.c:656 do_futex+0x1af/0x300 kernel/futex/syscalls.c:106 __do_sys_futex kernel/futex/syscalls.c:183 [inline] __se_sys_futex kernel/futex/syscalls.c:164 [inline] __x64_sys_futex+0x1b0/0x4a0 kernel/futex/syscalls.c:164 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5cb61040c9 RSP: 002b:00007ffdf71a1f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f5cb61040c9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f5cb61884ac RBP: 000000000000015e R08: 00007ffdf71e3080 R09: 0000000000000000 R10: 00007ffdf71a1fa0 R11: 0000000000000246 R12: 00000000000d48d3 R13: 00007f5cb61884ac R14: 00007ffdf71a1fa0 R15: 00000000000003e8 task:syz-executor415 state:S stack:28528 pid: 4403 ppid: 3734 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x378/0x530 kernel/sched/completion.c:106 wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion_interruptible+0x1b/0x30 kernel/sched/completion.c:206 raw_process_ep_io+0x5ec/0xb20 drivers/usb/gadget/legacy/raw_gadget.c:1071 raw_ioctl_ep_write drivers/usb/gadget/legacy/raw_gadget.c:1099 [inline] raw_ioctl+0x955/0x2780 drivers/usb/gadget/legacy/raw_gadget.c:1271 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5cb6103fa7 RSP: 002b:00007f5cb60af2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5cb61884a8 RCX: 00007f5cb6103fa7 RDX: 00007f5cb60af300 RSI: 0000000040085507 RDI: 0000000000000003 RBP: 00007f5cb61884a0 R08: 0000000000000003 R09: 0000000000000000 R10: 00007f5cb61885c0 R11: 0000000000000246 R12: 00007f5cb61884ac R13: 00007ffdf71a1eef R14: 00007f5cb60b0400 R15: 0000000000022000 task:syz-executor415 state:S stack:28688 pid: 4408 ppid: 3739 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 freezable_schedule include/linux/freezer.h:172 [inline] futex_wait_queue+0x144/0x3b0 kernel/futex/waitwake.c:355 futex_wait+0x2c9/0x670 kernel/futex/waitwake.c:656 do_futex+0x1af/0x300 kernel/futex/syscalls.c:106 __do_sys_futex kernel/futex/syscalls.c:183 [inline] __se_sys_futex kernel/futex/syscalls.c:164 [inline] __x64_sys_futex+0x1b0/0x4a0 kernel/futex/syscalls.c:164 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5cb61040c9 RSP: 002b:00007ffdf71a1f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5cb61040c9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f5cb61884ac RBP: 0000000000000bea R08: 00007ffdf71e3080 R09: 0000000000000000 R10: 00007ffdf71a1fa0 R11: 0000000000000246 R12: 00000000000d48c5 R13: 00007f5cb61884ac R14: 00007ffdf71a1fa0 R15: 00000000000003e8 task:syz-executor415 state:S stack:28576 pid: 4409 ppid: 3739 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 ___down_common kernel/locking/semaphore.c:225 [inline] __down_common+0x363/0x770 kernel/locking/semaphore.c:246 down_interruptible+0x7b/0xa0 kernel/locking/semaphore.c:87 raw_event_queue_fetch drivers/usb/gadget/legacy/raw_gadget.c:99 [inline] raw_ioctl_event_fetch drivers/usb/gadget/legacy/raw_gadget.c:588 [inline] raw_ioctl+0x1010/0x2780 drivers/usb/gadget/legacy/raw_gadget.c:1256 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5cb6103fa7 RSP: 002b:00007f5cb60ae278 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5cb60af2d0 RCX: 00007f5cb6103fa7 RDX: 00007f5cb60af2d0 RSI: 0000000080085502 RDI: 0000000000000003 RBP: 0000000800000000 R08: 000000000000ffff R09: 000000000000000b R10: 00007f5cb60ae300 R11: 0000000000000246 R12: 00007f5cb60ae2a0 R13: 0000000000000000 R14: 00007f5cb61885c0 R15: 0000000000000003 task:syz-executor415 state:S stack:28528 pid: 4425 ppid: 3736 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 freezable_schedule include/linux/freezer.h:172 [inline] futex_wait_queue+0x144/0x3b0 kernel/futex/waitwake.c:355 futex_wait+0x2c9/0x670 kernel/futex/waitwake.c:656 do_futex+0x1af/0x300 kernel/futex/syscalls.c:106 __do_sys_futex kernel/futex/syscalls.c:183 [inline] __se_sys_futex kernel/futex/syscalls.c:164 [inline] __x64_sys_futex+0x1b0/0x4a0 kernel/futex/syscalls.c:164 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5cb61040c9 RSP: 002b:00007ffdf71a1f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5cb61040c9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f5cb61884ac RBP: 0000000000000bea R08: 00007ffdf71e3080 R09: 0000000000000000 R10: 00007ffdf71a1fa0 R11: 0000000000000246 R12: 00000000000d9a85 R13: 00007f5cb61884ac R14: 00007ffdf71a1fa0 R15: 00000000000003e8 task:syz-executor415 state:S stack:28528 pid: 4426 ppid: 3736 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 ___down_common kernel/locking/semaphore.c:225 [inline] __down_common+0x363/0x770 kernel/locking/semaphore.c:246 down_interruptible+0x7b/0xa0 kernel/locking/semaphore.c:87 raw_event_queue_fetch drivers/usb/gadget/legacy/raw_gadget.c:99 [inline] raw_ioctl_event_fetch drivers/usb/gadget/legacy/raw_gadget.c:588 [inline] raw_ioctl+0x1010/0x2780 drivers/usb/gadget/legacy/raw_gadget.c:1256 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5cb6103fa7 RSP: 002b:00007f5cb60ae278 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5cb60af2d0 RCX: 00007f5cb6103fa7 RDX: 00007f5cb60af2d0 RSI: 0000000080085502 RDI: 0000000000000003 RBP: 0000000800000000 R08: 000000000000ffff R09: 000000000000000b R10: 00007f5cb60ae300 R11: 0000000000000246 R12: 00007f5cb60ae2a0 R13: 0000000000000000 R14: 00007f5cb61885c0 R15: 0000000000000003 INFO: lockdep is turned off. keytouch 0003:0926:3333.00F3: can't resubmit intr, dummy_hcd.2-1/input0, status -19 keytouch 0003:0926:3333.00F3: usb_submit_urb(ctrl) failed: -19 ---------------- Code disassembly (best guess): 0: 8b 3b mov (%rbx),%edi 2: 4c 89 f7 mov %r14,%rdi 5: 48 c7 03 00 00 00 00 movq $0x0,(%rbx) c: ff d2 callq *%rdx e: 4d 85 ff test %r15,%r15 11: 75 bd jne 0xffffffd0 13: 4c 89 f7 mov %r14,%rdi 16: e8 66 f8 ff ff callq 0xfffff881 1b: e8 01 69 2e 00 callq 0x2e6921 20: fb sti 21: 65 48 8b 1c 25 80 6f mov %gs:0x26f80,%rbx 28: 02 00 * 2a: 48 8d bb 80 15 00 00 lea 0x1580(%rbx),%rdi <-- trapping instruction 31: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 38: fc ff df 3b: 48 89 fa mov %rdi,%rdx 3e: 48 rex.W 3f: c1 .byte 0xc1