INFO: task syz.0.15:6095 blocked for more than 143 seconds. Not tainted 6.11.0-rc3-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.15 state:D stack:23144 pid:6095 tgid:6094 ppid:5789 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1a1d/0x4bb0 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 xlog_grant_head_wait+0x43b/0xa80 fs/xfs/xfs_log.c:266 xlog_grant_head_check+0x342/0x4f0 xfs_log_reserve+0x337/0x8d0 fs/xfs/xfs_log.c:436 xfs_trans_reserve+0x20a/0x640 fs/xfs/xfs_trans.c:195 xfs_trans_alloc+0x40e/0x820 fs/xfs/xfs_trans.c:284 xfs_trans_alloc_inode+0x1ac/0x5d0 fs/xfs/xfs_trans.c:1077 xfs_attr_set+0x8a8/0x1420 fs/xfs/libxfs/xfs_attr.c:1046 xfs_xattr_set+0x1ff/0x350 fs/xfs/xfs_xattr.c:187 __vfs_setxattr+0x468/0x4a0 fs/xattr.c:200 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234 vfs_setxattr+0x221/0x430 fs/xattr.c:321 do_setxattr fs/xattr.c:629 [inline] path_setxattr+0x37e/0x4d0 fs/xattr.c:658 __do_sys_setxattr fs/xattr.c:676 [inline] __se_sys_setxattr fs/xattr.c:672 [inline] __x64_sys_setxattr+0xbb/0xd0 fs/xattr.c:672 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fe58cb779f9 RSP: 002b:00007fe58d9e5038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fe58cd05f80 RCX: 00007fe58cb779f9 RDX: 0000000020000100 RSI: 0000000020000340 RDI: 0000000020000040 RBP: 00007fe58cbe58ee R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fc21 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe58cd05f80 R15: 00007fffb4145988 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8df357a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] #0: ffffffff8df357a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #0: ffffffff8df357a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6626 2 locks held by getty/4852: #0: ffff88802a4570a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ac/0x1e00 drivers/tty/n_tty.c:2211 2 locks held by kworker/0:5/5322: #0: ffff88802347d548 ((wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline] #0: ffff88802347d548 ((wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1810 kernel/workqueue.c:3312 #1: ffffc9000369fd20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #1: ffffc9000369fd20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1810 kernel/workqueue.c:3312 3 locks held by syz.0.15/6095: #0: ffff88802cfc2420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888076faa230 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: inode_lock include/linux/fs.h:799 [inline] #1: ffff888076faa230 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: vfs_setxattr+0x1e1/0x430 fs/xattr.c:320 #2: ffff88802cfc2610 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0x1ac/0x5d0 fs/xfs/xfs_trans.c:1077 2 locks held by syz.0.312/6719: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfe6/0x1030 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 6719 Comm: syz.0.312 Not tainted 6.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:lock_acquire+0xa/0x540 kernel/locking/lockdep.c:5727 Code: 0f 95 c0 c3 cc cc cc cc 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 41 57 <41> 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 20 01 00 00 4c 89 4c 24 RSP: 0018:ffffc9000a35f700 EFLAGS: 00000046 RAX: 0000000000000002 RBX: 1ffff9200146bee8 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88807df6eaa8 RBP: ffffc9000a35f708 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1ed4d5e R12: ffff88807df6ea90 R13: 1ffff9200146bee4 R14: ffffc9000a35f740 R15: dffffc0000000000 FS: 00007f82a25276c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f829a3ff000 CR3: 0000000017f3e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] filemap_remove_folio+0xfe/0x2e0 mm/filemap.c:263 truncate_inode_folio+0x5d/0x70 mm/truncate.c:178 shmem_undo_range+0x45d/0x1df0 mm/shmem.c:1019 shmem_truncate_range mm/shmem.c:1132 [inline] shmem_evict_inode+0x29e/0xa90 mm/shmem.c:1260 evict+0x2a8/0x630 fs/inode.c:669 __dentry_kill+0x200/0x610 fs/dcache.c:610 dput+0x19f/0x2b0 fs/dcache.c:852 __fput+0x5f8/0x8a0 fs/file_table.c:430 __do_sys_close fs/open.c:1566 [inline] __se_sys_close+0x166/0x230 fs/open.c:1551 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f82a177668a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 13 8b 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 73 8b 02 00 8b 44 24 RSP: 002b:00007f82a2526e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f82a177668a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000010 R08: 0000000000000000 R09: 000000000000b85c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f82a2526ef0 R14: 00007f82a2527668 R15: 00007f8298400000