./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2405913909 <...> Warning: Permanently added '10.128.0.96' (ED25519) to the list of known hosts. execve("./syz-executor2405913909", ["./syz-executor2405913909"], 0x7ffd14be04c0 /* 10 vars */) = 0 brk(NULL) = 0x555573c7a000 brk(0x555573c7ae00) = 0x555573c7ae00 arch_prctl(ARCH_SET_FS, 0x555573c7a480) = 0 set_tid_address(0x555573c7a750) = 5826 set_robust_list(0x555573c7a760, 24) = 0 rseq(0x555573c7ada0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2405913909", 4096) = 28 getrandom("\x5d\x70\x1f\x01\x86\xb1\x0b\x7d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555573c7ae00 brk(0x555573c9be00) = 0x555573c9be00 brk(0x555573c9c000) = 0x555573c9c000 mprotect(0x7f9ff531a000, 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 rt_sigaction(SIGRTMIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {sa_handler=0x7f9ff526efc0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f9ff5277030}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f9ff526efc0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f9ff5277030}, NULL, 8) = 0 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fece00000 write(3, "\x02\x02\x02\x02\x02\x02\x02\x02\x74\x68\x69\x73\x20\x69\x73\x20\x61\x6e\x20\x6f\x63\x66\x73\x32\x20\x76\x6f\x6c\x75\x6d\x65\x00\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02"..., 16777216) = 16777216 munmap(0x7f9fece00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file1", 0777) = 0 [ 58.007194][ T5826] loop0: detected capacity change from 0 to 32768 [ 58.050904][ T5826] ======================================================= [ 58.050904][ T5826] WARNING: The mand mount option has been deprecated and [ 58.050904][ T5826] and is ignored by this kernel. Remove the mand [ 58.050904][ T5826] option from the mount to silence this warning. [ 58.050904][ T5826] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_SYNCHRONOUS|MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME|MS_STRICTATIME, "acl,heartbeat=none,errors=remount-ro,coherency=full,preferred_slot=00000000000000000001,localflocks,"...) = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) mkdirat(AT_FDCWD, "./file0", 000) = 0 mkdir("./file2", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 58.110377][ T5826] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 58.157079][ T5826] overlayfs: upper fs does not support tmpfile. [ 58.165721][ T5826] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 58.173173][ T5826] [ 58.175506][ T5826] ====================================================== [ 58.182518][ T5826] WARNING: possible circular locking dependency detected [ 58.189528][ T5826] 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 Not tainted [ 58.196617][ T5826] ------------------------------------------------------ [ 58.203622][ T5826] syz-executor240/5826 is trying to acquire lock: [ 58.210014][ T5826] ffff888077b72640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 58.223521][ T5826] [ 58.223521][ T5826] but task is already holding lock: [ 58.230876][ T5826] ffff888077b74e38 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 58.240362][ T5826] [ 58.240362][ T5826] which lock already depends on the new lock. [ 58.240362][ T5826] [ 58.250747][ T5826] [ 58.250747][ T5826] the existing dependency chain (in reverse order) is: [ 58.259754][ T5826] [ 58.259754][ T5826] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 58.267585][ T5826] lock_acquire+0x1ed/0x550 [ 58.272613][ T5826] down_write+0x99/0x220 [ 58.277381][ T5826] ocfs2_xattr_set_handle+0x539/0xa10 [ 58.283276][ T5826] ocfs2_init_security_set+0xbd/0xd0 [ 58.289085][ T5826] ocfs2_mknod+0x1ccf/0x2b30 [ 58.294196][ T5826] ocfs2_mkdir+0x1ab/0x470 [ 58.299129][ T5826] vfs_mkdir+0x2f9/0x4f0 [ 58.303886][ T5826] do_mkdirat+0x264/0x3a0 [ 58.308728][ T5826] __x64_sys_mkdirat+0x87/0xa0 [ 58.314002][ T5826] do_syscall_64+0xf3/0x230 [ 58.319015][ T5826] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.325422][ T5826] [ 58.325422][ T5826] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 58.332708][ T5826] lock_acquire+0x1ed/0x550 [ 58.337719][ T5826] start_this_handle+0x1eb4/0x2110 [ 58.343334][ T5826] jbd2__journal_start+0x2da/0x5d0 [ 58.348946][ T5826] jbd2_journal_start+0x29/0x40 [ 58.354301][ T5826] ocfs2_start_trans+0x3c9/0x700 [ 58.359745][ T5826] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 58.366144][ T5826] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 58.372980][ T5826] ocfs2_mknod+0x143a/0x2b30 [ 58.378085][ T5826] ocfs2_mkdir+0x1ab/0x470 [ 58.383012][ T5826] vfs_mkdir+0x2f9/0x4f0 [ 58.387771][ T5826] do_mkdirat+0x264/0x3a0 [ 58.392609][ T5826] __x64_sys_mkdirat+0x87/0xa0 [ 58.397879][ T5826] do_syscall_64+0xf3/0x230 [ 58.402892][ T5826] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.409294][ T5826] [ 58.409294][ T5826] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 58.417813][ T5826] lock_acquire+0x1ed/0x550 [ 58.422838][ T5826] down_read+0xb1/0xa40 [ 58.427508][ T5826] ocfs2_start_trans+0x3be/0x700 [ 58.432956][ T5826] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 58.439364][ T5826] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 58.446203][ T5826] ocfs2_mknod+0x143a/0x2b30 [ 58.451305][ T5826] ocfs2_mkdir+0x1ab/0x470 [ 58.456265][ T5826] vfs_mkdir+0x2f9/0x4f0 [ 58.461036][ T5826] do_mkdirat+0x264/0x3a0 [ 58.465890][ T5826] __x64_sys_mkdirat+0x87/0xa0 [ 58.471174][ T5826] do_syscall_64+0xf3/0x230 [ 58.476192][ T5826] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.482600][ T5826] [ 58.482600][ T5826] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 58.490072][ T5826] lock_acquire+0x1ed/0x550 [ 58.495083][ T5826] ocfs2_start_trans+0x2b9/0x700 [ 58.500529][ T5826] ocfs2_mknod+0x150c/0x2b30 [ 58.505630][ T5826] ocfs2_mkdir+0x1ab/0x470 [ 58.510553][ T5826] vfs_mkdir+0x2f9/0x4f0 [ 58.515305][ T5826] do_mkdirat+0x264/0x3a0 [ 58.520144][ T5826] __x64_sys_mkdirat+0x87/0xa0 [ 58.525419][ T5826] do_syscall_64+0xf3/0x230 [ 58.530437][ T5826] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.536842][ T5826] [ 58.536842][ T5826] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 58.547346][ T5826] validate_chain+0x18ef/0x5920 [ 58.552710][ T5826] __lock_acquire+0x1397/0x2100 [ 58.558080][ T5826] lock_acquire+0x1ed/0x550 [ 58.563091][ T5826] down_write+0x99/0x220 [ 58.567852][ T5826] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 58.574515][ T5826] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 58.581349][ T5826] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 58.587486][ T5826] ocfs2_xattr_set+0xf4e/0x1930 [ 58.592843][ T5826] __vfs_setxattr+0x468/0x4a0 [ 58.598026][ T5826] __vfs_setxattr_noperm+0x12e/0x660 [ 58.603819][ T5826] vfs_setxattr+0x221/0x430 [ 58.608826][ T5826] ovl_get_workdir+0xd90/0x1920 [ 58.614182][ T5826] ovl_fill_super+0x12a8/0x3560 [ 58.619537][ T5826] get_tree_nodev+0xb7/0x140 [ 58.624639][ T5826] vfs_get_tree+0x90/0x2b0 [ 58.629557][ T5826] do_new_mount+0x2be/0xb40 [ 58.634567][ T5826] __se_sys_mount+0x2d6/0x3c0 [ 58.639751][ T5826] do_syscall_64+0xf3/0x230 [ 58.644770][ T5826] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.651179][ T5826] [ 58.651179][ T5826] other info that might help us debug this: [ 58.651179][ T5826] [ 58.661389][ T5826] Chain exists of: [ 58.661389][ T5826] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 58.661389][ T5826] [ 58.677111][ T5826] Possible unsafe locking scenario: [ 58.677111][ T5826] [ 58.684542][ T5826] CPU0 CPU1 [ 58.689889][ T5826] ---- ---- [ 58.695255][ T5826] lock(&oi->ip_xattr_sem); [ 58.700267][ T5826] lock(jbd2_handle); [ 58.706841][ T5826] lock(&oi->ip_xattr_sem); [ 58.713936][ T5826] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 58.721214][ T5826] [ 58.721214][ T5826] *** DEADLOCK *** [ 58.721214][ T5826] [ 58.729342][ T5826] 4 locks held by syz-executor240/5826: [ 58.734913][ T5826] #0: ffff88807d2de0e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 58.745047][ T5826] #1: ffff88807f1dc420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 58.754194][ T5826] #2: ffff888077b75100 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 58.764629][ T5826] #3: ffff888077b74e38 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 58.774540][ T5826] [ 58.774540][ T5826] stack backtrace: [ 58.780429][ T5826] CPU: 1 UID: 0 PID: 5826 Comm: syz-executor240 Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 [ 58.791535][ T5826] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 58.801612][ T5826] Call Trace: [ 58.804898][ T5826] [ 58.807831][ T5826] dump_stack_lvl+0x241/0x360 [ 58.812506][ T5826] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.817699][ T5826] ? __pfx__printk+0x10/0x10 [ 58.822292][ T5826] print_circular_bug+0x13a/0x1b0 [ 58.827313][ T5826] check_noncircular+0x36a/0x4a0 [ 58.832243][ T5826] ? __pfx_check_noncircular+0x10/0x10 [ 58.837693][ T5826] ? lockdep_lock+0x123/0x2b0 [ 58.842363][ T5826] validate_chain+0x18ef/0x5920 [ 58.847201][ T5826] ? __pfx_validate_chain+0x10/0x10 [ 58.852482][ T5826] ? __pfx_validate_chain+0x10/0x10 [ 58.857672][ T5826] ? mark_lock+0x9a/0x360 [ 58.861996][ T5826] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 58.867969][ T5826] ? __pfx_lock_release+0x10/0x10 [ 58.872991][ T5826] ? mark_lock+0x9a/0x360 [ 58.877308][ T5826] __lock_acquire+0x1397/0x2100 [ 58.882148][ T5826] lock_acquire+0x1ed/0x550 [ 58.886637][ T5826] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 58.892956][ T5826] ? __pfx_lock_acquire+0x10/0x10 [ 58.897979][ T5826] ? __pfx___might_resched+0x10/0x10 [ 58.903259][ T5826] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 58.909575][ T5826] ? __pfx_validate_chain+0x10/0x10 [ 58.914763][ T5826] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 58.920732][ T5826] down_write+0x99/0x220 [ 58.924971][ T5826] ? ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 58.931314][ T5826] ? __pfx_down_write+0x10/0x10 [ 58.936176][ T5826] ocfs2_reserve_local_alloc_bits+0x132/0x2840 [ 58.942332][ T5826] ? mark_lock+0x9a/0x360 [ 58.946655][ T5826] ? __lock_acquire+0x1397/0x2100 [ 58.951667][ T5826] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 58.958260][ T5826] ? __pfx_lock_acquire+0x10/0x10 [ 58.963278][ T5826] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 58.969333][ T5826] ? __pfx_lock_release+0x10/0x10 [ 58.974342][ T5826] ? do_raw_spin_lock+0x14f/0x370 [ 58.979360][ T5826] ? do_raw_spin_unlock+0x13c/0x8b0 [ 58.984552][ T5826] ? _raw_spin_unlock+0x28/0x50 [ 58.989390][ T5826] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 58.995450][ T5826] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 59.001768][ T5826] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 59.008620][ T5826] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 59.014764][ T5826] ? ocfs2_xattr_set+0xf00/0x1930 [ 59.019776][ T5826] ocfs2_init_xattr_set_ctxt+0x420/0x8e0 [ 59.025399][ T5826] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 59.031539][ T5826] ? up_write+0x1a9/0x590 [ 59.035856][ T5826] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 59.042431][ T5826] ? __pfx_up_write+0x10/0x10 [ 59.047100][ T5826] ? __kmalloc_cache_noprof+0x243/0x390 [ 59.052633][ T5826] ? ocfs2_xattr_set+0x4d5/0x1930 [ 59.057648][ T5826] ocfs2_xattr_set+0xf4e/0x1930 [ 59.062490][ T5826] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 59.067761][ T5826] ? _prb_read_valid+0xa39/0xac0 [ 59.072692][ T5826] ? mark_lock+0x9a/0x360 [ 59.077022][ T5826] ? smk_tskacc+0x300/0x370 [ 59.081522][ T5826] ? posix_xattr_acl+0xa9/0xd0 [ 59.086276][ T5826] ? evm_protect_xattr+0x4be/0xb30 [ 59.091376][ T5826] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 59.097346][ T5826] __vfs_setxattr+0x468/0x4a0 [ 59.102016][ T5826] __vfs_setxattr_noperm+0x12e/0x660 [ 59.107314][ T5826] vfs_setxattr+0x221/0x430 [ 59.111804][ T5826] ? __pfx_vfs_setxattr+0x10/0x10 [ 59.116813][ T5826] ? _raw_spin_unlock+0x28/0x50 [ 59.121654][ T5826] ? dput+0x37/0x2b0 [ 59.125536][ T5826] ovl_get_workdir+0xd90/0x1920 [ 59.130379][ T5826] ? __pfx_ovl_get_workdir+0x10/0x10 [ 59.135653][ T5826] ? ovl_inuse_trylock+0xab/0xf0 [ 59.140573][ T5826] ? do_raw_spin_lock+0x14f/0x370 [ 59.145594][ T5826] ? _raw_spin_unlock+0x28/0x50 [ 59.150433][ T5826] ? ovl_inuse_trylock+0xab/0xf0 [ 59.155355][ T5826] ovl_fill_super+0x12a8/0x3560 [ 59.160193][ T5826] ? __pfx___mutex_trylock_common+0x10/0x10 [ 59.166079][ T5826] ? shrinker_register+0x118/0x230 [ 59.171181][ T5826] ? __pfx_lock_release+0x10/0x10 [ 59.176196][ T5826] ? __pfx_ovl_fill_super+0x10/0x10 [ 59.181381][ T5826] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 59.187174][ T5826] ? __pfx___mutex_lock+0x10/0x10 [ 59.192188][ T5826] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 59.198163][ T5826] ? sget_fc+0x909/0x9c0 [ 59.202394][ T5826] ? __pfx_set_anon_super_fc+0x10/0x10 [ 59.207841][ T5826] ? __pfx_ovl_fill_super+0x10/0x10 [ 59.213025][ T5826] get_tree_nodev+0xb7/0x140 [ 59.217605][ T5826] vfs_get_tree+0x90/0x2b0 [ 59.222009][ T5826] do_new_mount+0x2be/0xb40 [ 59.226505][ T5826] ? __pfx_do_new_mount+0x10/0x10 [ 59.231517][ T5826] __se_sys_mount+0x2d6/0x3c0 [ 59.236181][ T5826] ? __pfx___se_sys_mount+0x10/0x10 [ 59.241366][ T5826] ? exc_page_fault+0x590/0x8b0 [ 59.246210][ T5826] ? __x64_sys_mount+0x20/0xc0 [ 59.250959][ T5826] do_syscall_64+0xf3/0x230 [ 59.255451][ T5826] ? clear_bhb_loop+0x35/0x90 [ 59.260116][ T5826] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.265999][ T5826] RIP: 0033:0x7f9ff52a3039 [ 59.270412][ T5826] 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 [ 59.290002][ T5826] RSP: 002b:00007ffda09ab128 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 59.298401][ T5826] RAX: ffffffffffffffda RBX: 00007ffda09ab130 RCX: 00007f9ff52a3039 mount(NULL, "./file0", "overlay", 0, "workdir=./file0,lowerdir=.,upperdir=./file2,,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 59.306360][ T5826] RDX: 0000000020000000 RSI: 0000000020000080 RD