INFO: task syz-executor.1:5082 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23616 pid: 5082 ppid: 4521 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5049 [inline] __schedule+0x11bb/0x4390 kernel/sched/core.c:6395 schedule+0x11b/0x1e0 kernel/sched/core.c:6478 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 __writeback_inodes_sb_nr+0x1f3/0x240 fs/fs-writeback.c:2695 try_to_writeback_inodes_sb+0x96/0xc0 fs/fs-writeback.c:2743 ext4_nonda_switch fs/ext4/inode.c:2945 [inline] ext4_da_write_begin+0x213/0xb30 fs/ext4/inode.c:2972 generic_perform_write+0x2aa/0x530 mm/filemap.c:3785 ext4_buffered_write_iter+0x25f/0x3b0 fs/ext4/file.c:268 ext4_file_write_iter+0x773/0x17b0 fs/ext4/file.c:-1 __kernel_write+0x4f9/0x930 fs/read_write.c:539 __dump_emit+0x243/0x360 fs/coredump.c:943 dump_user_range+0x84/0x340 fs/coredump.c:1017 elf_core_dump+0x2ff7/0x3530 fs/binfmt_elf.c:2285 do_coredump+0x1419/0x2960 fs/coredump.c:894 get_signal+0x40a/0x12c0 kernel/signal.c:2886 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:320 exc_page_fault+0x88/0x100 arch/x86/mm/fault.c:1504 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x0 RSP: 002b:0000000020000048 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f9cbf039f80 RCX: 00007f9cbef1ab29 RDX: 0000000020000140 RSI: 0000000020000040 RDI: 0000000000008000 RBP: 00007f9cbef6647a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9cbf039f80 R15: 00007fff6401b088 INFO: task syz-executor.4:5119 blocked for more than 145 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23488 pid: 5119 ppid: 4531 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5049 [inline] __schedule+0x11bb/0x4390 kernel/sched/core.c:6395 schedule+0x11b/0x1e0 kernel/sched/core.c:6478 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 __writeback_inodes_sb_nr+0x1f3/0x240 fs/fs-writeback.c:2695 try_to_writeback_inodes_sb+0x96/0xc0 fs/fs-writeback.c:2743 ext4_nonda_switch fs/ext4/inode.c:2945 [inline] ext4_da_write_begin+0x213/0xb30 fs/ext4/inode.c:2972 generic_perform_write+0x2aa/0x530 mm/filemap.c:3785 ext4_buffered_write_iter+0x25f/0x3b0 fs/ext4/file.c:268 ext4_file_write_iter+0x773/0x17b0 fs/ext4/file.c:-1 __kernel_write+0x4f9/0x930 fs/read_write.c:539 __dump_emit+0x243/0x360 fs/coredump.c:943 dump_user_range+0x84/0x340 fs/coredump.c:1017 elf_core_dump+0x2ff7/0x3530 fs/binfmt_elf.c:2285 do_coredump+0x1419/0x2960 fs/coredump.c:894 get_signal+0x40a/0x12c0 kernel/signal.c:2886 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:320 exc_page_fault+0x88/0x100 arch/x86/mm/fault.c:1504 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x0 RSP: 002b:0000000020000048 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f54b5657f80 RCX: 00007f54b5538b29 RDX: 0000000020000140 RSI: 0000000020000040 RDI: 0000000000008000 RBP: 00007f54b558447a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007f54b5657f80 R15: 00007ffe8e9b1958 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c11c760 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:2/154: #0: ffff8880199fe138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1 #1: ffffc90002017d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285 #2: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 2 locks held by kworker/u4:4/1437: #0: ffff888016879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1 #1: ffff8880b9127888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4d6/0x810 kernel/sched/psi.c:891 2 locks held by getty/3956: #0: ffff88802bca7098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc900025e62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x5ba/0x1a30 drivers/tty/n_tty.c:2158 1 lock held by syz-executor.1/4521: 3 locks held by syz-executor.1/5082: #0: ffff88814d032460 (sb_writers#5){.+.+}-{0:0}, at: do_coredump+0x13fd/0x2960 fs/coredump.c:893 #1: ffff888061fbbfc0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff888061fbbfc0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xa6/0x3b0 fs/ext4/file.c:262 #2: ffff88814d0320e0 (&type->s_umount_key#32){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x1e/0xc0 fs/fs-writeback.c:2740 3 locks held by syz-executor.4/5119: #0: ffff88814d032460 (sb_writers#5){.+.+}-{0:0}, at: do_coredump+0x13fd/0x2960 fs/coredump.c:893 #1: ffff88806fa335c8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff88806fa335c8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xa6/0x3b0 fs/ext4/file.c:262 #2: ffff88814d0320e0 (&type->s_umount_key#32){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x1e/0xc0 fs/fs-writeback.c:2740 1 lock held by syz-executor.4/6454: 1 lock held by syz-executor.4/6455: 1 lock held by syz-executor.3/6482: 1 lock held by syz-executor.5/6486: 1 lock held by syz-executor.2/6498: 1 lock held by syz-executor.1/6499: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 1 lock held by syz-executor.4/6505: 2 locks held by syz-executor.3/6517: 1 lock held by syz-executor.5/6522: 1 lock held by syz-executor.5/6523: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 1 lock held by syz-executor.2/6534: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 1 lock held by syz-executor.2/6542: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 1 lock held by syz-executor.1/6545: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 1 lock held by syz-executor.3/6556: 1 lock held by syz-executor.5/6561: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 1 lock held by syz-executor.5/6562: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 2 locks held by syz-executor.4/6587: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.3/6589: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.2/6599: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.1/6611: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 3 locks held by syz-executor.4/6614: 2 locks held by syz-executor.5/6619: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.1/6629: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.1/6662: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.5/6666: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.4/6680: 2 locks held by syz-executor.5/6693: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.5/6734: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 1 lock held by syz-executor.4/6754: 2 locks held by syz-executor.5/6771: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 1 lock held by syz-executor.4/6827: 1 lock held by syz-executor.1/6896: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 3 locks held by syz-executor.4/7082: 1 lock held by syz-executor.2/7155: 2 locks held by syz-executor.2/7431: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.2/7437: 1 lock held by syz-executor.5/7438: 1 lock held by syz-executor.5/7443: 1 lock held by syz-executor.4/7455: 1 lock held by syz-executor.4/7477: 3 locks held by syz-executor.4/7479: 1 lock held by syz-executor.5/7493: 1 lock held by syz-executor.5/7495: 1 lock held by syz-executor.2/7626: 1 lock held by syz-executor.4/7652: 1 lock held by syz-executor.4/7665: 3 locks held by syz-executor.5/7672: 1 lock held by syz-executor.4/7718: 2 locks held by syz-executor.5/7743: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.2/7767: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 #1: ffff88814d0363f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_log_do_checkpoint+0xb1f/0xe40 fs/jbd2/checkpoint.c:243 2 locks held by syz-executor.4/7849: 1 lock held by syz-executor.1/8014: 3 locks held by syz-executor.0/8325: #0: ffff88814d032460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:386 #1: ffff88806fa317e0 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #1: ffff88806fa317e0 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: do_unlinkat+0x1b9/0x6f0 fs/namei.c:4339 #2: ffff888071a503f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #2: ffff888071a503f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: vfs_unlink+0xee/0x600 fs/namei.c:4277 1 lock held by syz-executor.5/8453: 1 lock held by syz-executor.4/8456: 1 lock held by syz-executor.2/8470: 1 lock held by syz-executor.4/8493: 1 lock held by syz-executor.5/8502: 1 lock held by syz-executor.2/8520: 1 lock held by syz-executor.1/8522: 1 lock held by syz-executor.1/8527: #0: ffff88814d034bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1c0/0x2d20 fs/ext4/inode.c:2689 3 locks held by syz-executor.3/9175: 2 locks held by syz-executor.3/9176: 2 locks held by syz-executor.0/9186: 3 locks held by syz-executor.3/9197: 2 locks held by syz-executor.5/9198: 3 locks held by syz-executor.0/9200: 3 locks held by syz-executor.2/9204: 2 locks held by syz-executor.3/9209: 2 locks held by syz-executor.2/9215: 2 locks held by syz-executor.0/9221: 2 locks held by syz-executor.0/9226: 2 locks held by syz-executor.1/9228: 3 locks held by syz-executor.4/9233: 2 locks held by syz-executor.4/9234: 3 locks held by syz-executor.2/9246: 2 locks held by syz-executor.2/9247: 2 locks held by syz-executor.0/9255: 2 locks held by syz-executor.1/9260: 2 locks held by syz-executor.5/9264: 2 locks held by syz-executor.3/9282: 3 locks held by syz-executor.3/9283: 2 locks held by syz-executor.1/9288: 3 locks held by syz-executor.4/9299: 3 locks held by syz-executor.5/9302: 3 locks held by syz-executor.0/9312: 2 locks held by syz-executor.2/9316: 2 locks held by syz-executor.2/9318: 4 locks held by syz-executor.0/9326: 3 locks held by syz-executor.3/9331: 2 locks held by syz-executor.1/9339: 2 locks held by syz-executor.3/9340: 3 locks held by syz-executor.5/9345: 2 locks held by syz-executor.2/9347: