Warning: Permanently added '10.128.0.74' (ED25519) to the list of known hosts. executing program [ 38.168354][ T4225] loop0: detected capacity change from 0 to 63271 [ 38.173416][ T4225] F2FS-fs (loop0): Mismatch start address, segment0(512) cp_blkaddr(605) [ 38.175709][ T4225] F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock [ 38.179520][ T4225] F2FS-fs (loop0): invalid crc value [ 38.184456][ T4225] F2FS-fs (loop0): Found nat_bits in checkpoint [ 38.198659][ T4225] F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 [ 38.200647][ T4225] F2FS-fs (loop0): Mounted with checkpoint version = 753bd00b [ 38.217873][ T4225] [ 38.218520][ T4225] ====================================================== [ 38.220325][ T4225] WARNING: possible circular locking dependency detected [ 38.222076][ T4225] 6.1.45-syzkaller #0 Not tainted [ 38.223379][ T4225] ------------------------------------------------------ [ 38.225211][ T4225] syz-executor378/4225 is trying to acquire lock: [ 38.226879][ T4225] ffff0000dfbc1fe0 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_add_inline_entry+0x350/0x650 [ 38.229312][ T4225] [ 38.229312][ T4225] but task is already holding lock: [ 38.231179][ T4225] ffff0000dfbc1990 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 38.233653][ T4225] [ 38.233653][ T4225] which lock already depends on the new lock. [ 38.233653][ T4225] [ 38.236334][ T4225] [ 38.236334][ T4225] the existing dependency chain (in reverse order) is: [ 38.238685][ T4225] [ 38.238685][ T4225] -> #1 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 38.240629][ T4225] down_read+0x64/0x308 [ 38.241880][ T4225] f2fs_getxattr+0xa4/0x1198 [ 38.243181][ T4225] __f2fs_get_acl+0x6c/0x5e4 [ 38.244524][ T4225] f2fs_init_acl+0xe8/0x8e8 [ 38.245831][ T4225] f2fs_init_inode_metadata+0x8a8/0x11e8 [ 38.247453][ T4225] f2fs_add_regular_entry+0x710/0xe8c [ 38.248952][ T4225] f2fs_do_add_link+0x300/0x5a4 [ 38.250329][ T4225] f2fs_mkdir+0x2a4/0x4ec [ 38.251572][ T4225] vfs_mkdir+0x334/0x4e4 [ 38.252778][ T4225] do_mkdirat+0x20c/0x610 [ 38.254029][ T4225] __arm64_sys_mkdirat+0x90/0xa8 [ 38.255416][ T4225] invoke_syscall+0x98/0x2c0 [ 38.256703][ T4225] el0_svc_common+0x138/0x258 [ 38.258014][ T4225] do_el0_svc+0x64/0x218 [ 38.259253][ T4225] el0_svc+0x58/0x168 [ 38.260379][ T4225] el0t_64_sync_handler+0x84/0xf0 [ 38.261768][ T4225] el0t_64_sync+0x18c/0x190 [ 38.263084][ T4225] [ 38.263084][ T4225] -> #0 (&fi->i_sem){+.+.}-{3:3}: [ 38.264906][ T4225] __lock_acquire+0x3338/0x764c [ 38.266303][ T4225] lock_acquire+0x26c/0x7cc [ 38.267581][ T4225] down_write+0x5c/0x88 [ 38.268817][ T4225] f2fs_add_inline_entry+0x350/0x650 [ 38.270333][ T4225] f2fs_do_add_link+0x2c4/0x5a4 [ 38.271717][ T4225] f2fs_mkdir+0x2a4/0x4ec [ 38.272956][ T4225] vfs_mkdir+0x334/0x4e4 [ 38.274221][ T4225] do_mkdirat+0x20c/0x610 [ 38.275439][ T4225] __arm64_sys_mkdirat+0x90/0xa8 [ 38.276842][ T4225] invoke_syscall+0x98/0x2c0 [ 38.278191][ T4225] el0_svc_common+0x138/0x258 [ 38.279584][ T4225] do_el0_svc+0x64/0x218 [ 38.280850][ T4225] el0_svc+0x58/0x168 [ 38.282073][ T4225] el0t_64_sync_handler+0x84/0xf0 [ 38.283534][ T4225] el0t_64_sync+0x18c/0x190 [ 38.284827][ T4225] [ 38.284827][ T4225] other info that might help us debug this: [ 38.284827][ T4225] [ 38.287452][ T4225] Possible unsafe locking scenario: [ 38.287452][ T4225] [ 38.289359][ T4225] CPU0 CPU1 [ 38.290693][ T4225] ---- ---- [ 38.292049][ T4225] lock(&fi->i_xattr_sem); [ 38.293236][ T4225] lock(&fi->i_sem); [ 38.295006][ T4225] lock(&fi->i_xattr_sem); [ 38.296927][ T4225] lock(&fi->i_sem); [ 38.297938][ T4225] [ 38.297938][ T4225] *** DEADLOCK *** [ 38.297938][ T4225] [ 38.300028][ T4225] 4 locks held by syz-executor378/4225: [ 38.301474][ T4225] #0: ffff0000d8944460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 38.303854][ T4225] #1: ffff0000dfbc1320 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x200/0x464 [ 38.306649][ T4225] #2: ffff0000d4d8c3b0 (&sbi->cp_rwsem){++++}-{3:3}, at: f2fs_mkdir+0x1f8/0x4ec [ 38.309008][ T4225] #3: ffff0000dfbc1990 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 38.311606][ T4225] [ 38.311606][ T4225] stack backtrace: [ 38.313216][ T4225] CPU: 1 PID: 4225 Comm: syz-executor378 Not tainted 6.1.45-syzkaller #0 [ 38.315388][ T4225] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 38.317974][ T4225] Call trace: [ 38.318820][ T4225] dump_backtrace+0x1c8/0x1f4 [ 38.320075][ T4225] show_stack+0x2c/0x3c [ 38.321204][ T4225] dump_stack_lvl+0x108/0x170 [ 38.322459][ T4225] dump_stack+0x1c/0x58 [ 38.323688][ T4225] print_circular_bug+0x150/0x1b8 [ 38.325058][ T4225] check_noncircular+0x2cc/0x378 [ 38.326337][ T4225] __lock_acquire+0x3338/0x764c [ 38.327618][ T4225] lock_acquire+0x26c/0x7cc [ 38.328772][ T4225] down_write+0x5c/0x88 [ 38.329856][ T4225] f2fs_add_inline_entry+0x350/0x650 [ 38.331220][ T4225] f2fs_do_add_link+0x2c4/0x5a4 [ 38.332459][ T4225] f2fs_mkdir+0x2a4/0x4ec [ 38.333586][ T4225] vfs_mkdir+0x334/0x4e4 [ 38.334691][ T4225] do_mkdirat+0x20c/0x610 [ 38.335798][ T4225] __arm64_sys_mkdirat+0x90/0xa8 [ 38.337118][ T4225] invoke_syscall+0x98/0x2c0 [ 38.338361][ T4225] el0_svc_common+0x138/0x258 [ 38.339612][ T4225] do_el0_svc+0x64/0x218 [ 38.340704][ T4225] el0_svc+0x58/0x168 [ 38.341727][ T4225] el0t_64_sync_handler+0x84/0xf0 [ 38.343078][ T4225] el0t_64_sync+0x18c/0x190