./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3068713689 <...> Warning: Permanently added '10.128.1.45' (ED25519) to the list of known hosts. execve("./syz-executor3068713689", ["./syz-executor3068713689"], 0x7fff5d524a70 /* 10 vars */) = 0 brk(NULL) = 0x55556c364000 brk(0x55556c364e00) = 0x55556c364e00 arch_prctl(ARCH_SET_FS, 0x55556c364480) = 0 set_tid_address(0x55556c364750) = 5220 set_robust_list(0x55556c364760, 24) = 0 rseq(0x55556c364da0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3068713689", 4096) = 28 getrandom("\xe7\xfe\x1c\x28\x32\xdc\x14\xec", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556c364e00 brk(0x55556c385e00) = 0x55556c385e00 brk(0x55556c386000) = 0x55556c386000 mprotect(0x7f0199d2d000, 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=0x7f0199c825c0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f0199c8a630}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f0199c825c0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f0199c8a630}, 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) = 0x7f0191800000 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(0x7f0191800000, 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 [ 63.464996][ T5220] loop0: detected capacity change from 0 to 32768 [ 63.509026][ T5220] ======================================================= [ 63.509026][ T5220] WARNING: The mand mount option has been deprecated and [ 63.509026][ T5220] and is ignored by this kernel. Remove the mand [ 63.509026][ T5220] option from the mount to silence this warning. [ 63.509026][ T5220] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,nouser_xattr,coherency=full,data=writeback,localalloc=00000000000000000001,acl,no"...) = 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) mkdir("./file0", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- mkdir("./file2", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 63.560803][ T5220] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 63.588738][ T5220] overlayfs: upper fs does not support tmpfile. [ 63.597999][ T5220] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 63.605727][ T5220] [ 63.608064][ T5220] ====================================================== [ 63.615072][ T5220] WARNING: possible circular locking dependency detected [ 63.622094][ T5220] 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Not tainted [ 63.629185][ T5220] ------------------------------------------------------ [ 63.636188][ T5220] syz-executor306/5220 is trying to acquire lock: [ 63.642587][ T5220] ffff888077775100 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x192/0x4eb0 [ 63.655886][ T5220] [ 63.655886][ T5220] but task is already holding lock: [ 63.663248][ T5220] ffff88807774dc78 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 63.672742][ T5220] [ 63.672742][ T5220] which lock already depends on the new lock. [ 63.672742][ T5220] [ 63.683132][ T5220] [ 63.683132][ T5220] the existing dependency chain (in reverse order) is: [ 63.692131][ T5220] [ 63.692131][ T5220] -> #4 (&oi->ip_xattr_sem){+.+.}-{3:3}: [ 63.699939][ T5220] lock_acquire+0x1ed/0x550 [ 63.704966][ T5220] down_write+0x99/0x220 [ 63.709734][ T5220] ocfs2_xattr_set_handle+0x539/0xa10 [ 63.715644][ T5220] ocfs2_init_security_set+0xbd/0xd0 [ 63.721447][ T5220] ocfs2_mknod+0x1ccf/0x2b40 [ 63.726553][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 63.731481][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 63.736239][ T5220] do_mkdirat+0x264/0x3a0 [ 63.741096][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 63.746199][ T5220] do_syscall_64+0xf3/0x230 [ 63.751214][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.757643][ T5220] [ 63.757643][ T5220] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 63.764933][ T5220] lock_acquire+0x1ed/0x550 [ 63.769953][ T5220] start_this_handle+0x1eb4/0x2110 [ 63.775583][ T5220] jbd2__journal_start+0x2da/0x5d0 [ 63.781209][ T5220] jbd2_journal_start+0x29/0x40 [ 63.786595][ T5220] ocfs2_start_trans+0x3c9/0x700 [ 63.792046][ T5220] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 63.798471][ T5220] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.805330][ T5220] ocfs2_mknod+0x143a/0x2b40 [ 63.810437][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 63.815367][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 63.820125][ T5220] do_mkdirat+0x264/0x3a0 [ 63.825087][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 63.830240][ T5220] do_syscall_64+0xf3/0x230 [ 63.835267][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.841696][ T5220] [ 63.841696][ T5220] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 63.850205][ T5220] lock_acquire+0x1ed/0x550 [ 63.855233][ T5220] down_read+0xb1/0xa40 [ 63.859903][ T5220] ocfs2_start_trans+0x3be/0x700 [ 63.865363][ T5220] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 63.871772][ T5220] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.878610][ T5220] ocfs2_mknod+0x143a/0x2b40 [ 63.883720][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 63.888672][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 63.893443][ T5220] do_mkdirat+0x264/0x3a0 [ 63.898298][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 63.903402][ T5220] do_syscall_64+0xf3/0x230 [ 63.908418][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.914828][ T5220] [ 63.914828][ T5220] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 63.922295][ T5220] lock_acquire+0x1ed/0x550 [ 63.927317][ T5220] ocfs2_start_trans+0x2b9/0x700 [ 63.932861][ T5220] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 63.939278][ T5220] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.946123][ T5220] ocfs2_mknod+0x143a/0x2b40 [ 63.951230][ T5220] ocfs2_mkdir+0x1ab/0x480 [ 63.956169][ T5220] vfs_mkdir+0x2f9/0x4f0 [ 63.960932][ T5220] do_mkdirat+0x264/0x3a0 [ 63.965781][ T5220] __x64_sys_mkdir+0x6c/0x80 [ 63.970887][ T5220] do_syscall_64+0xf3/0x230 [ 63.975923][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.982342][ T5220] [ 63.982342][ T5220] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 63.992850][ T5220] validate_chain+0x18ef/0x5920 [ 63.998226][ T5220] __lock_acquire+0x1384/0x2050 [ 64.003595][ T5220] lock_acquire+0x1ed/0x550 [ 64.008618][ T5220] down_write+0x99/0x220 [ 64.013380][ T5220] ocfs2_reserve_suballoc_bits+0x192/0x4eb0 [ 64.019801][ T5220] ocfs2_reserve_clusters_with_limit+0x3dd/0xb60 [ 64.026641][ T5220] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 64.032889][ T5220] ocfs2_xattr_set+0xf4e/0x1930 [ 64.038286][ T5220] __vfs_setxattr+0x468/0x4a0 [ 64.043480][ T5220] __vfs_setxattr_noperm+0x12e/0x660 [ 64.049273][ T5220] vfs_setxattr+0x221/0x430 [ 64.054298][ T5220] ovl_get_workdir+0xd90/0x1920 [ 64.059687][ T5220] ovl_fill_super+0x12a8/0x3560 [ 64.065057][ T5220] get_tree_nodev+0xb7/0x140 [ 64.070193][ T5220] vfs_get_tree+0x90/0x2b0 [ 64.075155][ T5220] do_new_mount+0x2be/0xb40 [ 64.080175][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 64.085370][ T5220] do_syscall_64+0xf3/0x230 [ 64.090395][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.096803][ T5220] [ 64.096803][ T5220] other info that might help us debug this: [ 64.096803][ T5220] [ 64.107014][ T5220] Chain exists of: [ 64.107014][ T5220] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4 --> jbd2_handle --> &oi->ip_xattr_sem [ 64.107014][ T5220] [ 64.122741][ T5220] Possible unsafe locking scenario: [ 64.122741][ T5220] [ 64.130173][ T5220] CPU0 CPU1 [ 64.135545][ T5220] ---- ---- [ 64.140896][ T5220] lock(&oi->ip_xattr_sem); [ 64.145493][ T5220] lock(jbd2_handle); [ 64.152094][ T5220] lock(&oi->ip_xattr_sem); [ 64.159209][ T5220] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4); [ 64.166501][ T5220] [ 64.166501][ T5220] *** DEADLOCK *** [ 64.166501][ T5220] [ 64.174635][ T5220] 4 locks held by syz-executor306/5220: [ 64.180167][ T5220] #0: ffff88802e4e80e0 (&type->s_umount_key#44/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 64.190281][ T5220] #1: ffff88802e012420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 64.199414][ T5220] #2: ffff88807774df40 (&sb->s_type->i_mutex_key#16){++++}-{3:3}, at: vfs_setxattr+0x1e1/0x430 [ 64.209874][ T5220] #3: ffff88807774dc78 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 64.219822][ T5220] [ 64.219822][ T5220] stack backtrace: [ 64.225712][ T5220] CPU: 0 UID: 0 PID: 5220 Comm: syz-executor306 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 [ 64.236824][ T5220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 64.246876][ T5220] Call Trace: [ 64.250157][ T5220] [ 64.253077][ T5220] dump_stack_lvl+0x241/0x360 [ 64.257755][ T5220] ? __pfx_dump_stack_lvl+0x10/0x10 [ 64.262966][ T5220] ? __pfx__printk+0x10/0x10 [ 64.267548][ T5220] print_circular_bug+0x13a/0x1b0 [ 64.272581][ T5220] check_noncircular+0x36a/0x4a0 [ 64.277511][ T5220] ? __pfx_check_noncircular+0x10/0x10 [ 64.282960][ T5220] ? lockdep_lock+0x123/0x2b0 [ 64.287646][ T5220] validate_chain+0x18ef/0x5920 [ 64.292506][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 64.297708][ T5220] ? mark_lock+0x9a/0x360 [ 64.302042][ T5220] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 64.308016][ T5220] ? __pfx_lock_release+0x10/0x10 [ 64.313039][ T5220] ? mark_lock+0x9a/0x360 [ 64.317358][ T5220] __lock_acquire+0x1384/0x2050 [ 64.322211][ T5220] lock_acquire+0x1ed/0x550 [ 64.326717][ T5220] ? ocfs2_reserve_suballoc_bits+0x192/0x4eb0 [ 64.332797][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 64.337829][ T5220] ? __pfx___might_resched+0x10/0x10 [ 64.343115][ T5220] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 64.349443][ T5220] down_write+0x99/0x220 [ 64.353709][ T5220] ? ocfs2_reserve_suballoc_bits+0x192/0x4eb0 [ 64.359773][ T5220] ? __pfx_down_write+0x10/0x10 [ 64.364623][ T5220] ocfs2_reserve_suballoc_bits+0x192/0x4eb0 [ 64.370513][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 64.375706][ T5220] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 64.381716][ T5220] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 64.388047][ T5220] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 64.393937][ T5220] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 64.400264][ T5220] ? __pfx_ocfs2_reserve_suballoc_bits+0x10/0x10 [ 64.406593][ T5220] ? mark_lock+0x9a/0x360 [ 64.410918][ T5220] ? __lock_acquire+0x1384/0x2050 [ 64.415948][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 64.420971][ T5220] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 64.427027][ T5220] ? __pfx_lock_release+0x10/0x10 [ 64.432048][ T5220] ? do_raw_spin_lock+0x14f/0x370 [ 64.437069][ T5220] ? do_raw_spin_unlock+0x13c/0x8b0 [ 64.442273][ T5220] ? _raw_spin_unlock+0x28/0x50 [ 64.447131][ T5220] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 64.453186][ T5220] ocfs2_reserve_clusters_with_limit+0x3dd/0xb60 [ 64.459535][ T5220] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 64.466391][ T5220] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 64.472552][ T5220] ? ocfs2_xattr_set+0xf00/0x1930 [ 64.477574][ T5220] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 64.483202][ T5220] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 64.489351][ T5220] ? up_write+0x1a9/0x590 [ 64.493673][ T5220] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 64.500257][ T5220] ? __pfx_up_write+0x10/0x10 [ 64.504929][ T5220] ? __kmalloc_cache_noprof+0x19c/0x2c0 [ 64.510467][ T5220] ocfs2_xattr_set+0xf4e/0x1930 [ 64.515322][ T5220] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 64.520652][ T5220] ? __schedule+0x1862/0x4b70 [ 64.525337][ T5220] ? mark_lock+0x9a/0x360 [ 64.529667][ T5220] ? smk_tskacc+0x300/0x370 [ 64.534159][ T5220] ? posix_xattr_acl+0xa9/0xd0 [ 64.538915][ T5220] ? evm_protect_xattr+0x4be/0xb30 [ 64.544022][ T5220] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 64.549999][ T5220] __vfs_setxattr+0x468/0x4a0 [ 64.554680][ T5220] __vfs_setxattr_noperm+0x12e/0x660 [ 64.559994][ T5220] vfs_setxattr+0x221/0x430 [ 64.564502][ T5220] ? __pfx_vfs_setxattr+0x10/0x10 [ 64.569537][ T5220] ? _raw_spin_unlock+0x28/0x50 [ 64.574401][ T5220] ? dput+0x37/0x2b0 [ 64.578288][ T5220] ovl_get_workdir+0xd90/0x1920 [ 64.583138][ T5220] ? __pfx_ovl_get_workdir+0x10/0x10 [ 64.588441][ T5220] ? ovl_inuse_trylock+0xab/0xf0 [ 64.593385][ T5220] ? do_raw_spin_lock+0x14f/0x370 [ 64.598411][ T5220] ? _raw_spin_unlock+0x28/0x50 [ 64.603263][ T5220] ? ovl_inuse_trylock+0xab/0xf0 [ 64.608202][ T5220] ovl_fill_super+0x12a8/0x3560 [ 64.613058][ T5220] ? __pfx___might_resched+0x10/0x10 [ 64.618352][ T5220] ? shrinker_register+0x118/0x230 [ 64.623459][ T5220] ? __pfx_lock_release+0x10/0x10 [ 64.628487][ T5220] ? __pfx_ovl_fill_super+0x10/0x10 [ 64.633681][ T5220] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 64.639483][ T5220] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 64.645467][ T5220] ? sget_fc+0x909/0x9c0 [ 64.649966][ T5220] ? __pfx_set_anon_super_fc+0x10/0x10 [ 64.655423][ T5220] ? __pfx_ovl_fill_super+0x10/0x10 [ 64.660620][ T5220] get_tree_nodev+0xb7/0x140 [ 64.665240][ T5220] vfs_get_tree+0x90/0x2b0 [ 64.669679][ T5220] do_new_mount+0x2be/0xb40 [ 64.674211][ T5220] ? __pfx_do_new_mount+0x10/0x10 [ 64.679255][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 64.683936][ T5220] ? __pfx___se_sys_mount+0x10/0x10 [ 64.689135][ T5220] ? exc_page_fault+0x590/0x8c0 [ 64.693975][ T5220] ? __x64_sys_mount+0x20/0xc0 [ 64.698735][ T5220] do_syscall_64+0xf3/0x230 [ 64.703253][ T5220] ? clear_bhb_loop+0x35/0x90 [ 64.707927][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.713913][ T5220] RIP: 0033:0x7f0199cb68b9 [ 64.718322][ T5220] 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 [ 64.737955][ T5220] RSP: 002b:00007ffca473ca58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 64.746378][ T5220] RAX: ffffffffffffffda RBX: 00007ffca473ca60 RCX: 00007f0199cb68b9 [ 64.754378][ T5220] RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000 mount(NULL, "./file0", "overlay", 0, "workdir=./file0,lowerdir=.,upperdir=./file2,,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 64.762354][ T5220] RBP: 00007ffca473ca68 R08