Warning: Permanently added '10.128.0.182' (ED25519) to the list of known hosts. executing program [ 34.731992][ T5987] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5987 'syz-executor422' [ 35.028025][ T5987] loop0: detected capacity change from 0 to 63271 [ 35.032903][ T5987] F2FS-fs (loop0): Mismatch start address, segment0(512) cp_blkaddr(605) [ 35.035191][ T5987] F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock [ 35.039319][ T5987] F2FS-fs (loop0): invalid crc value [ 35.043500][ T5987] F2FS-fs (loop0): Found nat_bits in checkpoint [ 35.057456][ T5987] F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 [ 35.059377][ T5987] F2FS-fs (loop0): Mounted with checkpoint version = 753bd00b [ 35.073868][ T5987] [ 35.074518][ T5987] ====================================================== [ 35.076366][ T5987] WARNING: possible circular locking dependency detected [ 35.078149][ T5987] 6.5.0-rc4-syzkaller-g86d7896480b0 #0 Not tainted [ 35.079778][ T5987] ------------------------------------------------------ [ 35.081638][ T5987] syz-executor422/5987 is trying to acquire lock: [ 35.083357][ T5987] ffff0000dfc216d8 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_add_inline_entry+0x350/0x650 [ 35.085847][ T5987] [ 35.085847][ T5987] but task is already holding lock: [ 35.087829][ T5987] ffff0000dfc210a0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 35.090248][ T5987] [ 35.090248][ T5987] which lock already depends on the new lock. [ 35.090248][ T5987] [ 35.092924][ T5987] [ 35.092924][ T5987] the existing dependency chain (in reverse order) is: [ 35.095134][ T5987] [ 35.095134][ T5987] -> #1 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 35.097088][ T5987] down_read+0x58/0x2fc [ 35.098321][ T5987] f2fs_getxattr+0x9c/0x11b0 [ 35.099664][ T5987] __f2fs_get_acl+0x6c/0x5e4 [ 35.101216][ T5987] f2fs_init_acl+0xe8/0x8f0 [ 35.102509][ T5987] f2fs_init_inode_metadata+0x840/0x11a8 [ 35.104045][ T5987] f2fs_add_regular_entry+0x760/0xe0c [ 35.105566][ T5987] f2fs_do_add_link+0x300/0x5a4 [ 35.106977][ T5987] f2fs_mkdir+0x2a4/0x4ec [ 35.108212][ T5987] vfs_mkdir+0x240/0x3a8 [ 35.109390][ T5987] do_mkdirat+0x20c/0x610 [ 35.110691][ T5987] __arm64_sys_mkdirat+0x90/0xa8 [ 35.112209][ T5987] invoke_syscall+0x98/0x2c0 [ 35.113512][ T5987] el0_svc_common+0x138/0x244 [ 35.114802][ T5987] do_el0_svc+0x64/0x198 [ 35.116006][ T5987] el0_svc+0x4c/0x160 [ 35.117137][ T5987] el0t_64_sync_handler+0x84/0xfc [ 35.118603][ T5987] el0t_64_sync+0x190/0x194 [ 35.119979][ T5987] [ 35.119979][ T5987] -> #0 (&fi->i_sem){+.+.}-{3:3}: [ 35.121862][ T5987] __lock_acquire+0x3370/0x75e8 [ 35.123235][ T5987] lock_acquire+0x23c/0x71c [ 35.124571][ T5987] down_write+0x50/0xc0 [ 35.125782][ T5987] f2fs_add_inline_entry+0x350/0x650 [ 35.127275][ T5987] f2fs_do_add_link+0x2c4/0x5a4 [ 35.128669][ T5987] f2fs_create+0x2c0/0x494 [ 35.129916][ T5987] vfs_create+0x1cc/0x2f0 [ 35.131149][ T5987] do_mknodat+0x314/0x674 [ 35.132378][ T5987] __arm64_sys_mknodat+0xb0/0xcc [ 35.133800][ T5987] invoke_syscall+0x98/0x2c0 [ 35.135073][ T5987] el0_svc_common+0x138/0x244 [ 35.136502][ T5987] do_el0_svc+0x64/0x198 [ 35.137732][ T5987] el0_svc+0x4c/0x160 [ 35.138922][ T5987] el0t_64_sync_handler+0x84/0xfc [ 35.140370][ T5987] el0t_64_sync+0x190/0x194 [ 35.141739][ T5987] [ 35.141739][ T5987] other info that might help us debug this: [ 35.141739][ T5987] [ 35.144430][ T5987] Possible unsafe locking scenario: [ 35.144430][ T5987] [ 35.146325][ T5987] CPU0 CPU1 [ 35.147716][ T5987] ---- ---- [ 35.149071][ T5987] rlock(&fi->i_xattr_sem); [ 35.150268][ T5987] lock(&fi->i_sem); [ 35.152067][ T5987] lock(&fi->i_xattr_sem); [ 35.153996][ T5987] lock(&fi->i_sem); [ 35.155009][ T5987] [ 35.155009][ T5987] *** DEADLOCK *** [ 35.155009][ T5987] [ 35.157173][ T5987] 4 locks held by syz-executor422/5987: [ 35.158550][ T5987] #0: ffff0000dba64410 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 35.160998][ T5987] #1: ffff0000dfc20a28 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x204/0x468 [ 35.163759][ T5987] #2: ffff0000ddb8c3b0 (&sbi->cp_rwsem){++++}-{3:3}, at: f2fs_create+0x224/0x494 [ 35.166073][ T5987] #3: ffff0000dfc210a0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 35.168795][ T5987] [ 35.168795][ T5987] stack backtrace: [ 35.170285][ T5987] CPU: 0 PID: 5987 Comm: syz-executor422 Not tainted 6.5.0-rc4-syzkaller-g86d7896480b0 #0 [ 35.172809][ T5987] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 35.175314][ T5987] Call trace: [ 35.176147][ T5987] dump_backtrace+0x1b8/0x1e4 [ 35.177378][ T5987] show_stack+0x2c/0x44 [ 35.178382][ T5987] dump_stack_lvl+0xd0/0x124 [ 35.179561][ T5987] dump_stack+0x1c/0x28 [ 35.180590][ T5987] print_circular_bug+0x150/0x1b8 [ 35.181911][ T5987] check_noncircular+0x310/0x404 [ 35.183154][ T5987] __lock_acquire+0x3370/0x75e8 [ 35.184393][ T5987] lock_acquire+0x23c/0x71c [ 35.185529][ T5987] down_write+0x50/0xc0 [ 35.186559][ T5987] f2fs_add_inline_entry+0x350/0x650 [ 35.187954][ T5987] f2fs_do_add_link+0x2c4/0x5a4 [ 35.189244][ T5987] f2fs_create+0x2c0/0x494 [ 35.190414][ T5987] vfs_create+0x1cc/0x2f0 [ 35.191458][ T5987] do_mknodat+0x314/0x674 [ 35.192595][ T5987] __arm64_sys_mknodat+0xb0/0xcc [ 35.193881][ T5987] invoke_syscall+0x98/0x2c0 [ 35.195034][ T5987] el0_svc_common+0x138/0x244 [ 35.196267][ T5987] do_el0_svc+0x64/0x198 [ 35.197319][ T5987] el0_svc+0x4c/0x160 [ 35.198342][ T5987] el0t_64_sync_handler+0x84/0xfc [ 35.199620][ T5987] el0t_64_sync+0x190/0x194