INFO: task kworker/u4:4:974 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:4 state:D stack:24880 pid: 974 ppid: 2 flags:0x00004000 Workqueue: nbd-del nbd_dev_remove_work Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 del_gendisk+0x598/0x860 block/genhd.c:623 nbd_dev_remove+0x3c/0xf0 drivers/block/nbd.c:252 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 2 locks held by kworker/u4:4/974: #0: ffff88801a5d6138 ((wq_completion)nbd-del){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88801a5d6138 ((wq_completion)nbd-del){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88801a5d6138 ((wq_completion)nbd-del){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff88801a5d6138 ((wq_completion)nbd-del){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff88801a5d6138 ((wq_completion)nbd-del){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff88801a5d6138 ((wq_completion)nbd-del){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc900048c7db0 ((work_completion)(&nbd->remove_work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 1 lock held by in:imklog/6426: #0: ffff88807e28e0f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by kworker/1:5/8052: #0: ffff888010c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888010c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888010c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888010c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc90017027db0 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 2 locks held by kworker/0:5/8203: #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc900175f7db0 ((work_completion)(&net->xfrm.state_hash_work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 3 locks held by kworker/0:15/8848: #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc9000546fdb0 ((work_completion)(&net->xfrm.state_hash_work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 #2: ffffffff8bb8cde8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #2: ffffffff8bb8cde8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2d5/0x620 kernel/rcu/tree_exp.h:836 2 locks held by syz-executor.2/25634: #0: ffffffff8bbf7f28 (event_mutex){+.+.}-{3:3}, at: perf_trace_destroy+0x23/0xf0 kernel/trace/trace_event_perf.c:241 #1: ffffffff8bb8cde8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #1: ffffffff8bb8cde8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4fa/0x620 kernel/rcu/tree_exp.h:836 1 lock held by syz-executor.1/25635: 1 lock held by syz-executor.4/25636: 2 locks held by syz-executor.3/25647: 1 lock held by syz-executor.5/25684: #0: ffff88807b21cb18 (&net->xfrm.xfrm_cfg_mutex){+.+.}-{3:3}, at: pfkey_sendmsg+0x42c/0x820 net/key/af_key.c:3675 1 lock held by syz-executor.5/25686: #0: ffff88807d820128 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline] #0: ffff88807d820128 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x9d6/0x11c0 arch/x86/mm/fault.c:1348 3 locks held by syz-executor.5/25691: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: perf_event_context_sched_out kernel/events/core.c:3418 [inline] #1: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: __perf_event_task_sched_out+0x54e/0x1cd0 kernel/events/core.c:3597 #2: ffff888077689020 (&ctx->lock){-.-.}-{2:2}, at: perf_event_context_sched_out kernel/events/core.c:3443 [inline] #2: ffff888077689020 (&ctx->lock){-.-.}-{2:2}, at: __perf_event_task_sched_out+0x985/0x1cd0 kernel/events/core.c:3597 2 locks held by syz-executor.0/25693: 2 locks held by syz-executor.4/25707: #0: ffff8880b9d39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: perf_event_context_sched_out kernel/events/core.c:3418 [inline] #1: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: __perf_event_task_sched_out+0x54e/0x1cd0 kernel/events/core.c:3597 1 lock held by syz-executor.4/25708: #0: ffff88807b21b0d8 (&net->xfrm.xfrm_cfg_mutex){+.+.}-{3:3}, at: pfkey_sendmsg+0x42c/0x820 net/key/af_key.c:3675 1 lock held by syz-executor.4/25710: 1 lock held by syz-executor.1/25716: #0: ffff888079811d28 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline] #0: ffff888079811d28 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x9d6/0x11c0 arch/x86/mm/fault.c:1348 1 lock held by syz-executor.1/25720: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 25681 Comm: syz-executor.0 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x0/0x70 kernel/kcov.c:286 Code: b7 c9 48 83 c2 01 48 c7 44 30 e0 02 00 00 00 48 89 7c 30 e8 48 89 4c 30 f0 4c 89 54 d8 20 48 89 10 5b c3 0f 1f 80 00 00 00 00 <41> 89 f8 bf 03 00 00 00 4c 8b 14 24 89 f1 65 48 8b 34 25 40 70 02 RSP: 0018:ffffc90000dc0b60 EFLAGS: 00000046 RAX: 0000000000000001 RBX: ffff8880413247e8 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff81674eed R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880b9d2a480 R14: ffff8880b9d2a400 R15: 0000000000000001 FS: 0000555556a94400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2d00004240 CR3: 0000000038485000 CR4: 0000000000350ee0 Call Trace: trace_hrtimer_expire_exit include/trace/events/timer.h:279 [inline] __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0xa3a/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x40/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:blk_update_request+0x9/0x1400 block/blk-mq.c:712 Code: 7e 15 8b ab 40 08 00 00 eb 8a 4c 89 ef e8 cf 36 f7 fd e9 61 ff ff ff 4c 89 ef e8 c2 36 f7 fd eb e1 41 57 49 89 ff 41 56 41 55 <41> 89 d5 41 54 55 53 89 f3 48 83 ec 50 44 0f b6 e3 40 88 34 24 e8 RSP: 0018:ffffc90000dc0de8 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff88801ae40000 RCX: 0000000000000100 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801ae49000 RBP: ffff88801ae49000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff849dc050 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88801ae24000 R15: ffff88801ae49000 scsi_end_request+0x7a/0x980 drivers/scsi/scsi_lib.c:543 scsi_io_completion+0x24f/0x1650 drivers/scsi/scsi_lib.c:939 scsi_complete+0x129/0x3b0 drivers/scsi/scsi_lib.c:1441 blk_complete_reqs+0xad/0xe0 block/blk-mq.c:891 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 common_interrupt+0xa9/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:629 RIP: 0010:finish_task_switch.isra.0+0x323/0xb80 kernel/sched/core.c:4852 Code: 33 45 01 08 85 c0 75 02 0f 0b 48 85 db 0f 85 25 01 00 00 4c 89 f7 e8 fc f7 ff ff e8 a7 44 2d 00 fb 65 48 8b 1c 25 40 70 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:ffffc90005f67d88 EFLAGS: 00000202 RAX: 000000000000d079 RBX: ffff88801ac00000 RCX: 1ffffffff1b228e9 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90005f67dd0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817e2bc8 R11: 0000000000000000 R12: ffff8880b9d3a7d8 R13: ffff888023270000 R14: ffff8880b9d39a80 R15: ffff8880b9d3a4b8 context_switch kernel/sched/core.c:4975 [inline] __schedule+0xaa2/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 exit_to_user_mode_loop kernel/entry/common.c:163 [inline] exit_to_user_mode_prepare+0x14a/0x290 kernel/entry/common.c:207 irqentry_exit_to_user_mode+0x5/0x40 kernel/entry/common.c:313 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0033:0x7fa26c3339da Code: 14 0f 1f 80 00 00 00 00 48 8b 50 f8 48 83 e8 08 48 39 ca 77 f3 48 39 c3 73 3e 48 89 13 48 8b 50 f8 48 89 38 49 8b 0e 48 8b 3e <48> 83 c3 08 48 83 c6 08 eb bc 48 39 d1 72 9e 48 39 d0 73 47 49 89 RSP: 002b:00007ffc43b2db70 EFLAGS: 00000283 RAX: 00007fa26bf138f8 RBX: 00007fa26bf12190 RCX: ffffffff8167eb55 RDX: ffffffff8167ebdf RSI: 00007fa26bf12198 RDI: ffffffff81674423 RBP: 00007fa26bf10ed0 R08: 00007fa26bf146c8 R09: 0000001b2d635724 R10: 0000000000000823 R11: 000000003fe26827 R12: 00007fa26bf10ec8 R13: 00007fa26bf12190 R14: 00007fa26bf10ec0 R15: 0000000000000019 ---------------- Code disassembly (best guess): 0: b7 c9 mov $0xc9,%bh 2: 48 83 c2 01 add $0x1,%rdx 6: 48 c7 44 30 e0 02 00 movq $0x2,-0x20(%rax,%rsi,1) d: 00 00 f: 48 89 7c 30 e8 mov %rdi,-0x18(%rax,%rsi,1) 14: 48 89 4c 30 f0 mov %rcx,-0x10(%rax,%rsi,1) 19: 4c 89 54 d8 20 mov %r10,0x20(%rax,%rbx,8) 1e: 48 89 10 mov %rdx,(%rax) 21: 5b pop %rbx 22: c3 retq 23: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) * 2a: 41 89 f8 mov %edi,%r8d <-- trapping instruction 2d: bf 03 00 00 00 mov $0x3,%edi 32: 4c 8b 14 24 mov (%rsp),%r10 36: 89 f1 mov %esi,%ecx 38: 65 gs 39: 48 rex.W 3a: 8b .byte 0x8b 3b: 34 25 xor $0x25,%al 3d: 40 70 02 rex jo 0x42