INFO: task syz-executor.0:6834 blocked for more than 143 seconds. Not tainted 6.3.0-next-20230505-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25664 pid:6834 ppid:5043 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x1d15/0x5790 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 io_schedule+0xbe/0x130 kernel/sched/core.c:8979 bit_wait_io+0x16/0xe0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0x11f/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0xd9/0x110 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:70 [inline] lock_buffer include/linux/buffer_head.h:406 [inline] __sync_dirty_buffer+0x30e/0x380 fs/buffer.c:2807 __ext4_handle_dirty_metadata+0x2b7/0x8e0 fs/ext4/ext4_jbd2.c:387 ext4_handle_dirty_dirblock+0x371/0x470 fs/ext4/namei.c:438 ext4_finish_convert_inline_dir fs/ext4/inline.c:1178 [inline] ext4_convert_inline_data_nolock+0xac1/0xf10 fs/ext4/inline.c:1255 ext4_try_add_inline_entry+0x473/0x8d0 fs/ext4/inline.c:1328 ext4_add_entry+0x80d/0xe30 fs/ext4/namei.c:2384 ext4_mkdir+0x42e/0xb20 fs/ext4/namei.c:3006 vfs_mkdir+0x242/0x460 fs/namei.c:4115 do_mkdirat+0x28d/0x310 fs/namei.c:4138 __do_sys_mkdir fs/namei.c:4158 [inline] __se_sys_mkdir fs/namei.c:4156 [inline] __x64_sys_mkdir+0xf6/0x140 fs/namei.c:4156 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3ee888c169 RSP: 002b:00007f3ee9674168 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007f3ee89ac120 RCX: 00007f3ee888c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00007f3ee88e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd0340c4ff R14: 00007f3ee9674300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c798e30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c798b30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8c799a40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6559 1 lock held by udevd/4459: 2 locks held by getty/4765: #0: ffff88802ccba098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 3 locks held by strace-static-x/5005: 1 lock held by syz-executor.1/5037: #0: ffffffff8c7a4eb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #0: ffffffff8c7a4eb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x64a/0x770 kernel/rcu/tree_exp.h:992 2 locks held by kworker/0:3/5083: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc90003cdfdb0 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 3 locks held by kworker/1:6/5087: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc9000406fdb0 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffffffff8c7a4eb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #2: ffffffff8c7a4eb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3e8/0x770 kernel/rcu/tree_exp.h:992 3 locks held by syz-executor.0/6834: #0: ffff888015b82460 (sb_writers#4){.+.+}-{0:0}, at: filename_create+0xf5/0x4a0 fs/namei.c:3877 #1: ffff8880712b2200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #1: ffff8880712b2200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x1ae/0x4a0 fs/namei.c:3884 #2: ffff8880712b1ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff8880712b1ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_add_inline_entry+0x10c/0x8d0 fs/ext4/inline.c:1286 1 lock held by syz-executor.5/8563: #0: ffff8880b993c5d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 3 locks held by syz-executor.0/8564: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-next-20230505-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8564 Comm: syz-executor.0 Not tainted 6.3.0-next-20230505-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:folio_flags.constprop.0+0x2/0x150 include/linux/page-flags.h:307 Code: d4 23 c9 ff e8 cf 23 c9 ff 48 89 ef e8 c7 2a 02 00 5b 5d 41 5c e9 be 23 c9 ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 54 <49> 89 fc 55 53 e8 a4 23 c9 ff 49 8d 7c 24 08 48 b8 00 00 00 00 00 RSP: 0018:ffffc90007447868 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880157b1dc0 RSI: ffffffff81bb2d35 RDI: ffffea0001a54840 RBP: ffffea0001a54840 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000094001 R12: ffffea0001a54870 R13: 0000000000000000 R14: ffffc90007447a60 R15: 0000000000000005 FS: 00007f7142eff700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3ddccb1500 CR3: 0000000029ede000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_swapbacked include/linux/page-flags.h:493 [inline] folio_test_swapcache include/linux/page-flags.h:535 [inline] folio_mapping+0x6d/0x210 mm/util.c:772 __folio_cancel_dirty+0x22/0x410 mm/page-writeback.c:2843 folio_cancel_dirty include/linux/pagemap.h:1067 [inline] truncate_cleanup_folio+0x1dc/0x3f0 mm/truncate.c:186 truncate_inode_folio+0x44/0x70 mm/truncate.c:195 shmem_undo_range+0x333/0x1240 mm/shmem.c:950 shmem_truncate_range mm/shmem.c:1064 [inline] shmem_evict_inode+0x32f/0xb60 mm/shmem.c:1179 evict+0x2ed/0x6b0 fs/inode.c:665 iput_final fs/inode.c:1747 [inline] iput fs/inode.c:1773 [inline] iput+0x4a7/0x7a0 fs/inode.c:1759 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401 __dentry_kill+0x3c0/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x865/0xe10 fs/dcache.c:913 __fput+0x3cc/0xa90 fs/file_table.c:329 task_work_run+0x16f/0x270 kernel/task_work.c:179 ptrace_notify+0x118/0x140 kernel/signal.c:2369 ptrace_report_syscall include/linux/ptrace.h:411 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline] syscall_exit_work kernel/entry/common.c:252 [inline] syscall_exit_to_user_mode_prepare+0x129/0x220 kernel/entry/common.c:279 __syscall_exit_to_user_mode_work kernel/entry/common.c:284 [inline] syscall_exit_to_user_mode+0xd/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f714223e01b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007f7142efef20 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f714223e01b RDX: 0000000000000003 RSI: 0000000000004c00 RDI: 0000000000000003 RBP: 0000000000000004 R08: 0000000000000000 R09: 00000000000007a7 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000010 R13: 00007f7142efefdc R14: 00007f7142eff6b8 R15: 0000000020000382