NILFS (loop5): invalid segment: Checksum error in segment payload NILFS (loop5): trying rollback from an earlier position NILFS (loop5): recovery complete NILFS (loop5): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds INFO: task syz-executor.3:11781 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.3 D23096 11781 8180 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 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_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_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:0x7f2661fb50f9 Code: Bad RIP value. RSP: 002b:00007f2660527168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f26620d4f80 RCX: 00007f2661fb50f9 RDX: 00000000200003c0 RSI: 0000000020000400 RDI: 0000000020000340 RBP: 00007f2662010ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000e407 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe810b018f R14: 00007f2660527300 R15: 0000000000022000 Showing all locks held in the system: 2 locks held by kworker/0:0/5: #0: 000000001924272e ((wq_completion)"xfs-sync/%s"mp->m_fsname){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000cfbd8e5d ((work_completion)(&(&log->l_work)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 4 locks held by kworker/u4:0/7: 1 lock held by khungtaskd/1570: #0: 00000000d354ad85 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7809: #0: 000000001a00effd (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by kworker/0:3/7816: #0: 000000007b557329 ((wq_completion)"xfs-sync/%s"mp->m_fsname){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000d6455a7c ((work_completion)(&(&log->l_work)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 3 locks held by syz-executor.3/11781: #0: 0000000078c9345a (sb_writers#21){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 0000000078c9345a (sb_writers#21){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 00000000d98e6029 (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000d98e6029 (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: vfs_setxattr+0xc7/0x270 fs/xattr.c:254 #2: 000000008d83daff (sb_internal#4){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #2: 000000008d83daff (sb_internal#4){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 3 locks held by syz-executor.4/12329: #0: 00000000797fa1dd (sb_writers#21){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000797fa1dd (sb_writers#21){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000003924da00 (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000003924da00 (&inode->i_sb->s_type->i_mutex_dir_key){++++}, at: vfs_setxattr+0xc7/0x270 fs/xattr.c:254 #2: 0000000019aaf5d8 (sb_internal#4){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #2: 0000000019aaf5d8 (sb_internal#4){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: netns cleanup_net RIP: 0010:iterate_chain_key kernel/locking/lockdep.c:314 [inline] RIP: 0010:__lock_acquire+0x857/0x3ff0 kernel/locking/lockdep.c:3411 Code: 60 0f 85 fd 05 00 00 48 89 da 89 d9 48 c1 ea 20 89 d0 41 29 d0 01 da c1 c0 04 44 31 c0 44 8d 04 10 29 c1 c1 c0 06 48 8b 3c 24 <31> c8 89 c1 29 c2 44 01 c0 c1 c1 08 31 ca 89 d1 41 29 d0 01 c2 c1 RSP: 0018:ffff8880b5a478f8 EFLAGS: 00000016 RAX: 0000000014fe29b8 RBX: 01e48808ffab15a2 RCX: 000000001f571cfc RDX: 00000000018f9daa RSI: ffff8880b5a36a48 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00000000e1e39650 R09: 0000000000000003 R10: ffff8880b5a36ac0 R11: 0000000000000000 R12: 000000000002002e R13: ffff8880b5a361c0 R14: ffff8880b5a36ad8 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f02f203b010 CR3: 000000009b535000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 rcu_lock_acquire include/linux/rcupdate.h:242 [inline] rcu_read_lock include/linux/rcupdate.h:627 [inline] inet_twsk_purge+0x115/0x7c0 net/ipv4/inet_timewait_sock.c:267 ops_exit_list+0xf9/0x150 net/core/net_namespace.c:156 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415