Warning: Permanently added '10.128.1.44' (ED25519) to the list of known hosts. executing program [ 40.384704][ T5987] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5987 'syz-executor365' [ 40.674080][ T5987] loop0: detected capacity change from 0 to 63271 [ 40.678708][ T5987] F2FS-fs (loop0): Mismatch start address, segment0(512) cp_blkaddr(605) [ 40.680874][ T5987] F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock [ 40.684511][ T5987] F2FS-fs (loop0): invalid crc value [ 40.689012][ T5987] F2FS-fs (loop0): Found nat_bits in checkpoint [ 40.702381][ T5987] F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 [ 40.704254][ T5987] F2FS-fs (loop0): Mounted with checkpoint version = 753bd00b [ 40.713803][ T5987] [ 40.714462][ T5987] ====================================================== [ 40.716227][ T5987] WARNING: possible circular locking dependency detected [ 40.717997][ T5987] 6.5.0-rc7-syzkaller-gfe4469582053 #0 Not tainted [ 40.719655][ T5987] ------------------------------------------------------ [ 40.721444][ T5987] syz-executor365/5987 is trying to acquire lock: [ 40.723109][ T5987] ffff0000dfd016d8 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_add_inline_entry+0x350/0x650 [ 40.725560][ T5987] [ 40.725560][ T5987] but task is already holding lock: [ 40.727437][ T5987] ffff0000dfd010a0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 40.729771][ T5987] [ 40.729771][ T5987] which lock already depends on the new lock. [ 40.729771][ T5987] [ 40.732414][ T5987] [ 40.732414][ T5987] the existing dependency chain (in reverse order) is: [ 40.734677][ T5987] [ 40.734677][ T5987] -> #1 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 40.736682][ T5987] down_read+0x58/0x2fc [ 40.737812][ T5987] f2fs_getxattr+0x9c/0x11b0 [ 40.739175][ T5987] __f2fs_get_acl+0x6c/0x5e4 [ 40.740471][ T5987] f2fs_init_acl+0xe8/0x8f0 [ 40.741751][ T5987] f2fs_init_inode_metadata+0x840/0x11a8 [ 40.743303][ T5987] f2fs_add_regular_entry+0x760/0xe0c [ 40.744763][ T5987] f2fs_do_add_link+0x300/0x5a4 [ 40.746151][ T5987] f2fs_mkdir+0x2a4/0x4ec [ 40.747448][ T5987] vfs_mkdir+0x240/0x3a8 [ 40.748671][ T5987] do_mkdirat+0x20c/0x610 [ 40.749941][ T5987] __arm64_sys_mkdirat+0x90/0xa8 [ 40.751303][ T5987] invoke_syscall+0x98/0x2b8 [ 40.752654][ T5987] el0_svc_common+0x130/0x23c [ 40.754099][ T5987] do_el0_svc+0x48/0x58 [ 40.755327][ T5987] el0_svc+0x58/0x16c [ 40.756482][ T5987] el0t_64_sync_handler+0x84/0xfc [ 40.757979][ T5987] el0t_64_sync+0x190/0x194 [ 40.759275][ T5987] [ 40.759275][ T5987] -> #0 (&fi->i_sem){+.+.}-{3:3}: [ 40.761060][ T5987] __lock_acquire+0x3370/0x75e8 [ 40.762497][ T5987] lock_acquire+0x23c/0x71c [ 40.763739][ T5987] down_write+0x50/0xc0 [ 40.764971][ T5987] f2fs_add_inline_entry+0x350/0x650 [ 40.766489][ T5987] f2fs_do_add_link+0x2c4/0x5a4 [ 40.767939][ T5987] f2fs_symlink+0x390/0x7b0 [ 40.769270][ T5987] vfs_symlink+0x138/0x260 [ 40.770544][ T5987] do_symlinkat+0x364/0x6b0 [ 40.771807][ T5987] __arm64_sys_symlinkat+0xa4/0xbc [ 40.773301][ T5987] invoke_syscall+0x98/0x2b8 [ 40.774594][ T5987] el0_svc_common+0x130/0x23c [ 40.775908][ T5987] do_el0_svc+0x48/0x58 [ 40.777188][ T5987] el0_svc+0x58/0x16c [ 40.778337][ T5987] el0t_64_sync_handler+0x84/0xfc [ 40.779831][ T5987] el0t_64_sync+0x190/0x194 [ 40.781110][ T5987] [ 40.781110][ T5987] other info that might help us debug this: [ 40.781110][ T5987] [ 40.783654][ T5987] Possible unsafe locking scenario: [ 40.783654][ T5987] [ 40.785588][ T5987] CPU0 CPU1 [ 40.786891][ T5987] ---- ---- [ 40.788284][ T5987] rlock(&fi->i_xattr_sem); [ 40.789485][ T5987] lock(&fi->i_sem); [ 40.791257][ T5987] lock(&fi->i_xattr_sem); [ 40.793159][ T5987] lock(&fi->i_sem); [ 40.794179][ T5987] [ 40.794179][ T5987] *** DEADLOCK *** [ 40.794179][ T5987] [ 40.796300][ T5987] 4 locks held by syz-executor365/5987: [ 40.797701][ T5987] #0: ffff0000db9fe410 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 40.800166][ T5987] #1: ffff0000dfd00a28 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x204/0x468 [ 40.802959][ T5987] #2: ffff0000dae283b0 (&sbi->cp_rwsem){++++}-{3:3}, at: f2fs_symlink+0x2dc/0x7b0 [ 40.805460][ T5987] #3: ffff0000dfd010a0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_do_add_link+0x2ac/0x5a4 [ 40.808025][ T5987] [ 40.808025][ T5987] stack backtrace: [ 40.809557][ T5987] CPU: 0 PID: 5987 Comm: syz-executor365 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0 [ 40.812085][ T5987] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 40.814662][ T5987] Call trace: [ 40.815457][ T5987] dump_backtrace+0x1b8/0x1e4 [ 40.816662][ T5987] show_stack+0x2c/0x44 [ 40.817770][ T5987] dump_stack_lvl+0xd0/0x124 [ 40.818969][ T5987] dump_stack+0x1c/0x28 [ 40.820023][ T5987] print_circular_bug+0x150/0x1b8 [ 40.821411][ T5987] check_noncircular+0x310/0x404 [ 40.822666][ T5987] __lock_acquire+0x3370/0x75e8 [ 40.823907][ T5987] lock_acquire+0x23c/0x71c [ 40.825059][ T5987] down_write+0x50/0xc0 [ 40.826134][ T5987] f2fs_add_inline_entry+0x350/0x650 [ 40.827630][ T5987] f2fs_do_add_link+0x2c4/0x5a4 [ 40.828900][ T5987] f2fs_symlink+0x390/0x7b0 [ 40.830048][ T5987] vfs_symlink+0x138/0x260 [ 40.831165][ T5987] do_symlinkat+0x364/0x6b0 [ 40.832285][ T5987] __arm64_sys_symlinkat+0xa4/0xbc [ 40.833631][ T5987] invoke_syscall+0x98/0x2b8 [ 40.834764][ T5987] el0_svc_common+0x130/0x23c [ 40.835981][ T5987] do_el0_svc+0x48/0x58 [ 40.837027][ T5987] el0_svc+0x58/0x16c [ 40.837992][ T5987] el0t_64_sync_handler+0x84/0xfc [ 40.839318][ T5987] el0t_64_sync+0x190/0x194