INFO: task syz-executor.2:28642 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. XFS (loop1): Mounting V4 Filesystem syz-executor.2 D26408 28642 8142 0x00000004 Call Trace: XFS (loop1): Ending clean mount context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 xlog_grant_head_wait+0x13b/0xcd0 fs/xfs/xfs_log.c:263 xlog_grant_head_check+0x3c8/0x420 fs/xfs/xfs_log.c:325 xfs_log_reserve+0x347/0xa70 fs/xfs/xfs_log.c:454 XFS (loop4): Mounting V4 Filesystem xfs_trans_reserve+0x63a/0x9c0 fs/xfs/xfs_trans.c:197 xfs_trans_alloc+0x2f7/0x700 fs/xfs/xfs_trans.c:289 xfs_attr_set+0x5b8/0x740 fs/xfs/libxfs/xfs_attr.c:363 XFS (loop4): Ending clean mount xfs_xattr_set+0xb5/0x120 fs/xfs/xfs_xattr.c:81 __vfs_setxattr+0x10e/0x170 fs/xattr.c:149 __vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180 __vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238 vfs_setxattr+0xe5/0x270 fs/xattr.c:255 setxattr+0x23d/0x330 fs/xattr.c:520 path_setxattr+0x170/0x190 fs/xattr.c:539 __do_sys_setxattr fs/xattr.c:554 [inline] __se_sys_setxattr fs/xattr.c:550 [inline] __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9b6d6180c9 Code: Bad RIP value. RSP: 002b:00007f9b6bb8a168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f9b6d737f80 RCX: 00007f9b6d6180c9 RDX: 00000000200000c0 RSI: 0000000020000200 RDI: 0000000020000080 RBP: 00007f9b6d673ae9 R08: 0000000000000001 R09: 0000000000000000 R10: 000000000000fd68 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe75290a2f R14: 00007f9b6bb8a300 R15: 0000000000022000 XFS (loop1): Unmounting Filesystem INFO: task syz-executor.2:28645 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D26136 28645 8142 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] vfs_setxattr+0xc7/0x270 fs/xattr.c:254 setxattr+0x23d/0x330 fs/xattr.c:520 path_setxattr+0x170/0x190 fs/xattr.c:539 __do_sys_setxattr fs/xattr.c:554 [inline] __se_sys_setxattr fs/xattr.c:550 [inline] __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9b6d6180c9 Code: Bad RIP value. RSP: 002b:00007f9b6bb69168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f9b6d738050 RCX: 00007f9b6d6180c9 XFS (loop5): Mounting V4 Filesystem RDX: 0000000000000000 RSI: 00000000200005c0 RDI: 0000000020000440 XFS (loop5): Ending clean mount RBP: 00007f9b6d673ae9 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe75290a2f R14: 00007f9b6bb69300 R15: 0000000000022000 Showing all locks held in the system: XFS (loop4): Unmounting Filesystem XFS (loop5): Unmounting Filesystem 1 lock held by khungtaskd/1570: #0: 00000000dc4b2bab (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 3 locks held by kworker/u4:4/3568: 1 lock held by in:imklog/7806: #0: 0000000004fdce60 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 3 locks held by syz-executor.2/28642: #0: 00000000711d9e1d (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000711d9e1d (sb_writers#25){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 00000000beb1fdcb (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000beb1fdcb (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: vfs_setxattr+0xc7/0x270 fs/xattr.c:254 #2: 00000000db51b6c9 (sb_internal#3){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #2: 00000000db51b6c9 (sb_internal#3){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 2 locks held by syz-executor.2/28645: #0: 00000000711d9e1d (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000711d9e1d (sb_writers#25){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 00000000beb1fdcb (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000beb1fdcb (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: vfs_setxattr+0xc7/0x270 fs/xattr.c:254 2 locks held by syz-executor.2/3034: 3 locks held by syz-executor.0/3049: 3 locks held by syz-executor.5/3108: #0: 000000002abe91f3 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000002abe91f3 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 00000000dc4b2bab (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000dc4b2bab (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 #2: 00000000dc4b2bab (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #2: 00000000dc4b2bab (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 29188 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:validate_chain kernel/locking/lockdep.c:2427 [inline] RIP: 0010:__lock_acquire+0x8ee/0x3ff0 kernel/locking/lockdep.c:3416 Code: 24 38 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 96 26 00 00 41 8b 42 20 25 00 80 04 00 3d 00 00 04 00 0f 84 89 02 00 00 <48> c7 c2 60 f1 45 8a 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f RSP: 0018:ffff88803c09fa90 EFLAGS: 00000046 RAX: 1ffffffff18e2783 RBX: ffffffff8c713c00 RCX: 0000000000000ff8 RDX: 1ffffffff19a3ea0 RSI: 000000008dae0b10 RDI: ffffffff8c713c18 RBP: dffffc0000000000 R08: ffffffff8cd1f500 R09: 0000000000000000 R10: ffff888046990b48 R11: 0000000000000000 R12: a8b925c7f0ce6f64 R13: ffff8880469902c0 R14: ffff888046990b60 R15: 0000000000000001 FS: 00005555564bf400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f940000c360 CR3: 00000000918a7000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:152 __free_object+0x17/0x1e0 lib/debugobjects.c:251 free_object lib/debugobjects.c:272 [inline] debug_object_free lib/debugobjects.c:652 [inline] debug_object_free+0x1cc/0x380 lib/debugobjects.c:624 destroy_hrtimer_on_stack kernel/time/hrtimer.c:442 [inline] hrtimer_nanosleep+0x27f/0x570 kernel/time/hrtimer.c:1824 common_nsleep+0x23/0x30 kernel/time/posix-timers.c:1204 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1231 [inline] __se_sys_clock_nanosleep+0x261/0x360 kernel/time/posix-timers.c:1209 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f1a195dddf1 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e7 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e7 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f RSP: 002b:00007ffc97677c00 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 000000000000013c RCX: 00007f1a195dddf1 RDX: 00007ffc97677c40 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffc97677ccc R08: 0000000000000000 R09: 0000014a9b64f090 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 0000000000139e8d R14: 0000000000000000 R15: 00007ffc97677d30 XFS (loop0): Mounting V4 Filesystem