./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor693817744 <...> Warning: Permanently added '10.128.1.53' (ED25519) to the list of known hosts. execve("./syz-executor693817744", ["./syz-executor693817744"], 0x7ffebee89b90 /* 10 vars */) = 0 brk(NULL) = 0x555555a06000 brk(0x555555a06d00) = 0x555555a06d00 arch_prctl(ARCH_SET_FS, 0x555555a06380) = 0 set_tid_address(0x555555a06650) = 5015 set_robust_list(0x555555a06660, 24) = 0 rseq(0x555555a06ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor693817744", 4096) = 27 getrandom("\x04\x68\x6c\xdf\xc4\x2c\xd8\xc7", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555a06d00 brk(0x555555a27d00) = 0x555555a27d00 brk(0x555555a28000) = 0x555555a28000 mprotect(0x7fb92839a000, 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) = 0x7fb91fee5000 [ 55.624021][ T5015] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5015 'syz-executor693' 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"..., 20699119) = 20699119 munmap(0x7fb91fee5000, 20699119) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 55.799886][ T5015] loop0: detected capacity change from 0 to 40427 [ 55.816160][ T5015] F2FS-fs (loop0): Found nat_bits in checkpoint mount("/dev/loop0", "./file0", "f2fs", 0, "nolazytime,data_flush,noinline_xattr,jqfmt=vfsv1,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 mkdir("./file1", 000) = 0 mkdirat(AT_FDCWD, "./file0", 000) = 0 mkdirat(AT_FDCWD, "./bus", 000) = 0 [ 55.843203][ T5015] F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 [ 55.867378][ T5015] [ 55.869749][ T5015] ====================================================== [ 55.876775][ T5015] WARNING: possible circular locking dependency detected [ 55.883805][ T5015] 6.5.0-rc3-syzkaller-00275-gffabf7c73176 #0 Not tainted [ 55.890826][ T5015] ------------------------------------------------------ [ 55.897825][ T5015] syz-executor693/5015 is trying to acquire lock: [ 55.904216][ T5015] ffff888073d33160 (&fi->i_sem){+.+.}-{3:3}, at: f2fs_add_inline_entry+0x3a8/0x760 [ 55.913523][ T5015] [ 55.913523][ T5015] but task is already holding lock: [ 55.920864][ T5015] ffff888073d31978 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_add_dentry+0x9f/0x1e0 [ 55.930086][ T5015] [ 55.930086][ T5015] which lock already depends on the new lock. [ 55.930086][ T5015] [ 55.940487][ T5015] [ 55.940487][ T5015] the existing dependency chain (in reverse order) is: [ 55.949488][ T5015] [ 55.949488][ T5015] -> #1 (&fi->i_xattr_sem){.+.+}-{3:3}: [ 55.957206][ T5015] down_read+0x47/0x2f0 [ 55.961916][ T5015] f2fs_getxattr+0xb8/0x1460 [ 55.967019][ T5015] __f2fs_get_acl+0x52/0x8e0 [ 55.972289][ T5015] f2fs_init_acl+0xd7/0x9a0 [ 55.977386][ T5015] f2fs_init_inode_metadata+0x824/0x1190 [ 55.983520][ T5015] f2fs_add_regular_entry+0x904/0xe30 [ 55.989479][ T5015] f2fs_add_dentry+0xf7/0x1e0 [ 55.994660][ T5015] f2fs_do_add_link+0x21e/0x340 [ 56.000046][ T5015] f2fs_mkdir+0x2f5/0x530 [ 56.004881][ T5015] vfs_mkdir+0x29d/0x450 [ 56.009646][ T5015] do_mkdirat+0x264/0x520 [ 56.014478][ T5015] __x64_sys_mkdir+0x6e/0x80 [ 56.019743][ T5015] do_syscall_64+0x41/0xc0 [ 56.024659][ T5015] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.031057][ T5015] [ 56.031057][ T5015] -> #0 (&fi->i_sem){+.+.}-{3:3}: [ 56.038271][ T5015] __lock_acquire+0x39ff/0x7f70 [ 56.043712][ T5015] lock_acquire+0x1e3/0x520 [ 56.048715][ T5015] down_write+0x3a/0x50 [ 56.053369][ T5015] f2fs_add_inline_entry+0x3a8/0x760 [ 56.059154][ T5015] f2fs_add_dentry+0xba/0x1e0 [ 56.064328][ T5015] f2fs_do_add_link+0x21e/0x340 [ 56.069729][ T5015] f2fs_mkdir+0x2f5/0x530 [ 56.074560][ T5015] vfs_mkdir+0x29d/0x450 [ 56.079310][ T5015] ovl_mkdir_real+0xd3/0x2d0 [ 56.084398][ T5015] ovl_workdir_create+0x451/0x970 [ 56.089927][ T5015] ovl_get_workdir+0x2f4/0x17f0 [ 56.095277][ T5015] ovl_fill_super+0x21af/0x3660 [ 56.100710][ T5015] get_tree_nodev+0xb3/0x160 [ 56.105799][ T5015] vfs_get_tree+0x8c/0x270 [ 56.110712][ T5015] do_new_mount+0x28f/0xae0 [ 56.115714][ T5015] __se_sys_mount+0x2d9/0x3c0 [ 56.120891][ T5015] do_syscall_64+0x41/0xc0 [ 56.125815][ T5015] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.132231][ T5015] [ 56.132231][ T5015] other info that might help us debug this: [ 56.132231][ T5015] [ 56.142621][ T5015] Possible unsafe locking scenario: [ 56.142621][ T5015] [ 56.150074][ T5015] CPU0 CPU1 [ 56.155418][ T5015] ---- ---- [ 56.160782][ T5015] rlock(&fi->i_xattr_sem); [ 56.165700][ T5015] lock(&fi->i_sem); [ 56.172185][ T5015] lock(&fi->i_xattr_sem); [ 56.179196][ T5015] lock(&fi->i_sem); [ 56.183258][ T5015] [ 56.183258][ T5015] *** DEADLOCK *** [ 56.183258][ T5015] [ 56.191389][ T5015] 5 locks held by syz-executor693/5015: [ 56.196920][ T5015] #0: ffff888019ac00e0 (&type->s_umount_key#43/1){+.+.}-{3:3}, at: alloc_super+0x217/0x920 [ 56.207012][ T5015] #1: ffff888079b2c410 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 56.216302][ T5015] #2: ffff888073d31300 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: ovl_workdir_create+0x160/0x970 [ 56.227164][ T5015] #3: ffff8880208d43b0 (&sbi->cp_rwsem){.+.+}-{3:3}, at: f2fs_mkdir+0x225/0x530 [ 56.236280][ T5015] #4: ffff888073d31978 (&fi->i_xattr_sem){.+.+}-{3:3}, at: f2fs_add_dentry+0x9f/0x1e0 [ 56.245912][ T5015] [ 56.245912][ T5015] stack backtrace: [ 56.251788][ T5015] CPU: 1 PID: 5015 Comm: syz-executor693 Not tainted 6.5.0-rc3-syzkaller-00275-gffabf7c73176 #0 [ 56.262185][ T5015] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 56.272401][ T5015] Call Trace: [ 56.275665][ T5015] [ 56.278576][ T5015] dump_stack_lvl+0x1e7/0x2d0 [ 56.283238][ T5015] ? nf_tcp_handle_invalid+0x650/0x650 [ 56.288683][ T5015] ? print_circular_bug+0x12b/0x1a0 [ 56.293865][ T5015] check_noncircular+0x375/0x4a0 [ 56.298787][ T5015] ? __kernel_text_address+0xd/0x40 [ 56.303969][ T5015] ? print_deadlock_bug+0x600/0x600 [ 56.309150][ T5015] ? lockdep_lock+0x123/0x2b0 [ 56.313840][ T5015] ? mark_lock+0x9a/0x340 [ 56.318154][ T5015] ? _find_first_zero_bit+0xd4/0x100 [ 56.323453][ T5015] __lock_acquire+0x39ff/0x7f70 [ 56.328297][ T5015] ? verify_lock_unused+0x140/0x140 [ 56.333764][ T5015] ? rcu_lock_release+0x5/0x30 [ 56.338515][ T5015] ? f2fs_inode_chksum_verify+0xd9/0x360 [ 56.344134][ T5015] lock_acquire+0x1e3/0x520 [ 56.348619][ T5015] ? f2fs_add_inline_entry+0x3a8/0x760 [ 56.354151][ T5015] ? read_lock_is_recursive+0x20/0x20 [ 56.359506][ T5015] ? __might_sleep+0xc0/0xc0 [ 56.364087][ T5015] ? pagecache_get_page+0xeb/0x220 [ 56.369181][ T5015] ? f2fs_grab_cache_page+0x38/0x360 [ 56.374463][ T5015] ? _find_next_zero_bit+0x8c/0x140 [ 56.379667][ T5015] ? _find_next_bit+0xed/0x130 [ 56.384439][ T5015] down_write+0x3a/0x50 [ 56.388596][ T5015] ? f2fs_add_inline_entry+0x3a8/0x760 [ 56.394056][ T5015] f2fs_add_inline_entry+0x3a8/0x760 [ 56.399334][ T5015] ? f2fs_setup_filename+0x145/0x360 [ 56.404602][ T5015] ? do_convert_inline_dir+0x1cb0/0x1cb0 [ 56.410320][ T5015] ? down_read+0x1b5/0x2f0 [ 56.414740][ T5015] f2fs_add_dentry+0xba/0x1e0 [ 56.419407][ T5015] f2fs_do_add_link+0x21e/0x340 [ 56.424245][ T5015] ? __might_sleep+0xc0/0xc0 [ 56.428825][ T5015] ? f2fs_add_dentry+0x1e0/0x1e0 [ 56.433748][ T5015] ? f2fs_get_link+0x110/0x110 [ 56.438492][ T5015] ? down_read+0x1b5/0x2f0 [ 56.442889][ T5015] f2fs_mkdir+0x2f5/0x530 [ 56.447202][ T5015] vfs_mkdir+0x29d/0x450 [ 56.451423][ T5015] ? lookup_one+0x1a9/0x2f0 [ 56.455923][ T5015] ovl_mkdir_real+0xd3/0x2d0 [ 56.460492][ T5015] ovl_workdir_create+0x451/0x970 [ 56.465522][ T5015] ? ovl_statfs+0x1c0/0x1c0 [ 56.470034][ T5015] ? rcu_read_lock_any_held+0xb7/0x160 [ 56.475495][ T5015] ? __mnt_want_write+0x22d/0x2b0 [ 56.480522][ T5015] ovl_get_workdir+0x2f4/0x17f0 [ 56.485364][ T5015] ? ovl_fill_super+0x3660/0x3660 [ 56.490804][ T5015] ? ovl_inuse_trylock+0xbc/0xd0 [ 56.495837][ T5015] ? do_raw_spin_lock+0x14d/0x3a0 [ 56.500844][ T5015] ? __lock_acquire+0x7f70/0x7f70 [ 56.505849][ T5015] ? do_raw_spin_unlock+0x13b/0x8b0 [ 56.511029][ T5015] ? rcu_is_watching+0x15/0xb0 [ 56.515863][ T5015] ? _raw_spin_unlock+0x28/0x40 [ 56.520694][ T5015] ? ovl_inuse_trylock+0xbc/0xd0 [ 56.525631][ T5015] ovl_fill_super+0x21af/0x3660 [ 56.530470][ T5015] ? sget_fc+0x5c2/0x630 [ 56.534695][ T5015] ? virtio_fs_zero_page_range+0x190/0x190 [ 56.540501][ T5015] ? read_lock_is_recursive+0x20/0x20 [ 56.545877][ T5015] ? up_write+0x1a9/0x580 [ 56.550196][ T5015] ? __lock_acquire+0x7f70/0x7f70 [ 56.555234][ T5015] ? kill_litter_super+0xa0/0xa0 [ 56.560298][ T5015] ? virtio_fs_zero_page_range+0x190/0x190 [ 56.566264][ T5015] get_tree_nodev+0xb3/0x160 [ 56.570850][ T5015] vfs_get_tree+0x8c/0x270 [ 56.575266][ T5015] do_new_mount+0x28f/0xae0 [ 56.579854][ T5015] ? do_move_mount_old+0x170/0x170 [ 56.584960][ T5015] ? user_path_at_empty+0x12f/0x180 [ 56.590140][ T5015] __se_sys_mount+0x2d9/0x3c0 [ 56.594805][ T5015] ? __x64_sys_mount+0xc0/0xc0 [ 56.599555][ T5015] ? syscall_enter_from_user_mode+0x32/0x230 [ 56.605533][ T5015] ? __x64_sys_mount+0x20/0xc0 [ 56.610289][ T5015] do_syscall_64+0x41/0xc0 [ 56.614764][ T5015] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.620667][ T5015] RIP: 0033:0x7fb928322739 [ 56.625069][ T5015] 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 mount(NULL, "./bus", "overlay", 0, "workdir=./file1,lowerdir=./file0,upperdir=./bus,index=on") = 0 exit_group(0) = ? +++ exited with 0 +++ [ 56.644749][ T5015]