Warning: Permanently added '10.128.1.140' (ED25519) to the list of known hosts. executing program [ 42.384449][ T4218] loop0: detected capacity change from 0 to 63271 [ 42.389184][ T4218] F2FS-fs (loop0): Mismatch start address, segment0(512) cp_blkaddr(605) [ 42.391650][ T4218] F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock [ 42.395506][ T4218] F2FS-fs (loop0): invalid crc value [ 42.400395][ T4218] F2FS-fs (loop0): Found nat_bits in checkpoint [ 42.414559][ T4218] F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 [ 42.416573][ T4218] F2FS-fs (loop0): Mounted with checkpoint version = 753bd00b [ 42.426707][ T4218] [ 42.427372][ T4218] ====================================================== [ 42.429183][ T4218] WARNING: possible circular locking dependency detected [ 42.431014][ T4218] 6.1.42-syzkaller #0 Not tainted [ 42.432314][ T4218] ------------------------------------------------------ [ 42.434223][ T4218] syz-executor285/4218 is trying to acquire lock: [ 42.435927][ T4218] ffff0000e2441fe0 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_add_inline_entry+0x350/0x650 [ 42.438613][ T4218] [ 42.438613][ T4218] but task is already holding lock: [ 42.440600][ T4218] ffff0000df7d07c0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 42.443075][ T4218] [ 42.443075][ T4218] which lock already depends on the new lock. [ 42.443075][ T4218] [ 42.445888][ T4218] [ 42.445888][ T4218] the existing dependency chain (in reverse order) is: [ 42.448328][ T4218] [ 42.448328][ T4218] -> #1 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 42.450490][ T4218] down_read+0x64/0x308 [ 42.451751][ T4218] f2fs_getxattr+0xa4/0x1198 [ 42.453168][ T4218] __f2fs_get_acl+0x6c/0x5e4 [ 42.454567][ T4218] f2fs_init_acl+0xe8/0x8e8 [ 42.455861][ T4218] f2fs_init_inode_metadata+0x8a8/0x11e8 [ 42.457608][ T4218] f2fs_add_regular_entry+0x710/0xe8c [ 42.459183][ T4218] f2fs_do_add_link+0x300/0x5a4 [ 42.460640][ T4218] f2fs_mkdir+0x2a4/0x4ec [ 42.461895][ T4218] vfs_mkdir+0x334/0x4e4 [ 42.463200][ T4218] do_mkdirat+0x20c/0x610 [ 42.464500][ T4218] __arm64_sys_mkdirat+0x90/0xa8 [ 42.465932][ T4218] invoke_syscall+0x98/0x2c0 [ 42.467273][ T4218] el0_svc_common+0x138/0x258 [ 42.468706][ T4218] do_el0_svc+0x64/0x218 [ 42.469998][ T4218] el0_svc+0x58/0x168 [ 42.471211][ T4218] el0t_64_sync_handler+0x84/0xf0 [ 42.472664][ T4218] el0t_64_sync+0x18c/0x190 [ 42.473983][ T4218] [ 42.473983][ T4218] -> #0 (&fi->i_sem){+.+.}-{3:3}: [ 42.475897][ T4218] __lock_acquire+0x3338/0x764c [ 42.477345][ T4218] lock_acquire+0x26c/0x7cc [ 42.478721][ T4218] down_write+0x5c/0x88 [ 42.479940][ T4218] f2fs_add_inline_entry+0x350/0x650 [ 42.481504][ T4218] f2fs_do_add_link+0x2c4/0x5a4 [ 42.482997][ T4218] f2fs_symlink+0x390/0x7b0 [ 42.484336][ T4218] vfs_symlink+0x244/0x3a8 [ 42.485696][ T4218] do_symlinkat+0x364/0x6b0 [ 42.487049][ T4218] __arm64_sys_symlinkat+0xa4/0xbc [ 42.488598][ T4218] invoke_syscall+0x98/0x2c0 [ 42.489962][ T4218] el0_svc_common+0x138/0x258 [ 42.491371][ T4218] do_el0_svc+0x64/0x218 [ 42.492651][ T4218] el0_svc+0x58/0x168 [ 42.493820][ T4218] el0t_64_sync_handler+0x84/0xf0 [ 42.495341][ T4218] el0t_64_sync+0x18c/0x190 [ 42.496680][ T4218] [ 42.496680][ T4218] other info that might help us debug this: [ 42.496680][ T4218] [ 42.499477][ T4218] Possible unsafe locking scenario: [ 42.499477][ T4218] [ 42.501381][ T4218] CPU0 CPU1 [ 42.502821][ T4218] ---- ---- [ 42.504252][ T4218] lock(&fi->i_xattr_sem); [ 42.505492][ T4218] lock(&fi->i_sem); [ 42.507249][ T4218] lock(&fi->i_xattr_sem); [ 42.509177][ T4218] lock(&fi->i_sem); [ 42.510311][ T4218] [ 42.510311][ T4218] *** DEADLOCK *** [ 42.510311][ T4218] [ 42.512485][ T4218] 4 locks held by syz-executor285/4218: [ 42.513989][ T4218] #0: ffff0000d8098460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 42.516465][ T4218] #1: ffff0000df7d0150 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x200/0x464 [ 42.519300][ T4218] #2: ffff0000d5d2c3b0 (&sbi->cp_rwsem){++++}-{3:3}, at: f2fs_symlink+0x2dc/0x7b0 [ 42.521851][ T4218] #3: ffff0000df7d07c0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 42.524598][ T4218] [ 42.524598][ T4218] stack backtrace: [ 42.526191][ T4218] CPU: 1 PID: 4218 Comm: syz-executor285 Not tainted 6.1.42-syzkaller #0 [ 42.528411][ T4218] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 42.531128][ T4218] Call trace: [ 42.532063][ T4218] dump_backtrace+0x1c8/0x1f4 [ 42.533363][ T4218] show_stack+0x2c/0x3c [ 42.534466][ T4218] dump_stack_lvl+0x108/0x170 [ 42.535804][ T4218] dump_stack+0x1c/0x58 [ 42.536933][ T4218] print_circular_bug+0x150/0x1b8 [ 42.538250][ T4218] check_noncircular+0x2cc/0x378 [ 42.539498][ T4218] __lock_acquire+0x3338/0x764c [ 42.540868][ T4218] lock_acquire+0x26c/0x7cc [ 42.542113][ T4218] down_write+0x5c/0x88 [ 42.543220][ T4218] f2fs_add_inline_entry+0x350/0x650 [ 42.544650][ T4218] f2fs_do_add_link+0x2c4/0x5a4 [ 42.545955][ T4218] f2fs_symlink+0x390/0x7b0 [ 42.547209][ T4218] vfs_symlink+0x244/0x3a8 [ 42.548424][ T4218] do_symlinkat+0x364/0x6b0 [ 42.549679][ T4218] __arm64_sys_symlinkat+0xa4/0xbc [ 42.551054][ T4218] invoke_syscall+0x98/0x2c0 [ 42.552270][ T4218] el0_svc_common+0x138/0x258 [ 42.553534][ T4218] do_el0_svc+0x64/0x218 [ 42.554808][ T4218] el0_svc+0x58/0x168 [ 42.555870][ T4218] el0t_64_sync_handler+0x84/0xf0 [ 42.557177][ T4218] el0t_64_sync+0x18c/0x190