INFO: task syz-executor1:27179 blocked for more than 140 seconds. Not tainted 4.19.0+ #84 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor1 D23816 27179 5766 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x8cf/0x21d0 kernel/sched/core.c:3474 schedule+0xfe/0x460 kernel/sched/core.c:3518 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write_nested+0xa9/0x130 kernel/locking/rwsem.c:195 inode_lock_nested include/linux/fs.h:773 [inline] lock_rename+0x236/0x290 fs/namei.c:2862 do_renameat2+0x696/0x1180 fs/namei.c:4577 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x5e/0x80 fs/namei.c:4671 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: Bad RIP value. RSP: 002b:00007fda9b10bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000457569 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000040 RBP: 000000000072c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fda9b10c6d4 R13: 00000000004c3281 R14: 00000000004d4e78 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/982: #0: 000000006fb0fd9b (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379 1 lock held by rsyslogd/5593: #0: 00000000b58e6834 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/5715: #0: 000000003c4c54dd (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000cb64d679 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5716: #0: 00000000fd4a072c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 0000000097742cbd (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5717: #0: 000000003eab6645 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000f5feae26 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5718: #0: 0000000038044ce7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000000e5c36a6 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5719: #0: 000000007f389c4d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000583a69a5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5720: #0: 000000008c7f9db3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000a95a7f97 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/5721: #0: 0000000023bf72fd (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000f8bc966f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by syz-executor1/27130: #0: 00000000e1b02ce9 (sb_writers#21){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline] #0: 00000000e1b02ce9 (sb_writers#21){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360 #1: 000000002ed31b92 (&sb->s_type->i_mutex_key#26/1){+.+.}, at: inode_lock_nested include/linux/fs.h:773 [inline] #1: 000000002ed31b92 (&sb->s_type->i_mutex_key#26/1){+.+.}, at: lock_rename+0x236/0x290 fs/namei.c:2862 2 locks held by syz-executor1/27179: #0: 00000000e1b02ce9 (sb_writers#21){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline] #0: 00000000e1b02ce9 (sb_writers#21){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360 #1: 000000002ed31b92 (&sb->s_type->i_mutex_key#26/1){+.+.}, at: inode_lock_nested include/linux/fs.h:773 [inline] #1: 000000002ed31b92 (&sb->s_type->i_mutex_key#26/1){+.+.}, at: lock_rename+0x236/0x290 fs/namei.c:2862 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 982 Comm: khungtaskd Not tainted 4.19.0+ #84 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+0x244/0x39d lib/dump_stack.c:113 nmi_cpu_backtrace.cold.1+0x5c/0xa1 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1b3/0x1ed 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:144 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline] watchdog+0xb3e/0x1050 kernel/hung_task.c:265 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:350 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:57