Process accounting resumed kworker/dying (51) used greatest stack depth: 8200 bytes left INFO: task syz-executor6:4460 blocked for more than 140 seconds. Not tainted 4.18.0-rc8+ #184 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor6 D24256 4460 4451 0x00000004 Call Trace: context_switch kernel/sched/core.c:2853 [inline] __schedule+0x87c/0x1ec0 kernel/sched/core.c:3501 schedule+0xfb/0x450 kernel/sched/core.c:3545 schedule_preempt_disabled+0x10/0x20 kernel/sched/core.c:3603 __mutex_lock_common kernel/locking/mutex.c:834 [inline] __mutex_lock+0xede/0x1820 kernel/locking/mutex.c:894 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:909 __fdget_pos+0x1bb/0x200 fs/file.c:766 fdget_pos include/linux/file.h:67 [inline] ksys_getdents64+0x1fb/0x450 fs/readdir.c:310 __do_sys_getdents64 fs/readdir.c:333 [inline] __se_sys_getdents64 fs/readdir.c:330 [inline] __x64_sys_getdents64+0x73/0xb0 fs/readdir.c:330 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457089 Code: 08 e8 3b a9 fb ff 48 8b 44 24 20 48 8b 4c 24 18 48 8b 54 24 38 48 8b 7c 24 48 eb 8d 48 8b 6c 24 50 48 83 c4 58 c3 48 89 04 24 <48> 89 5c 24 08 e8 0d a9 fb ff 48 8b 44 24 40 48 8b 4c 24 48 48 8b RSP: 002b:00007fbd6b673c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fbd6b6746d4 RCX: 0000000000457089 RDX: 00000000000000e3 RSI: 0000000020000640 RDI: 0000000000000005 RBP: 00000000009301e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004cba28 R14: 00000000004c34d3 R15: 0000000000000002 Showing all locks held in the system: 1 lock held by khungtaskd/774: #0: 00000000b5cee370 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x428 kernel/locking/lockdep.c:4461 2 locks held by rs:main Q:Reg/4310: #0: 0000000077e9ff97 (&rq->lock){-.-.}, at: idle_balance kernel/sched/fair.c:9830 [inline] #0: 0000000077e9ff97 (&rq->lock){-.-.}, at: pick_next_task_fair+0x1018/0x17a0 kernel/sched/fair.c:7017 #1: 00000000081b9090 (sb_writers#6){.+.+}, at: file_start_write include/linux/fs.h:2738 [inline] #1: 00000000081b9090 (sb_writers#6){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548 1 lock held by rsyslogd/4312: #0: 000000009425953d (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/4402: #0: 00000000ee7705b7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000ad28aa3c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4403: #0: 00000000f5a865cb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000b8d3a424 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4404: #0: 00000000184c8751 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 0000000080a2c238 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4405: #0: 000000006658bb37 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000a0d448c5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4406: #0: 00000000b07d0260 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000e4b1708c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4407: #0: 00000000c61fb7d5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000a8729a67 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4408: #0: 0000000085095f17 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000925fbb3a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by syz-executor6/4361: #0: 00000000a16d1f3a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 #1: 00000000950f7500 (&sb->s_type->i_mutex_key#22){++++}, at: iterate_dir+0xd4/0x5d0 fs/readdir.c:41 1 lock held by syz-executor6/4460: #0: 00000000a16d1f3a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 774 Comm: khungtaskd Not tainted 4.18.0-rc8+ #184 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+0x1c9/0x2b4 lib/dump_stack.c:113 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x151/0x192 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:196 [inline] watchdog+0x9c4/0xf80 kernel/hung_task.c:252 kthread+0x345/0x410 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4310 Comm: rs:main Q:Reg Not tainted 4.18.0-rc8+ #184 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:match_held_lock+0xa8/0x8d0 kernel/locking/lockdep.c:3499 Code: 89 45 d0 31 c0 48 89 f8 48 c1 e8 03 80 3c 10 00 0f 85 19 05 00 00 49 39 75 10 0f 84 77 02 00 00 48 b8 00 00 00 00 00 fc ff df <49> 8d 7d 22 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 RSP: 0018:ffff8801db0073a0 EFLAGS: 00000093 RAX: dffffc0000000000 RBX: 1ffff1003b600e79 RCX: 0000000000000004 RDX: dffffc0000000000 RSI: ffff8801db02c9d8 RDI: ffff8801c0d3cdc8 RBP: ffff8801db007490 R08: ffff88021fff8018 R09: ffff88021fff801b R10: ffffed0043fff001 R11: 0000000000000000 R12: ffff8801c0d3c580 R13: ffff8801c0d3cdb8 R14: ffff8801db007468 R15: 0000000000000000 FS: 00007fb0050c3700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001cce86000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: __lock_is_held+0xb5/0x140 kernel/locking/lockdep.c:3744 lock_is_held_type+0x121/0x210 kernel/locking/lockdep.c:3962 lock_is_held include/linux/lockdep.h:344 [inline] rq_clock kernel/sched/sched.h:972 [inline] sched_info_queued kernel/sched/stats.h:111 [inline] enqueue_task kernel/sched/core.c:748 [inline] activate_task+0x217/0x2e0 kernel/sched/core.c:769 ttwu_activate kernel/sched/core.c:1658 [inline] ttwu_do_activate+0xd5/0x1f0 kernel/sched/core.c:1717 ttwu_queue kernel/sched/core.c:1862 [inline] try_to_wake_up+0x948/0x12a0 kernel/sched/core.c:2075 wake_up_process+0x10/0x20 kernel/sched/core.c:2148 process_timeout+0x31/0x40 kernel/time/timer.c:1730 call_timer_fn+0x242/0x970 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7a6/0xc70 kernel/time/timer.c:1666 run_timer_softirq+0x4c/0x70 kernel/time/timer.c:1692 __do_softirq+0x2e8/0xb17 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x1d4/0x210 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:527 [inline] smp_apic_timer_interrupt+0x186/0x730 arch/x86/kernel/apic/apic.c:1055 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863 RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x1/0x20 kernel/kcov.c:187 Code: fe ff ff 5d c3 0f 1f 40 00 55 0f b7 d6 0f b7 f7 bf 03 00 00 00 48 89 e5 48 8b 4d 08 e8 88 fe ff ff 5d c3 66 0f 1f 44 00 00 55 <89> f2 89 fe bf 05 00 00 00 48 89 e5 48 8b 4d 08 e8 6a fe ff ff 5d RSP: 0018:ffff8801b00dd910 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8801d0ece38c RCX: ffffffff834ac021 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff8801b00ddac0 R08: ffff8801c0d3c580 R09: ffff8801d0fecfd0 R10: ffffed003a1fd9fd R11: ffff8801d0fecfef R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8801d0ece040 R15: ffff8801d0fecfd0 scsi_init_sgtable+0x13e/0x300 drivers/scsi/scsi_lib.c:1080 scsi_init_io+0x13f/0x7a0 drivers/scsi/scsi_lib.c:1108 sd_setup_read_write_cmnd drivers/scsi/sd.c:1024 [inline] sd_init_command+0x4b0/0x41d0 drivers/scsi/sd.c:1274 scsi_setup_fs_cmnd drivers/scsi/scsi_lib.c:1300 [inline] scsi_setup_cmnd+0x25f/0x690 drivers/scsi/scsi_lib.c:1317 scsi_mq_prep_fn drivers/scsi/scsi_lib.c:1992 [inline] scsi_queue_rq+0x12a2/0x1ef0 drivers/scsi/scsi_lib.c:2052 blk_mq_dispatch_rq_list+0xe12/0x24d0 block/blk-mq.c:1141 blk_mq_do_dispatch_sched+0x24c/0x580 block/blk-mq-sched.c:120 blk_mq_sched_dispatch_requests+0x64f/0xa90 block/blk-mq-sched.c:216 __blk_mq_run_hw_queue+0x15e/0x210 block/blk-mq.c:1261 __blk_mq_delay_run_hw_queue+0x488/0x520 block/blk-mq.c:1329 blk_mq_run_hw_queue+0x1cd/0x390 block/blk-mq.c:1366 blk_mq_sched_insert_requests+0x1b4/0x250 block/blk-mq-sched.c:492 blk_mq_flush_plug_list+0xaa5/0x1150 block/blk-mq.c:1616 blk_flush_plug_list+0x1c7/0x9a0 block/blk-core.c:3679 blk_finish_plug+0x58/0xa2 block/blk-core.c:3736 ext4_writepages+0x1abe/0x4080 fs/ext4/inode.c:2914 do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341 __filemap_fdatawrite_range+0x364/0x4a0 mm/filemap.c:445 file_write_and_wait_range+0x98/0x100 mm/filemap.c:753 ext4_sync_file+0x2d6/0x1490 fs/ext4/fsync.c:128 vfs_fsync_range+0x140/0x220 fs/sync.c:197 generic_write_sync include/linux/fs.h:2709 [inline] ext4_file_write_iter+0x6a3/0x1430 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1793 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6c6/0x9f0 fs/read_write.c:487 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb006b2119d Code: d1 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 be fa ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 07 fb ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fb0050c1f90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000400 RCX: 00007fb006b2119d RDX: 0000000000000400 RSI: 0000000001b40a90 RDI: 0000000000000005 RBP: 0000000001b40a90 R08: 0000000001b91fe0 R09: 00007fb00649f3f0 R10: 302032202074634f R11: 0000000000000293 R12: 0000000000000000 R13: 00007fb0050c2410 R14: 0000000001b91fe0 R15: 0000000001b40890