./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor313075044 <...> Warning: Permanently added '10.128.0.2' (ED25519) to the list of known hosts. execve("./syz-executor313075044", ["./syz-executor313075044"], 0x7ffda733da70 /* 10 vars */) = 0 brk(NULL) = 0x555576f3b000 brk(0x555576f3be00) = 0x555576f3be00 arch_prctl(ARCH_SET_FS, 0x555576f3b480) = 0 set_tid_address(0x555576f3b750) = 5834 set_robust_list(0x555576f3b760, 24) = 0 rseq(0x555576f3bda0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor313075044", 4096) = 27 getrandom("\x91\x31\xae\x05\x29\xf2\xc5\x5c", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555576f3be00 brk(0x555576f5ce00) = 0x555576f5ce00 brk(0x555576f5d000) = 0x555576f5d000 mprotect(0x7fa87071c000, 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=0x7fa8706710c0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fa870679130}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7fa8706710c0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fa870679130}, NULL, 8) = 0 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa868200000 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(0x7fa868200000, 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 [ 73.030445][ T5834] loop0: detected capacity change from 0 to 32768 [ 73.072346][ T5834] ======================================================= [ 73.072346][ T5834] WARNING: The mand mount option has been deprecated and [ 73.072346][ T5834] and is ignored by this kernel. Remove the mand [ 73.072346][ T5834] option from the mount to silence this warning. [ 73.072346][ T5834] ======================================================= [ 73.120711][ T5834] JBD2: Ignoring recovery information on journal mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,dir_resv_level=00003,coherency=full,coherency=full,localflocks,coherency=full,noa"...) = 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) [ 73.150483][ T5834] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdirat(AT_FDCWD, "./file0", 000) = 0 mkdir("./file2", 0777) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 73.228905][ T5834] overlayfs: upper fs does not support tmpfile. [ 73.237757][ T5834] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 73.245203][ T5834] [ 73.247553][ T5834] ====================================================== [ 73.254568][ T5834] WARNING: possible circular locking dependency detected [ 73.261584][ T5834] 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #0 Not tainted [ 73.268682][ T5834] ------------------------------------------------------ [ 73.275700][ T5834] syz-executor313/5834 is trying to acquire lock: [ 73.282109][ T5834] ffff8880788c42c0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 73.295658][ T5834] [ 73.295658][ T5834] but task is already holding lock: [ 73.303032][ T5834] ffff88807884eab8 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 73.312546][ T5834] [ 73.312546][ T5834] which lock already depends on the new lock. [ 73.312546][ T5834] [ 73.322946][ T5834] [ 73.322946][ T5834] the existing dependency chain (in reverse order) is: [ 73.331957][ T5834] [ 73.331957][ T5834] -> #4 (&oi->ip_xattr_sem){+.+.}-{3:3}: [ 73.339788][ T5834] lock_acquire+0x1ed/0x550 [ 73.344833][ T5834] down_write+0x99/0x220 [ 73.349615][ T5834] ocfs2_xattr_set_handle+0x539/0xa10 [ 73.355518][ T5834] ocfs2_init_security_set+0xbd/0xd0 [ 73.361336][ T5834] ocfs2_mknod+0x1ccf/0x2b40 [ 73.366454][ T5834] ocfs2_mkdir+0x1ab/0x480 [ 73.371395][ T5834] vfs_mkdir+0x2f9/0x4f0 [ 73.376164][ T5834] do_mkdirat+0x264/0x3a0 [ 73.381018][ T5834] __x64_sys_mkdirat+0x87/0xa0 [ 73.386310][ T5834] do_syscall_64+0xf3/0x230 [ 73.391346][ T5834] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.397781][ T5834] [ 73.397781][ T5834] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 73.405084][ T5834] lock_acquire+0x1ed/0x550 [ 73.410113][ T5834] start_this_handle+0x1eb4/0x2110 [ 73.415751][ T5834] jbd2__journal_start+0x2da/0x5d0 [ 73.421385][ T5834] jbd2_journal_start+0x29/0x40 [ 73.426760][ T5834] ocfs2_start_trans+0x3c9/0x700 [ 73.432225][ T5834] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 73.438643][ T5834] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 73.445501][ T5834] ocfs2_mknod+0x143a/0x2b40 [ 73.450618][ T5834] ocfs2_mkdir+0x1ab/0x480 [ 73.455562][ T5834] vfs_mkdir+0x2f9/0x4f0 [ 73.460331][ T5834] do_mkdirat+0x264/0x3a0 [ 73.465204][ T5834] __x64_sys_mkdirat+0x87/0xa0 [ 73.470496][ T5834] do_syscall_64+0xf3/0x230 [ 73.475527][ T5834] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.481943][ T5834] [ 73.481943][ T5834] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 73.490465][ T5834] lock_acquire+0x1ed/0x550 [ 73.495500][ T5834] down_read+0xb1/0xa40 [ 73.500184][ T5834] ocfs2_start_trans+0x3be/0x700 [ 73.505650][ T5834] ocfs2_reserve_suballoc_bits+0x9f6/0x4eb0 [ 73.512067][ T5834] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 73.518937][ T5834] ocfs2_mknod+0x143a/0x2b40 [ 73.524052][ T5834] ocfs2_mkdir+0x1ab/0x480 [ 73.528990][ T5834] vfs_mkdir+0x2f9/0x4f0 [ 73.533760][ T5834] do_mkdirat+0x264/0x3a0 [ 73.538613][ T5834] __x64_sys_mkdirat+0x87/0xa0 [ 73.543907][ T5834] do_syscall_64+0xf3/0x230 [ 73.548948][ T5834] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.555364][ T5834] [ 73.555364][ T5834] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 73.562852][ T5834] lock_acquire+0x1ed/0x550 [ 73.567882][ T5834] ocfs2_start_trans+0x2b9/0x700 [ 73.573347][ T5834] ocfs2_mknod+0x150c/0x2b40 [ 73.578477][ T5834] ocfs2_mkdir+0x1ab/0x480 [ 73.583421][ T5834] vfs_mkdir+0x2f9/0x4f0 [ 73.588189][ T5834] do_mkdirat+0x264/0x3a0 [ 73.593045][ T5834] __x64_sys_mkdirat+0x87/0xa0 [ 73.598341][ T5834] do_syscall_64+0xf3/0x230 [ 73.603369][ T5834] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.609786][ T5834] [ 73.609786][ T5834] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 73.620317][ T5834] validate_chain+0x18ef/0x5920 [ 73.625691][ T5834] __lock_acquire+0x1384/0x2050 [ 73.631072][ T5834] lock_acquire+0x1ed/0x550 [ 73.636105][ T5834] down_write+0x99/0x220 [ 73.640875][ T5834] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 73.647555][ T5834] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 73.654409][ T5834] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 73.660575][ T5834] ocfs2_xattr_set+0xf4e/0x1930 [ 73.665959][ T5834] __vfs_setxattr+0x468/0x4a0 [ 73.671168][ T5834] __vfs_setxattr_noperm+0x12e/0x660 [ 73.676985][ T5834] vfs_setxattr+0x221/0x430 [ 73.682015][ T5834] ovl_get_workdir+0xd90/0x1920 [ 73.687397][ T5834] ovl_fill_super+0x12a8/0x3560 [ 73.693037][ T5834] get_tree_nodev+0xb7/0x140 [ 73.698158][ T5834] vfs_get_tree+0x90/0x2b0 [ 73.703101][ T5834] do_new_mount+0x2be/0xb40 [ 73.708134][ T5834] __se_sys_mount+0x2d6/0x3c0 [ 73.713350][ T5834] do_syscall_64+0xf3/0x230 [ 73.718389][ T5834] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.724812][ T5834] [ 73.724812][ T5834] other info that might help us debug this: [ 73.724812][ T5834] [ 73.735041][ T5834] Chain exists of: [ 73.735041][ T5834] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 73.735041][ T5834] [ 73.750799][ T5834] Possible unsafe locking scenario: [ 73.750799][ T5834] [ 73.758245][ T5834] CPU0 CPU1 [ 73.763632][ T5834] ---- ---- [ 73.769002][ T5834] lock(&oi->ip_xattr_sem); [ 73.773611][ T5834] lock(jbd2_handle); [ 73.780212][ T5834] lock(&oi->ip_xattr_sem); [ 73.787325][ T5834] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 73.794627][ T5834] [ 73.794627][ T5834] *** DEADLOCK *** [ 73.794627][ T5834] [ 73.802767][ T5834] 4 locks held by syz-executor313/5834: [ 73.808307][ T5834] #0: ffff888068afe0e0 (&type->s_umount_key#44/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 73.818443][ T5834] #1: ffff888069094420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 73.827613][ T5834] #2: ffff88807884ed80 (&sb->s_type->i_mutex_key#16){++++}-{3:3}, at: vfs_setxattr+0x1e1/0x430 [ 73.838094][ T5834] #3: ffff88807884eab8 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 [ 73.848310][ T5834] [ 73.848310][ T5834] stack backtrace: [ 73.854217][ T5834] CPU: 0 UID: 0 PID: 5834 Comm: syz-executor313 Not tainted 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #0 [ 73.865324][ T5834] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 73.875389][ T5834] Call Trace: [ 73.878674][ T5834] [ 73.881607][ T5834] dump_stack_lvl+0x241/0x360 [ 73.886298][ T5834] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.891526][ T5834] ? __pfx__printk+0x10/0x10 [ 73.896129][ T5834] print_circular_bug+0x13a/0x1b0 [ 73.901161][ T5834] check_noncircular+0x36a/0x4a0 [ 73.906106][ T5834] ? __pfx_check_noncircular+0x10/0x10 [ 73.911571][ T5834] ? lockdep_lock+0x123/0x2b0 [ 73.916266][ T5834] validate_chain+0x18ef/0x5920 [ 73.921138][ T5834] ? __pfx_validate_chain+0x10/0x10 [ 73.926347][ T5834] ? mark_lock+0x9a/0x360 [ 73.930684][ T5834] ? ocfs2_get_system_file_inode+0x1d4/0x7b0 [ 73.936670][ T5834] ? __pfx_lock_release+0x10/0x10 [ 73.941706][ T5834] ? mark_lock+0x9a/0x360 [ 73.946040][ T5834] __lock_acquire+0x1384/0x2050 [ 73.950918][ T5834] lock_acquire+0x1ed/0x550 [ 73.955438][ T5834] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 73.961786][ T5834] ? __pfx_lock_acquire+0x10/0x10 [ 73.966819][ T5834] ? __pfx___might_resched+0x10/0x10 [ 73.972114][ T5834] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 73.978451][ T5834] ? __pfx_validate_chain+0x10/0x10 [ 73.983653][ T5834] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 73.989657][ T5834] down_write+0x99/0x220 [ 73.993908][ T5834] ? ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 74.000242][ T5834] ? __pfx_down_write+0x10/0x10 [ 74.005111][ T5834] ocfs2_reserve_local_alloc_bits+0x132/0x2870 [ 74.011275][ T5834] ? mark_lock+0x9a/0x360 [ 74.015609][ T5834] ? __lock_acquire+0x1384/0x2050 [ 74.020661][ T5834] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 74.027281][ T5834] ? __pfx_lock_acquire+0x10/0x10 [ 74.032327][ T5834] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 74.038401][ T5834] ? __pfx_lock_release+0x10/0x10 [ 74.043440][ T5834] ? do_raw_spin_lock+0x14f/0x370 [ 74.048479][ T5834] ? do_raw_spin_unlock+0x13c/0x8b0 [ 74.053689][ T5834] ? _raw_spin_unlock+0x28/0x50 [ 74.058547][ T5834] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 74.064623][ T5834] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 74.070968][ T5834] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 74.077831][ T5834] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 74.083995][ T5834] ? ocfs2_xattr_set+0xf00/0x1930 [ 74.089036][ T5834] ocfs2_init_xattr_set_ctxt+0x420/0x900 [ 74.094776][ T5834] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 74.100944][ T5834] ? up_write+0x1a9/0x590 [ 74.105280][ T5834] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 74.111874][ T5834] ? __pfx_up_write+0x10/0x10 [ 74.116548][ T5834] ? __kmalloc_cache_noprof+0x19c/0x2c0 [ 74.122094][ T5834] ocfs2_xattr_set+0xf4e/0x1930 [ 74.126966][ T5834] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 74.132265][ T5834] ? _prb_read_valid+0xa39/0xac0 [ 74.137210][ T5834] ? mark_lock+0x9a/0x360 [ 74.141546][ T5834] ? smk_tskacc+0x300/0x370 [ 74.146057][ T5834] ? posix_xattr_acl+0xa9/0xd0 [ 74.150830][ T5834] ? evm_protect_xattr+0x4be/0xb30 [ 74.155945][ T5834] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 74.161913][ T5834] __vfs_setxattr+0x468/0x4a0 [ 74.166592][ T5834] __vfs_setxattr_noperm+0x12e/0x660 [ 74.171889][ T5834] vfs_setxattr+0x221/0x430 [ 74.176414][ T5834] ? __pfx_vfs_setxattr+0x10/0x10 [ 74.181439][ T5834] ? _raw_spin_unlock+0x28/0x50 [ 74.186284][ T5834] ? dput+0x37/0x2b0 [ 74.190180][ T5834] ovl_get_workdir+0xd90/0x1920 [ 74.195044][ T5834] ? __pfx_ovl_get_workdir+0x10/0x10 [ 74.200336][ T5834] ? ovl_inuse_trylock+0xab/0xf0 [ 74.205275][ T5834] ? do_raw_spin_lock+0x14f/0x370 [ 74.210308][ T5834] ? _raw_spin_unlock+0x28/0x50 [ 74.215165][ T5834] ? ovl_inuse_trylock+0xab/0xf0 [ 74.220109][ T5834] ovl_fill_super+0x12a8/0x3560 [ 74.224972][ T5834] ? __pfx___might_resched+0x10/0x10 [ 74.230262][ T5834] ? shrinker_register+0x118/0x230 [ 74.235392][ T5834] ? __pfx_lock_release+0x10/0x10 [ 74.240426][ T5834] ? __pfx_ovl_fill_super+0x10/0x10 [ 74.245628][ T5834] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 74.251439][ T5834] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 74.257428][ T5834] ? sget_fc+0x909/0x9c0 [ 74.261668][ T5834] ? __pfx_set_anon_super_fc+0x10/0x10 [ 74.267122][ T5834] ? __pfx_ovl_fill_super+0x10/0x10 [ 74.272347][ T5834] get_tree_nodev+0xb7/0x140 [ 74.277049][ T5834] vfs_get_tree+0x90/0x2b0 [ 74.281471][ T5834] do_new_mount+0x2be/0xb40 [ 74.285992][ T5834] ? __pfx_do_new_mount+0x10/0x10 [ 74.291032][ T5834] __se_sys_mount+0x2d6/0x3c0 [ 74.295721][ T5834] ? __pfx___se_sys_mount+0x10/0x10 [ 74.300923][ T5834] ? exc_page_fault+0x590/0x8c0 [ 74.305775][ T5834] ? __x64_sys_mount+0x20/0xc0 [ 74.310553][ T5834] do_syscall_64+0xf3/0x230 [ 74.315070][ T5834] ? clear_bhb_loop+0x35/0x90 [ 74.319744][ T5834] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.325634][ T5834] RIP: 0033:0x7fa8706a53b9 [ 74.330055][ T5834] 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 [ 74.349768][ T5834] RSP: 002b:00007ffda4428dd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 74.358190][ T5834] RAX: ffffffffffffffda RBX: 00007ffda4428de0 RCX: 00007fa8706a53b9 [ 74.366252][ T5834] RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000 [ 74.374238][ T5834] RBP: 00007ffda4428de8 R08: 0000000020000200 R09: 00007fa8706710c0 mount(NULL, "./file0", "overlay", 0, "workdir=./file0,lowerdir=.,upperdir=./file2,nfs_export=on,,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 74.382205][ T5834]