input: syz1 as /devices/virtual/input/input4596 BTRFS error (device loop5): superblock checksum mismatch BTRFS error (device loop5): open_ctree failed INFO: task kworker/0:1:16652 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/0:1 D27680 16652 2 0x80000000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 usb_kill_urb.part.0+0x197/0x220 drivers/usb/core/urb.c:697 usb_kill_urb+0x7c/0x90 drivers/usb/core/urb.c:692 usb_start_wait_urb+0x252/0x4c0 drivers/usb/core/message.c:63 usb_internal_control_msg drivers/usb/core/message.c:101 [inline] usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:152 usb_get_descriptor+0xc5/0x1b0 drivers/usb/core/message.c:654 usb_get_device_descriptor+0x81/0xf0 drivers/usb/core/message.c:926 hub_port_init+0x74b/0x3120 drivers/usb/core/hub.c:4799 hub_port_connect drivers/usb/core/hub.c:5070 [inline] hub_port_connect_change drivers/usb/core/hub.c:5253 [inline] port_event drivers/usb/core/hub.c:5361 [inline] hub_event+0x1ccd/0x44a0 drivers/usb/core/hub.c:5441 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 0000000033166e61 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by systemd-journal/4688: #0: 000000008d0f04d5 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000008d0f04d5 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 1 lock held by in:imklog/7813: input: syz1 as /devices/virtual/input/input4597 #0: 0000000048e5155c (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 BTRFS error (device loop5): superblock checksum mismatch 5 locks held by kworker/0:1/16652: BTRFS error (device loop5): open_ctree failed #0: 00000000886d334a ((wq_completion)"usb_hub_wq"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000b27c3da7 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 00000000e308daa8 (&dev->mutex){....}, at: device_lock include/linux/device.h:1174 [inline] #2: 00000000e308daa8 (&dev->mutex){....}, at: hub_event+0x11e/0x44a0 drivers/usb/core/hub.c:5387 #3: 00000000118cfffa (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:2983 [inline] #3: 00000000118cfffa (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5069 [inline] #3: 00000000118cfffa (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5253 [inline] #3: 00000000118cfffa (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5361 [inline] #3: 00000000118cfffa (&port_dev->status_lock){+.+.}, at: hub_event+0x1cb8/0x44a0 drivers/usb/core/hub.c:5441 #4: 00000000d79ae9e3 (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b9/0x3120 drivers/usb/core/hub.c:4578 1 lock held by syz-executor.1/10163: #0: 0000000001ce90ad (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: 0000000001ce90ad (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667 2 locks held by syz-executor.3/10150: #0: 00000000ff0dcc19 (input_mutex){+.+.}, at: __input_unregister_device+0x160/0x450 drivers/input/input.c:2027 #1: 0000000001ce90ad (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #1: 0000000001ce90ad (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4688 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:link_path_walk.part.0+0x484/0x1230 fs/namei.c:2120 Code: ef 4c 89 fa 83 e2 07 41 89 46 44 4c 89 f8 48 c1 e8 03 0f b6 04 30 38 d0 7f 08 84 c0 0f 85 8c 0b 00 00 41 0f b6 1f 31 ff 89 de 57 41 bc ff 84 db 0f 85 03 04 00 00 e8 1a 40 bc ff 49 8d 7e 48 RSP: 0018:ffff8880a1127ae0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 000000000000002f RCX: ffffffff81a6447e RDX: 0000000000000004 RSI: 000000000000002f RDI: 0000000000000000 RBP: 000000073afc7c01 R08: ffffffff8cd22848 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880a1127d3c R13: 0000000000000007 R14: ffff8880a1127cf8 R15: ffff8880b2ea23ec FS: 00007fe168d9f8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe164cd7000 CR3: 00000000a1710000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: link_path_walk fs/namei.c:2270 [inline] path_lookupat+0xe4/0x8d0 fs/namei.c:2318 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path_at include/linux/namei.h:57 [inline] do_faccessat+0x248/0x7a0 fs/open.c:397 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fe16805a9c7 Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007fffe03cb058 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00007fffe03ce080 RCX: 00007fe16805a9c7 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000055d9e4d379a3 RBP: 00007fffe03cb1a0 R08: 000055d9e4d2d3e5 R09: 0000000000000018 R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 000055d9e5f318a0 R15: 00007fffe03cb690 ---------------- Code disassembly (best guess): 0: ef out %eax,(%dx) 1: 4c 89 fa mov %r15,%rdx 4: 83 e2 07 and $0x7,%edx 7: 41 89 46 44 mov %eax,0x44(%r14) b: 4c 89 f8 mov %r15,%rax e: 48 c1 e8 03 shr $0x3,%rax 12: 0f b6 04 30 movzbl (%rax,%rsi,1),%eax 16: 38 d0 cmp %dl,%al 18: 7f 08 jg 0x22 1a: 84 c0 test %al,%al 1c: 0f 85 8c 0b 00 00 jne 0xbae 22: 41 0f b6 1f movzbl (%r15),%ebx 26: 31 ff xor %edi,%edi 28: 89 de mov %ebx,%esi * 2a: e8 57 41 bc ff callq 0xffbc4186 <-- trapping instruction 2f: 84 db test %bl,%bl 31: 0f 85 03 04 00 00 jne 0x43a 37: e8 1a 40 bc ff callq 0xffbc4056 3c: 49 8d 7e 48 lea 0x48(%r14),%rdi