INFO: task syz-executor0:22838 blocked for more than 140 seconds. Not tainted 4.18.0-rc5+ #151 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D25208 22838 4559 0x00000004 Call Trace: context_switch kernel/sched/core.c:2853 [inline] __schedule+0x87c/0x1ed0 kernel/sched/core.c:3501 schedule+0xfb/0x450 kernel/sched/core.c:3545 __rwsem_down_write_failed_common+0x95d/0x1630 kernel/locking/rwsem-xadd.c:566 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:595 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+0xaa/0x130 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:715 [inline] chown_common+0x3a9/0x730 fs/open.c:640 do_fchownat+0x16e/0x250 fs/open.c:673 __do_sys_chown fs/open.c:693 [inline] __se_sys_chown fs/open.c:691 [inline] __x64_sys_chown+0x7b/0xc0 fs/open.c:691 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455ab9 Code: e0 1f 48 89 04 24 e8 b6 6f fd ff e8 81 6a fd ff e8 5c 68 fd ff 48 8d 05 1c c1 48 00 48 89 04 24 48 c7 44 24 08 1d 00 00 00 e8 <13> 5e fd ff 0f 0b e8 8c 44 00 00 e9 07 f0 ff ff cc cc cc cc cc cc RSP: 002b:00007f6c57f2ac68 EFLAGS: 00000246 ORIG_RAX: 000000000000005c RAX: ffffffffffffffda RBX: 00007f6c57f2b6d4 RCX: 0000000000455ab9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 000000000072c098 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004bff07 R14: 00000000004c8c80 R15: 0000000000000003 Showing all locks held in the system: 1 lock held by khungtaskd/902: #0: 00000000de96b890 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x428 kernel/locking/lockdep.c:4461 2 locks held by rs:main Q:Reg/4420: #0: 00000000b7edd514 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 #1: 000000006d615575 (sb_writers#6){.+.+}, at: file_start_write include/linux/fs.h:2737 [inline] #1: 000000006d615575 (sb_writers#6){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548 1 lock held by rsyslogd/4422: #0: 00000000f9b09d5a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/4512: #0: 000000003e3840a1 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000df525908 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4513: #0: 00000000fbc2ab48 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000002b06613e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4514: #0: 00000000d7651f52 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000f8c4f638 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4515: #0: 00000000c2432650 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000004f809803 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4516: #0: 00000000f68f4b95 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000f6c4d667 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4517: #0: 00000000b12afa50 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000003596b911 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by getty/4518: #0: 0000000014b94bd7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000009c7daf35 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140 2 locks held by syz-executor0/22743: #0: 00000000cd97dd2c (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1554 [inline] #0: 00000000cd97dd2c (sb_writers#14){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:386 #1: 0000000066cbd876 (&sb->s_type->i_mutex_key#26){+.+.}, at: inode_lock include/linux/fs.h:715 [inline] #1: 0000000066cbd876 (&sb->s_type->i_mutex_key#26){+.+.}, at: chown_common+0x3a9/0x730 fs/open.c:640 2 locks held by syz-executor0/22838: #0: 00000000cd97dd2c (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1554 [inline] #0: 00000000cd97dd2c (sb_writers#14){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:386 #1: 0000000066cbd876 (&sb->s_type->i_mutex_key#26){+.+.}, at: inode_lock include/linux/fs.h:715 [inline] #1: 0000000066cbd876 (&sb->s_type->i_mutex_key#26){+.+.}, at: chown_common+0x3a9/0x730 fs/open.c:640 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 902 Comm: khungtaskd Not tainted 4.18.0-rc5+ #151 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: 2302 Comm: jbd2/sda1-8 Not tainted 4.18.0-rc5+ #151 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__lock_acquire+0x2db/0x5020 kernel/locking/lockdep.c:3341 Code: 83 38 01 00 00 49 8d 86 30 08 00 00 44 8b 84 24 88 00 00 00 48 89 c2 48 89 44 24 78 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e fb 32 00 00 48 c7 c2 60 cb a4 RSP: 0018:ffff8801dae074a0 EFLAGS: 00000806 RAX: dffffc0000000000 RBX: ffffffff8a56f170 RCX: ffffffff815eaabf RDX: 1ffff1003984e94e RSI: 0000000000000004 RDI: ffffffff8a56f2a8 RBP: ffff8801dae07830 R08: 0000000000000001 R09: fffffbfff14ade55 R10: fffffbfff14ade55 R11: ffffffff8a56f2ab R12: 0000000000000001 R13: ffff8801dae23718 R14: ffff8801cc274240 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0986938000 CR3: 00000001cc33d000 CR4: 00000000001406f0 DR0: 0000000020000040 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline] _raw_spin_lock_irq+0x5e/0x80 kernel/locking/spinlock.c:160 expire_timers kernel/time/timer.c:1364 [inline] __run_timers+0x7ae/0xc70 kernel/time/timer.c:1666 run_timer_softirq+0x4c/0x70 kernel/time/timer.c:1692 __do_softirq+0x2e8/0xb17 kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x1d1/0x200 kernel/softirq.c:408 exiting_irq arch/x86/include/asm/apic.h:527 [inline] smp_apic_timer_interrupt+0x186/0x730 arch/x86/kernel/apic/apic.c:1052 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863 RIP: 0010:__sanitizer_cov_trace_pc+0x1/0x50 kernel/kcov.c:94 Code: dd 28 00 00 00 4d 39 d0 72 1b 49 83 c1 01 4a 89 7c 10 e0 4a 89 74 10 e8 4a 89 54 10 f0 4a 89 4c d8 20 4c 89 08 5d c3 66 90 55 <65> 48 8b 04 25 40 ee 01 00 65 8b 15 7f e2 85 7e 48 89 e5 81 e2 00 RSP: 0018:ffff8801cc27d718 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff8801d0357800 RCX: ffffffff834b8733 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: ffff8801cc27d820 R08: ffff8801cc274240 R09: ffff88021fff801b R10: ffffed0043fff001 R11: 0000000000000000 R12: ffff8801d1e03040 R13: ffff8801d03578e8 R14: ffff8801cc27d7f8 R15: 0000000000000000 blk_mq_start_request+0x285/0x890 block/blk-mq.c:649 scsi_mq_prep_fn drivers/scsi/scsi_lib.c:1990 [inline] scsi_queue_rq+0x1297/0x1ef0 drivers/scsi/scsi_lib.c:2052 blk_mq_dispatch_rq_list+0xe12/0x24d0 block/blk-mq.c:1143 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:1263 __blk_mq_delay_run_hw_queue+0x488/0x520 block/blk-mq.c:1331 blk_mq_run_hw_queue+0x1cd/0x390 block/blk-mq.c:1368 blk_mq_sched_insert_requests+0x1b4/0x250 block/blk-mq-sched.c:492 blk_mq_flush_plug_list+0xaa5/0x1150 block/blk-mq.c:1618 blk_flush_plug_list+0x1c7/0x9a0 block/blk-core.c:3678 blk_finish_plug+0x58/0xa2 block/blk-core.c:3735 jbd2_journal_commit_transaction+0x45ee/0x8c54 fs/jbd2/commit.c:774 kjournald2+0x274/0xb50 fs/jbd2/journal.c:229 kthread+0x345/0x410 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 2.027 msecs