Warning: Permanently added '10.128.1.166' (ED25519) to the list of known hosts. executing program [ 36.223549][ T4216] loop0: detected capacity change from 0 to 40427 [ 36.228304][ T4216] F2FS-fs (loop0): Invalid log_blocksize (268), supports only 12 [ 36.230499][ T4216] F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock [ 36.237055][ T4216] F2FS-fs (loop0): Found nat_bits in checkpoint [ 36.251754][ T4216] F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 [ 36.253650][ T4216] F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 [ 36.258637][ T4216] [ 36.259289][ T4216] ====================================================== [ 36.261111][ T4216] WARNING: possible circular locking dependency detected [ 36.262875][ T4216] 6.1.44-syzkaller #0 Not tainted [ 36.264140][ T4216] ------------------------------------------------------ [ 36.265979][ T4216] syz-executor126/4216 is trying to acquire lock: [ 36.267614][ T4216] ffff0000df3990a8 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_getxattr+0xa4/0x1198 [ 36.270123][ T4216] [ 36.270123][ T4216] but task is already holding lock: [ 36.272042][ T4216] ffff0000df3d16f8 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_do_tmpfile+0x30/0x198 [ 36.274405][ T4216] [ 36.274405][ T4216] which lock already depends on the new lock. [ 36.274405][ T4216] [ 36.277123][ T4216] [ 36.277123][ T4216] the existing dependency chain (in reverse order) is: [ 36.279516][ T4216] [ 36.279516][ T4216] -> #1 (&fi->i_sem){+.+.}-{3:3}: [ 36.281465][ T4216] down_write+0x5c/0x88 [ 36.282669][ T4216] f2fs_add_inline_entry+0x350/0x650 [ 36.284187][ T4216] f2fs_do_add_link+0x2c4/0x5a4 [ 36.285572][ T4216] f2fs_create+0x634/0x8b4 [ 36.286842][ T4216] path_openat+0xeac/0x2548 [ 36.288208][ T4216] do_filp_open+0x1bc/0x3cc [ 36.289532][ T4216] do_sys_openat2+0x128/0x3d8 [ 36.290865][ T4216] __arm64_sys_openat+0x1f0/0x240 [ 36.292338][ T4216] invoke_syscall+0x98/0x2c0 [ 36.293663][ T4216] el0_svc_common+0x138/0x258 [ 36.294975][ T4216] do_el0_svc+0x64/0x218 [ 36.296195][ T4216] el0_svc+0x58/0x168 [ 36.297374][ T4216] el0t_64_sync_handler+0x84/0xf0 [ 36.298770][ T4216] el0t_64_sync+0x18c/0x190 [ 36.300118][ T4216] [ 36.300118][ T4216] -> #0 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 36.302157][ T4216] __lock_acquire+0x3338/0x764c [ 36.303624][ T4216] lock_acquire+0x26c/0x7cc [ 36.305011][ T4216] down_read+0x64/0x308 [ 36.306244][ T4216] f2fs_getxattr+0xa4/0x1198 [ 36.307599][ T4216] __f2fs_get_acl+0x6c/0x5e4 [ 36.308952][ T4216] f2fs_init_acl+0xe8/0x8e8 [ 36.310332][ T4216] f2fs_init_inode_metadata+0x8a8/0x11e8 [ 36.311984][ T4216] f2fs_do_tmpfile+0x44/0x198 [ 36.313435][ T4216] __f2fs_tmpfile+0x1d4/0x33c [ 36.314831][ T4216] f2fs_get_tmpfile+0x40/0x54 [ 36.316221][ T4216] __f2fs_ioctl+0x8240/0xb4b0 [ 36.317656][ T4216] f2fs_ioctl+0x130/0x1a0 [ 36.318992][ T4216] __arm64_sys_ioctl+0x14c/0x1c8 [ 36.320464][ T4216] invoke_syscall+0x98/0x2c0 [ 36.321819][ T4216] el0_svc_common+0x138/0x258 [ 36.323220][ T4216] do_el0_svc+0x64/0x218 [ 36.324490][ T4216] el0_svc+0x58/0x168 [ 36.325667][ T4216] el0t_64_sync_handler+0x84/0xf0 [ 36.327150][ T4216] el0t_64_sync+0x18c/0x190 [ 36.328475][ T4216] [ 36.328475][ T4216] other info that might help us debug this: [ 36.328475][ T4216] [ 36.331136][ T4216] Possible unsafe locking scenario: [ 36.331136][ T4216] [ 36.333060][ T4216] CPU0 CPU1 [ 36.334514][ T4216] ---- ---- [ 36.335913][ T4216] lock(&fi->i_sem); [ 36.336926][ T4216] lock(&fi->i_xattr_sem); [ 36.338765][ T4216] lock(&fi->i_sem); [ 36.340466][ T4216] lock(&fi->i_xattr_sem); [ 36.341640][ T4216] [ 36.341640][ T4216] *** DEADLOCK *** [ 36.341640][ T4216] [ 36.343783][ T4216] 5 locks held by syz-executor126/4216: [ 36.345199][ T4216] #0: ffff0000d4f6e460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 36.347704][ T4216] #1: ffff0000df3d0a38 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: __f2fs_ioctl+0x3b80/0xb4b0 [ 36.350435][ T4216] #2: ffff0000df3d1010 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: __f2fs_ioctl+0x4de4/0xb4b0 [ 36.353136][ T4216] #3: ffff0000d79283b0 (&sbi->cp_rwsem){.+.+}-{3:3}, at: __f2fs_tmpfile+0x1a4/0x33c [ 36.355611][ T4216] #4: ffff0000df3d16f8 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_do_tmpfile+0x30/0x198 [ 36.357936][ T4216] [ 36.357936][ T4216] stack backtrace: [ 36.359486][ T4216] CPU: 1 PID: 4216 Comm: syz-executor126 Not tainted 6.1.44-syzkaller #0 [ 36.361684][ T4216] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 36.364404][ T4216] Call trace: [ 36.365285][ T4216] dump_backtrace+0x1c8/0x1f4 [ 36.366543][ T4216] show_stack+0x2c/0x3c [ 36.367676][ T4216] dump_stack_lvl+0x108/0x170 [ 36.368902][ T4216] dump_stack+0x1c/0x58 [ 36.370026][ T4216] print_circular_bug+0x150/0x1b8 [ 36.371377][ T4216] check_noncircular+0x2cc/0x378 [ 36.372670][ T4216] __lock_acquire+0x3338/0x764c [ 36.374017][ T4216] lock_acquire+0x26c/0x7cc [ 36.375222][ T4216] down_read+0x64/0x308 [ 36.376304][ T4216] f2fs_getxattr+0xa4/0x1198 [ 36.377484][ T4216] __f2fs_get_acl+0x6c/0x5e4 [ 36.378683][ T4216] f2fs_init_acl+0xe8/0x8e8 [ 36.379865][ T4216] f2fs_init_inode_metadata+0x8a8/0x11e8 [ 36.381386][ T4216] f2fs_do_tmpfile+0x44/0x198 [ 36.382658][ T4216] __f2fs_tmpfile+0x1d4/0x33c [ 36.383929][ T4216] f2fs_get_tmpfile+0x40/0x54 [ 36.385173][ T4216] __f2fs_ioctl+0x8240/0xb4b0 [ 36.386393][ T4216] f2fs_ioctl+0x130/0x1a0 [ 36.387557][ T4216] __arm64_sys_ioctl+0x14c/0x1c8 [ 36.388868][ T4216] invoke_syscall+0x98/0x2c0 [ 36.390116][ T4216] el0_svc_common+0x138/0x258 [ 36.391340][ T4216] do_el0_svc+0x64/0x218 [ 36.392513][ T4216] el0_svc+0x58/0x168 [ 36.393550][ T4216] el0t_64_sync_handler+0x84/0xf0 [ 36.394898][ T4216] el0t_64_sync+0x18c/0x190