kworker/dying (79) used greatest stack depth: 8200 bytes left INFO: task syz-executor4:26112 blocked for more than 140 seconds. Not tainted 4.18.0-rc8+ #181 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor4 D24376 26112 4407 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_write+0x7f/0x260 fs/read_write.c:593 __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:0x456d89 Code: 08 00 01 48 8b 3d 87 08 00 01 49 89 c8 48 29 d9 48 c1 e9 0d 48 39 f9 73 2e 48 8b 0c ce 48 85 c9 74 09 48 8b 59 18 49 39 d8 73 <05> 4c 89 c1 eb 90 48 8b 99 80 00 00 00 49 39 d8 73 ef 0f b6 49 64 RSP: 002b:00007fb341c71c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb341c726d4 RCX: 0000000000456d89 RDX: 0000000000000008 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 0000000000930280 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d6910 R14: 00000000004c9ea4 R15: 0000000000000003 Showing all locks held in the system: 1 lock held by khungtaskd/773: #0: 000000004dd24d59 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x428 kernel/locking/lockdep.c:4461 2 locks held by rs:main Q:Reg/4264: #0: 00000000060b53e4 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 #1: 00000000e2514c57 (sb_writers#6){.+.+}, at: file_start_write include/linux/fs.h:2738 [inline] #1: 00000000e2514c57 (sb_writers#6){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548 1 lock held by rsyslogd/4266: #0: 0000000003f637c3 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/4356: #0: 0000000005345f40 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 0000000060c62106 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4357: #0: 000000001c78e1eb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000d1325708 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4358: #0: 000000006a643e10 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000005716d488 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4359: #0: 00000000aeda2a6a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000b3ddc2d6 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4360: #0: 00000000705ed2b5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000ef565f90 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4361: #0: 00000000e90b98e7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000003cff3ea0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4362: #0: 00000000bba04d3b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 0000000074cf421a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by syz-executor4/26055: #0: 00000000d0f202e5 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 #1: 000000008fabba00 (sb_writers#19){.+.+}, at: file_start_write include/linux/fs.h:2738 [inline] #1: 000000008fabba00 (sb_writers#19){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548 1 lock held by syz-executor4/26111: #0: 000000008fabba00 (sb_writers#19){.+.+}, at: sb_start_write include/linux/fs.h:1554 [inline] #0: 000000008fabba00 (sb_writers#19){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:386 1 lock held by syz-executor4/26112: #0: 00000000d0f202e5 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 773 Comm: khungtaskd Not tainted 4.18.0-rc8+ #181 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 0 to CPUs 1: NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54