./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor684876396 <...> Warning: Permanently added '10.128.0.190' (ED25519) to the list of known hosts. execve("./syz-executor684876396", ["./syz-executor684876396"], 0x7ffeba6b2cb0 /* 10 vars */) = 0 brk(NULL) = 0x555580d01000 brk(0x555580d01e00) = 0x555580d01e00 arch_prctl(ARCH_SET_FS, 0x555580d01480) = 0 set_tid_address(0x555580d01750) = 5230 set_robust_list(0x555580d01760, 24) = 0 rseq(0x555580d01da0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor684876396", 4096) = 27 getrandom("\xe5\x10\x7e\x5e\xcd\x05\x1a\x25", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555580d01e00 brk(0x555580d22e00) = 0x555580d22e00 brk(0x555580d23000) = 0x555580d23000 mprotect(0x7f7e5589d000, 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=0x7f7e557f13d0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f7e557f9440}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f7e557f13d0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f7e557f9440}, 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) = 0x7f7e4d200000 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(0x7f7e4d200000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 71.186564][ T5230] loop0: detected capacity change from 0 to 32768 [ 71.226823][ T5230] (syz-executor684,5230,1):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 71.242696][ T5230] (syz-executor684,5230,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 71.268371][ T5230] JBD2: Ignoring recovery information on journal mount("/dev/loop0", "./file0", "ocfs2", MS_NOSUID|MS_NOEXEC|MS_STRICTATIME, "journal_async_commit,heartbeat=none,localflocks,inode64,localalloc=18446744073709551610,noacl,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 71.294403][ T5230] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdir("./file0", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdir("./bus", 000) = 0 [ 71.378286][ T5230] overlayfs: upper fs does not support tmpfile. [ 71.388415][ T5230] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 71.395847][ T5230] [ 71.398187][ T5230] ====================================================== [ 71.405204][ T5230] WARNING: possible circular locking dependency detected [ 71.412234][ T5230] 6.12.0-rc2-syzkaller-00058-g75b607fab38d #0 Not tainted [ 71.419341][ T5230] ------------------------------------------------------ [ 71.426366][ T5230] syz-executor684/5230 is trying to acquire lock: [ 71.432953][ T5230] ffff888076d0d100 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 71.446490][ T5230] [ 71.446490][ T5230] but task is already holding lock: [ 71.453848][ T5230] ffff888076d13ff8 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 71.463355][ T5230] [ 71.463355][ T5230] which lock already depends on the new lock. [ 71.463355][ T5230] [ 71.473757][ T5230] [ 71.473757][ T5230] the existing dependency chain (in reverse order) is: [ 71.482775][ T5230] [ 71.482775][ T5230] -> #4 (&oi->ip_xattr_sem){+.+.}-{3:3}: [ 71.490613][ T5230] lock_acquire+0x1ed/0x550 [ 71.495667][ T5230] down_write+0x99/0x220 [ 71.500473][ T5230] ocfs2_xattr_set_handle+0x539/0xa10 [ 71.506401][ T5230] ocfs2_init_security_set+0xbd/0xd0 [ 71.512219][ T5230] ocfs2_mknod+0x1ccf/0x2b40 [ 71.517344][ T5230] ocfs2_mkdir+0x1ab/0x480 [ 71.522286][ T5230] vfs_mkdir+0x2f9/0x4f0 [ 71.527072][ T5230] do_mkdirat+0x264/0x3a0 [ 71.531928][ T5230] __x64_sys_mkdir+0x6c/0x80 [ 71.537047][ T5230] do_syscall_64+0xf3/0x230 [ 71.542076][ T5230] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.548504][ T5230] [ 71.548504][ T5230] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 71.555814][ T5230] lock_acquire+0x1ed/0x550 [ 71.560849][ T5230] start_this_handle+0x1eb4/0x2110 [ 71.566497][ T5230] jbd2__journal_start+0x2da/0x5d0 [ 71.572131][ T5230] jbd2_journal_start+0x29/0x40 [ 71.577507][ T5230] ocfs2_start_trans+0x3c9/0x700 [ 71.582972][ T5230] ocfs2_modify_bh+0xed/0x4d0 [ 71.588175][ T5230] ocfs2_local_read_info+0x158f/0x19f0 [ 71.594160][ T5230] dquot_load_quota_sb+0x762/0xbb0 [ 71.599802][ T5230] dquot_load_quota_inode+0x320/0x600 [ 71.605700][ T5230] ocfs2_enable_quotas+0x169/0x450 [ 71.611342][ T5230] ocfs2_fill_super+0x4c8d/0x5750 [ 71.616984][ T5230] mount_bdev+0x20a/0x2d0 [ 71.621852][ T5230] legacy_get_tree+0xee/0x190 [ 71.627059][ T5230] vfs_get_tree+0x90/0x2b0 [ 71.632001][ T5230] do_new_mount+0x2be/0xb40 [ 71.637032][ T5230] __se_sys_mount+0x2d6/0x3c0 [ 71.642236][ T5230] do_syscall_64+0xf3/0x230 [ 71.647259][ T5230] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.653718][ T5230] [ 71.653718][ T5230] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 71.662278][ T5230] lock_acquire+0x1ed/0x550 [ 71.667330][ T5230] down_read+0xb1/0xa40 [ 71.672043][ T5230] ocfs2_start_trans+0x3be/0x700 [ 71.677511][ T5230] ocfs2_modify_bh+0xed/0x4d0 [ 71.682716][ T5230] ocfs2_local_read_info+0x158f/0x19f0 [ 71.688706][ T5230] dquot_load_quota_sb+0x762/0xbb0 [ 71.694345][ T5230] dquot_load_quota_inode+0x320/0x600 [ 71.700255][ T5230] ocfs2_enable_quotas+0x169/0x450 [ 71.705891][ T5230] ocfs2_fill_super+0x4c8d/0x5750 [ 71.711458][ T5230] mount_bdev+0x20a/0x2d0 [ 71.716347][ T5230] legacy_get_tree+0xee/0x190 [ 71.721575][ T5230] vfs_get_tree+0x90/0x2b0 [ 71.726618][ T5230] do_new_mount+0x2be/0xb40 [ 71.731668][ T5230] __se_sys_mount+0x2d6/0x3c0 [ 71.736881][ T5230] do_syscall_64+0xf3/0x230 [ 71.741915][ T5230] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.748342][ T5230] [ 71.748342][ T5230] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 71.755833][ T5230] lock_acquire+0x1ed/0x550 [ 71.760872][ T5230] ocfs2_start_trans+0x2b9/0x700 [ 71.766601][ T5230] ocfs2_mknod+0x150c/0x2b40 [ 71.771720][ T5230] ocfs2_mkdir+0x1ab/0x480 [ 71.776669][ T5230] vfs_mkdir+0x2f9/0x4f0 [ 71.781535][ T5230] do_mkdirat+0x264/0x3a0 [ 71.786398][ T5230] __x64_sys_mkdir+0x6c/0x80 [ 71.791521][ T5230] do_syscall_64+0xf3/0x230 [ 71.796898][ T5230] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.803341][ T5230] [ 71.803341][ T5230] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7){+.+.}-{3:3}: [ 71.813874][ T5230] validate_chain+0x18ef/0x5920 [ 71.819257][ T5230] __lock_acquire+0x1384/0x2050 [ 71.824640][ T5230] lock_acquire+0x1ed/0x550 [ 71.829675][ T5230] down_write+0x99/0x220 [ 71.834444][ T5230] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 71.841124][ T5230] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 71.848011][ T5230] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 71.854189][ T5230] ocfs2_xattr_set+0xf4e/0x1930 [ 71.859581][ T5230] __vfs_setxattr+0x468/0x4a0 [ 71.864802][ T5230] __vfs_setxattr_noperm+0x12e/0x660 [ 71.870622][ T5230] vfs_setxattr+0x221/0x430 [ 71.875659][ T5230] ovl_get_workdir+0xd90/0x1920 [ 71.881049][ T5230] ovl_fill_super+0x12a8/0x3560 [ 71.886433][ T5230] get_tree_nodev+0xb7/0x140 [ 71.891641][ T5230] vfs_get_tree+0x90/0x2b0 [ 71.896675][ T5230] do_new_mount+0x2be/0xb40 [ 71.901710][ T5230] __se_sys_mount+0x2d6/0x3c0 [ 71.906918][ T5230] do_syscall_64+0xf3/0x230 [ 71.911951][ T5230] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.918396][ T5230] [ 71.918396][ T5230] other info that might help us debug this: [ 71.918396][ T5230] [ 71.928646][ T5230] Chain exists of: [ 71.928646][ T5230] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7 --> jbd2_handle --> &oi->ip_xattr_sem [ 71.928646][ T5230] [ 71.944421][ T5230] Possible unsafe locking scenario: [ 71.944421][ T5230] [ 71.951876][ T5230] CPU0 CPU1 [ 71.957268][ T5230] ---- ---- [ 71.962649][ T5230] lock(&oi->ip_xattr_sem); [ 71.967280][ T5230] lock(jbd2_handle); [ 71.973904][ T5230] lock(&oi->ip_xattr_sem); [ 71.981223][ T5230] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#7); [ 71.988537][ T5230] [ 71.988537][ T5230] *** DEADLOCK *** [ 71.988537][ T5230] [ 71.996692][ T5230] 4 locks held by syz-executor684/5230: [ 72.002252][ T5230] #0: ffff88802f16e0e0 (&type->s_umount_key#44/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 72.012414][ T5230] #1: ffff88807e4d2420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 72.021615][ T5230] #2: ffff888076d142c0 (&sb->s_type->i_mutex_key#16){++++}-{3:3}, at: vfs_setxattr+0x1e1/0x430 [ 72.032109][ T5230] #3: ffff888076d13ff8 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 72.042084][ T5230] [ 72.042084][ T5230] stack backtrace: [ 72.047999][ T5230] CPU: 0 UID: 0 PID: 5230 Comm: syz-executor684 Not tainted 6.12.0-rc2-syzkaller-00058-g75b607fab38d #0 [ 72.059138][ T5230] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 72.069208][ T5230] Call Trace: [ 72.072493][ T5230] [ 72.075441][ T5230] dump_stack_lvl+0x241/0x360 [ 72.080140][ T5230] ? __pfx_dump_stack_lvl+0x10/0x10 [ 72.085380][ T5230] ? __pfx__printk+0x10/0x10 [ 72.090006][ T5230] print_circular_bug+0x13a/0x1b0 [ 72.095054][ T5230] check_noncircular+0x36a/0x4a0 [ 72.100010][ T5230] ? __pfx_check_noncircular+0x10/0x10 [ 72.105483][ T5230] ? lockdep_lock+0x123/0x2b0 [ 72.110204][ T5230] validate_chain+0x18ef/0x5920 [ 72.115078][ T5230] ? __pfx_validate_chain+0x10/0x10 [ 72.120295][ T5230] ? mark_lock+0x9a/0x360 [ 72.124725][ T5230] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 72.130727][ T5230] ? __pfx_lock_release+0x10/0x10 [ 72.135766][ T5230] ? mark_lock+0x9a/0x360 [ 72.140633][ T5230] __lock_acquire+0x1384/0x2050 [ 72.145502][ T5230] lock_acquire+0x1ed/0x550 [ 72.150026][ T5230] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 72.156367][ T5230] ? __pfx_lock_acquire+0x10/0x10 [ 72.161433][ T5230] ? __pfx___might_resched+0x10/0x10 [ 72.166736][ T5230] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 72.173076][ T5230] ? __pfx_validate_chain+0x10/0x10 [ 72.178295][ T5230] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 72.184326][ T5230] down_write+0x99/0x220 [ 72.188577][ T5230] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 72.195001][ T5230] ? __pfx_down_write+0x10/0x10 [ 72.199863][ T5230] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 72.206045][ T5230] ? mark_lock+0x9a/0x360 [ 72.210380][ T5230] ? __lock_acquire+0x1384/0x2050 [ 72.215421][ T5230] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 72.222023][ T5230] ? __pfx_lock_acquire+0x10/0x10 [ 72.227059][ T5230] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 72.233131][ T5230] ? __pfx_lock_release+0x10/0x10 [ 72.238169][ T5230] ? do_raw_spin_lock+0x14f/0x370 [ 72.243218][ T5230] ? do_raw_spin_unlock+0x13c/0x8b0 [ 72.248454][ T5230] ? _raw_spin_unlock+0x28/0x50 [ 72.253331][ T5230] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 72.259407][ T5230] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 72.265753][ T5230] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 72.272624][ T5230] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 72.278795][ T5230] ? ocfs2_xattr_set+0xf00/0x1930 [ 72.283836][ T5230] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 72.289485][ T5230] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 72.295652][ T5230] ? up_write+0x1a9/0x590 [ 72.299992][ T5230] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 72.306592][ T5230] ? __pfx_up_write+0x10/0x10 [ 72.311305][ T5230] ? __kmalloc_cache_noprof+0x19c/0x2c0 [ 72.316861][ T5230] ocfs2_xattr_set+0xf4e/0x1930 [ 72.321731][ T5230] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 72.327030][ T5230] ? _prb_read_valid+0xa39/0xac0 [ 72.331984][ T5230] ? mark_lock+0x9a/0x360 [ 72.336331][ T5230] ? smk_tskacc+0x300/0x370 [ 72.340858][ T5230] ? posix_xattr_acl+0xa9/0xd0 [ 72.345632][ T5230] ? evm_protect_xattr+0x4be/0xb30 [ 72.350754][ T5230] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 72.356754][ T5230] __vfs_setxattr+0x468/0x4a0 [ 72.361448][ T5230] __vfs_setxattr_noperm+0x12e/0x660 [ 72.366849][ T5230] vfs_setxattr+0x221/0x430 [ 72.371370][ T5230] ? __pfx_vfs_setxattr+0x10/0x10 [ 72.376411][ T5230] ? _raw_spin_unlock+0x28/0x50 [ 72.381277][ T5230] ? dput+0x37/0x2b0 [ 72.385181][ T5230] ovl_get_workdir+0xd90/0x1920 [ 72.390052][ T5230] ? __pfx_ovl_get_workdir+0x10/0x10 [ 72.395354][ T5230] ? ovl_inuse_trylock+0xab/0xf0 [ 72.400310][ T5230] ? do_raw_spin_lock+0x14f/0x370 [ 72.405354][ T5230] ? _raw_spin_unlock+0x28/0x50 [ 72.410221][ T5230] ? ovl_inuse_trylock+0xab/0xf0 [ 72.415272][ T5230] ovl_fill_super+0x12a8/0x3560 [ 72.420143][ T5230] ? __pfx___might_resched+0x10/0x10 [ 72.425456][ T5230] ? shrinker_register+0x118/0x230 [ 72.430593][ T5230] ? __pfx_lock_release+0x10/0x10 [ 72.435639][ T5230] ? __pfx_ovl_fill_super+0x10/0x10 [ 72.440851][ T5230] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 72.446690][ T5230] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 72.452684][ T5230] ? sget_fc+0x909/0x9c0 [ 72.456938][ T5230] ? __pfx_set_anon_super_fc+0x10/0x10 [ 72.462498][ T5230] ? __pfx_ovl_fill_super+0x10/0x10 [ 72.467712][ T5230] get_tree_nodev+0xb7/0x140 [ 72.472318][ T5230] vfs_get_tree+0x90/0x2b0 [ 72.476758][ T5230] do_new_mount+0x2be/0xb40 [ 72.481288][ T5230] ? __pfx_do_new_mount+0x10/0x10 [ 72.486333][ T5230] __se_sys_mount+0x2d6/0x3c0 [ 72.491028][ T5230] ? __pfx___se_sys_mount+0x10/0x10 [ 72.496248][ T5230] ? do_syscall_64+0x100/0x230 [ 72.501020][ T5230] ? __x64_sys_mount+0x20/0xc0 [ 72.505797][ T5230] do_syscall_64+0xf3/0x230 [ 72.510322][ T5230] ? clear_bhb_loop+0x35/0x90 [ 72.515007][ T5230] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.520928][ T5230] RIP: 0033:0x7f7e558256b9 [ 72.525358][ T5230] 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 [ 72.545084][ T5230] RSP: 002b:00007ffd653a50d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 72.553513][ T5230] RAX: ffffffffffffffda RBX: 00007ffd653a50e0 RCX: 00007f7e558256b9 [ 72.561493][ T5230] RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 [ 72.569497][ T5230] RBP: 00007ffd653a50e8 R08: 0000000020000040 R09: 00007f7e557f13d0 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 72.577488][ T5230] R10: 0000000000000000 R11: 0000000000000246 R12: 00000