./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2746159785 <...> Warning: Permanently added '10.128.1.111' (ED25519) to the list of known hosts. execve("./syz-executor2746159785", ["./syz-executor2746159785"], 0x7ffd3cdd3770 /* 10 vars */) = 0 brk(NULL) = 0x55555741f000 brk(0x55555741fd00) = 0x55555741fd00 arch_prctl(ARCH_SET_FS, 0x55555741f380) = 0 set_tid_address(0x55555741f650) = 5019 set_robust_list(0x55555741f660, 24) = 0 rseq(0x55555741fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2746159785", 4096) = 28 getrandom("\x39\xc8\xec\x1e\x6d\xdd\x67\x12", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555741fd00 brk(0x555557440d00) = 0x555557440d00 brk(0x555557441000) = 0x555557441000 mprotect(0x7f7fecc31000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7fe4779000 [ 46.826535][ T5019] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5019 'syz-executor274' write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 32394836) = 32394836 munmap(0x7f7fe4779000, 32394836) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./mnt", 0777) = 0 [ 47.033705][ T5019] loop0: detected capacity change from 0 to 63271 [ 47.044664][ T5019] F2FS-fs (loop0): Mismatch start address, segment0(512) cp_blkaddr(605) [ 47.053266][ T5019] F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock [ 47.063594][ T5019] F2FS-fs (loop0): invalid crc value [ 47.071621][ T5019] F2FS-fs (loop0): Found nat_bits in checkpoint mount("/dev/loop0", "./mnt", "f2fs", MS_SYNCHRONOUS, "") = 0 openat(AT_FDCWD, "./mnt", O_RDONLY|O_DIRECTORY) = 3 chdir("./mnt") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, ".", O_RDONLY) = 4 mkdirat(4, "./bus", 000) = 0 [ 47.092710][ T5019] F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 [ 47.099808][ T5019] F2FS-fs (loop0): Mounted with checkpoint version = 753bd00b [ 47.120403][ T5019] [ 47.122751][ T5019] ====================================================== [ 47.129775][ T5019] WARNING: possible circular locking dependency detected [ 47.136784][ T5019] 6.5.0-syzkaller #0 Not tainted [ 47.141692][ T5019] ------------------------------------------------------ [ 47.148684][ T5019] syz-executor274/5019 is trying to acquire lock: [ 47.155066][ T5019] ffff8880783596d8 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_add_inline_entry+0x300/0x6f0 [ 47.164360][ T5019] [ 47.164360][ T5019] but task is already holding lock: [ 47.171704][ T5019] ffff8880783590a0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_add_dentry+0x92/0x230 [ 47.180910][ T5019] [ 47.180910][ T5019] which lock already depends on the new lock. [ 47.180910][ T5019] [ 47.191289][ T5019] [ 47.191289][ T5019] the existing dependency chain (in reverse order) is: [ 47.200285][ T5019] [ 47.200285][ T5019] -> #1 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 47.208002][ T5019] down_read+0x9c/0x470 [ 47.212679][ T5019] f2fs_getxattr+0xb1e/0x12c0 [ 47.217886][ T5019] __f2fs_get_acl+0x5a/0x900 [ 47.222983][ T5019] f2fs_init_acl+0x15c/0xb30 [ 47.228080][ T5019] f2fs_init_inode_metadata+0x159/0x1290 [ 47.234221][ T5019] f2fs_add_regular_entry+0x79e/0xb90 [ 47.240109][ T5019] f2fs_add_dentry+0x1de/0x230 [ 47.245382][ T5019] f2fs_do_add_link+0x190/0x280 [ 47.250734][ T5019] f2fs_mkdir+0x377/0x620 [ 47.255570][ T5019] vfs_mkdir+0x532/0x7e0 [ 47.260473][ T5019] do_mkdirat+0x2a9/0x330 [ 47.265310][ T5019] __x64_sys_mkdirat+0x115/0x170 [ 47.270755][ T5019] do_syscall_64+0x38/0xb0 [ 47.275674][ T5019] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.282072][ T5019] [ 47.282072][ T5019] -> #0 (&fi->i_sem){+.+.}-{3:3}: [ 47.289265][ T5019] __lock_acquire+0x2e3d/0x5de0 [ 47.294625][ T5019] lock_acquire+0x1ae/0x510 [ 47.299647][ T5019] down_write+0x93/0x200 [ 47.304396][ T5019] f2fs_add_inline_entry+0x300/0x6f0 [ 47.310204][ T5019] f2fs_add_dentry+0xa6/0x230 [ 47.315386][ T5019] f2fs_do_add_link+0x190/0x280 [ 47.320740][ T5019] f2fs_mkdir+0x377/0x620 [ 47.325575][ T5019] vfs_mkdir+0x532/0x7e0 [ 47.330323][ T5019] do_mkdirat+0x2a9/0x330 [ 47.335160][ T5019] __x64_sys_mkdirat+0x115/0x170 [ 47.340602][ T5019] do_syscall_64+0x38/0xb0 [ 47.345539][ T5019] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.351938][ T5019] [ 47.351938][ T5019] other info that might help us debug this: [ 47.351938][ T5019] [ 47.362140][ T5019] Possible unsafe locking scenario: [ 47.362140][ T5019] [ 47.369570][ T5019] CPU0 CPU1 [ 47.374916][ T5019] ---- ---- [ 47.380284][ T5019] rlock(&fi->i_xattr_sem); [ 47.384857][ T5019] lock(&fi->i_sem); [ 47.391340][ T5019] lock(&fi->i_xattr_sem); [ 47.398345][ T5019] lock(&fi->i_sem); [ 47.402307][ T5019] [ 47.402307][ T5019] *** DEADLOCK *** [ 47.402307][ T5019] [ 47.410449][ T5019] 4 locks held by syz-executor274/5019: [ 47.415975][ T5019] #0: ffff88807d52c410 (sb_writers#9){.+.+}-{0:0}, at: filename_create+0x10d/0x530 [ 47.425367][ T5019] #1: ffff888078358a28 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x1c2/0x530 [ 47.435976][ T5019] #2: ffff88802a0d83b0 (&sbi->cp_rwsem){++++}-{3:3}, at: f2fs_mkdir+0x293/0x620 [ 47.445105][ T5019] #3: ffff8880783590a0 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_add_dentry+0x92/0x230 [ 47.454759][ T5019] [ 47.454759][ T5019] stack backtrace: [ 47.460625][ T5019] CPU: 0 PID: 5019 Comm: syz-executor274 Not tainted 6.5.0-syzkaller #0 [ 47.468933][ T5019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 47.478972][ T5019] Call Trace: [ 47.482236][ T5019] [ 47.485151][ T5019] dump_stack_lvl+0xd9/0x1b0 [ 47.489731][ T5019] check_noncircular+0x311/0x3f0 [ 47.494660][ T5019] ? print_circular_bug+0x750/0x750 [ 47.499848][ T5019] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 47.505825][ T5019] __lock_acquire+0x2e3d/0x5de0 [ 47.510668][ T5019] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 47.516648][ T5019] lock_acquire+0x1ae/0x510 [ 47.521154][ T5019] ? f2fs_add_inline_entry+0x300/0x6f0 [ 47.526602][ T5019] ? lock_sync+0x190/0x190 [ 47.531007][ T5019] ? __filemap_get_folio+0x1e7/0x990 [ 47.536295][ T5019] ? preempt_count_sub+0x150/0x150 [ 47.541407][ T5019] down_write+0x93/0x200 [ 47.545639][ T5019] ? f2fs_add_inline_entry+0x300/0x6f0 [ 47.551089][ T5019] ? down_write_killable_nested+0x250/0x250 [ 47.556981][ T5019] ? f2fs_room_for_filename+0xa6/0xc0 [ 47.562364][ T5019] f2fs_add_inline_entry+0x300/0x6f0 [ 47.567640][ T5019] ? f2fs_try_convert_inline_dir+0x3d0/0x3d0 [ 47.573612][ T5019] f2fs_add_dentry+0xa6/0x230 [ 47.578294][ T5019] f2fs_do_add_link+0x190/0x280 [ 47.583130][ T5019] ? f2fs_add_dentry+0x230/0x230 [ 47.588054][ T5019] ? f2fs_mkdir+0x11e/0x620 [ 47.592544][ T5019] ? f2fs_dquot_initialize+0x117/0x2f0 [ 47.597989][ T5019] f2fs_mkdir+0x377/0x620 [ 47.602306][ T5019] ? bpf_lsm_inode_mkdir+0x9/0x10 [ 47.607325][ T5019] ? security_inode_mkdir+0xdd/0x110 [ 47.612603][ T5019] vfs_mkdir+0x532/0x7e0 [ 47.616837][ T5019] do_mkdirat+0x2a9/0x330 [ 47.621163][ T5019] ? __ia32_sys_mknod+0xb0/0xb0 [ 47.626007][ T5019] ? getname_flags.part.0+0x1d5/0x4d0 [ 47.631363][ T5019] __x64_sys_mkdirat+0x115/0x170 [ 47.636287][ T5019] do_syscall_64+0x38/0xb0 [ 47.640692][ T5019] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.646574][ T5019] RIP: 0033:0x7f7fecbb6639 [ 47.651061][ T5019] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 47.670655][ T5019] RSP: 002b:00007ffeee00a718 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 [ 47.679056][ T5019] RAX: ffffffffffffffda RBX: 00007ffeee00a8e8 RCX: 00007f7fecbb6639 [ 47.687015][ T5019] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004 mkdirat(4, "./bus/file0", 000) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 47.