./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor827488078 <...> Warning: Permanently added '10.128.0.119' (ED25519) to the list of known hosts. execve("./syz-executor827488078", ["./syz-executor827488078"], 0x7ffc3c179de0 /* 10 vars */) = 0 brk(NULL) = 0x55556c3d7000 brk(0x55556c3d7d00) = 0x55556c3d7d00 arch_prctl(ARCH_SET_FS, 0x55556c3d7380) = 0 set_tid_address(0x55556c3d7650) = 5819 set_robust_list(0x55556c3d7660, 24) = 0 rseq(0x55556c3d7ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor827488078", 4096) = 27 getrandom("\x19\x72\x0a\x91\x51\x6c\x92\xd8", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556c3d7d00 brk(0x55556c3f8d00) = 0x55556c3f8d00 brk(0x55556c3f9000) = 0x55556c3f9000 mprotect(0x7ff2d09d9000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 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) = 0x7ff2c8400000 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(0x7ff2c8400000, 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.574659][ T5819] loop0: detected capacity change from 0 to 32768 [ 73.610089][ T5819] ======================================================= [ 73.610089][ T5819] WARNING: The mand mount option has been deprecated and [ 73.610089][ T5819] and is ignored by this kernel. Remove the mand [ 73.610089][ T5819] option from the mount to silence this warning. [ 73.610089][ T5819] ======================================================= 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) mkdirat(AT_FDCWD, "./file0", 000) = 0 [ 73.665156][ T5819] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdir("./bus", 000) = 0 [ 73.745940][ T5819] overlayfs: upper fs does not support tmpfile. [ 73.755274][ T5819] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 73.763372][ T5819] [ 73.765764][ T5819] ====================================================== [ 73.772987][ T5819] WARNING: possible circular locking dependency detected [ 73.780296][ T5819] 6.14.0-syzkaller-03576-g1e1ba8d23dae #0 Not tainted [ 73.787855][ T5819] ------------------------------------------------------ [ 73.796591][ T5819] syz-executor827/5819 is trying to acquire lock: [ 73.803718][ T5819] ffff8880749a5100 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{4:4}, at: ocfs2_reserve_suballoc_bits+0x18d/0x4f30 [ 73.817538][ T5819] [ 73.817538][ T5819] but task is already holding lock: [ 73.825110][ T5819] ffff8880749206f8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x635/0x1940 [ 73.834718][ T5819] [ 73.834718][ T5819] which lock already depends on the new lock. [ 73.834718][ T5819] [ 73.845159][ T5819] [ 73.845159][ T5819] the existing dependency chain (in reverse order) is: [ 73.854887][ T5819] [ 73.854887][ T5819] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 73.862906][ T5819] lock_acquire+0x116/0x2f0 [ 73.867940][ T5819] down_write+0x9c/0x220 [ 73.873352][ T5819] ocfs2_xattr_set_handle+0x53b/0xa20 [ 73.879367][ T5819] ocfs2_init_security_set+0xbd/0xd0 [ 73.885288][ T5819] ocfs2_mknod+0x1cd3/0x2b30 [ 73.890430][ T5819] ocfs2_mkdir+0x19c/0x470 [ 73.895380][ T5819] vfs_mkdir+0x2f9/0x500 [ 73.900170][ T5819] do_mkdirat+0x273/0x3f0 [ 73.905129][ T5819] __x64_sys_mkdirat+0x87/0xa0 [ 73.910542][ T5819] do_syscall_64+0xf3/0x230 [ 73.915921][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.922397][ T5819] [ 73.922397][ T5819] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 73.929832][ T5819] lock_acquire+0x116/0x2f0 [ 73.934927][ T5819] start_this_handle+0x1f30/0x21e0 [ 73.940705][ T5819] jbd2__journal_start+0x2da/0x5d0 [ 73.946389][ T5819] jbd2_journal_start+0x29/0x40 [ 73.951785][ T5819] ocfs2_start_trans+0x3cd/0x710 [ 73.957268][ T5819] ocfs2_reserve_suballoc_bits+0xa54/0x4f30 [ 73.963734][ T5819] ocfs2_reserve_new_metadata_blocks+0x41c/0x9b0 [ 73.970619][ T5819] ocfs2_mknod+0x143e/0x2b30 [ 73.975780][ T5819] ocfs2_mkdir+0x19c/0x470 [ 73.980991][ T5819] vfs_mkdir+0x2f9/0x500 [ 73.985811][ T5819] do_mkdirat+0x273/0x3f0 [ 73.990693][ T5819] __x64_sys_mkdirat+0x87/0xa0 [ 73.996113][ T5819] do_syscall_64+0xf3/0x230 [ 74.001251][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.007692][ T5819] [ 74.007692][ T5819] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 74.016474][ T5819] lock_acquire+0x116/0x2f0 [ 74.021505][ T5819] down_read+0xb3/0xae0 [ 74.026178][ T5819] ocfs2_start_trans+0x3c2/0x710 [ 74.031660][ T5819] ocfs2_reserve_suballoc_bits+0xa54/0x4f30 [ 74.038111][ T5819] ocfs2_reserve_new_metadata_blocks+0x41c/0x9b0 [ 74.044966][ T5819] ocfs2_mknod+0x143e/0x2b30 [ 74.050183][ T5819] ocfs2_mkdir+0x19c/0x470 [ 74.055180][ T5819] vfs_mkdir+0x2f9/0x500 [ 74.059986][ T5819] do_mkdirat+0x273/0x3f0 [ 74.064843][ T5819] __x64_sys_mkdirat+0x87/0xa0 [ 74.070160][ T5819] do_syscall_64+0xf3/0x230 [ 74.075274][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.081963][ T5819] [ 74.081963][ T5819] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 74.089924][ T5819] lock_acquire+0x116/0x2f0 [ 74.095086][ T5819] ocfs2_start_trans+0x2bd/0x710 [ 74.100814][ T5819] ocfs2_reserve_suballoc_bits+0xa54/0x4f30 [ 74.107798][ T5819] ocfs2_reserve_new_metadata_blocks+0x41c/0x9b0 [ 74.114881][ T5819] ocfs2_mknod+0x143e/0x2b30 [ 74.120006][ T5819] ocfs2_mkdir+0x19c/0x470 [ 74.124967][ T5819] vfs_mkdir+0x2f9/0x500 [ 74.129762][ T5819] do_mkdirat+0x273/0x3f0 [ 74.134728][ T5819] __x64_sys_mkdirat+0x87/0xa0 [ 74.140098][ T5819] do_syscall_64+0xf3/0x230 [ 74.145418][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.151959][ T5819] [ 74.151959][ T5819] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{4:4}: [ 74.162809][ T5819] validate_chain+0xa69/0x24e0 [ 74.168131][ T5819] __lock_acquire+0xad5/0xd80 [ 74.173423][ T5819] lock_acquire+0x116/0x2f0 [ 74.178509][ T5819] down_write+0x9c/0x220 [ 74.183533][ T5819] ocfs2_reserve_suballoc_bits+0x18d/0x4f30 [ 74.190092][ T5819] ocfs2_reserve_clusters_with_limit+0x3df/0xb60 [ 74.197062][ T5819] ocfs2_init_xattr_set_ctxt+0x435/0x900 [ 74.203415][ T5819] ocfs2_xattr_set+0xf52/0x1940 [ 74.208833][ T5819] __vfs_setxattr+0x468/0x4a0 [ 74.214221][ T5819] __vfs_setxattr_noperm+0x12e/0x660 [ 74.220142][ T5819] vfs_setxattr+0x223/0x430 [ 74.225165][ T5819] ovl_get_workdir+0xea3/0x19e0 [ 74.230548][ T5819] ovl_fill_super+0x1386/0x3720 [ 74.235942][ T5819] get_tree_nodev+0xb7/0x140 [ 74.241083][ T5819] vfs_get_tree+0x90/0x2b0 [ 74.246041][ T5819] do_new_mount+0x2cf/0xb70 [ 74.251099][ T5819] __se_sys_mount+0x38c/0x400 [ 74.256715][ T5819] do_syscall_64+0xf3/0x230 [ 74.261891][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.268332][ T5819] [ 74.268332][ T5819] other info that might help us debug this: [ 74.268332][ T5819] [ 74.278573][ T5819] Chain exists of: [ 74.278573][ T5819] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4 --> jbd2_handle --> &oi->ip_xattr_sem [ 74.278573][ T5819] [ 74.294618][ T5819] Possible unsafe locking scenario: [ 74.294618][ T5819] [ 74.302308][ T5819] CPU0 CPU1 [ 74.308229][ T5819] ---- ---- [ 74.313643][ T5819] lock(&oi->ip_xattr_sem); [ 74.318253][ T5819] lock(jbd2_handle); [ 74.325086][ T5819] lock(&oi->ip_xattr_sem); [ 74.332218][ T5819] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4); [ 74.339731][ T5819] [ 74.339731][ T5819] *** DEADLOCK *** [ 74.339731][ T5819] [ 74.347900][ T5819] 4 locks held by syz-executor827/5819: [ 74.353627][ T5819] #0: ffff88807e6a80e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 74.363875][ T5819] #1: ffff88807c4e0420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 74.373141][ T5819] #2: ffff8880749209c0 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e3/0x430 [ 74.383870][ T5819] #3: ffff8880749206f8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x635/0x1940 [ 74.394162][ T5819] [ 74.394162][ T5819] stack backtrace: [ 74.400349][ T5819] CPU: 0 UID: 0 PID: 5819 Comm: syz-executor827 Not tainted 6.14.0-syzkaller-03576-g1e1ba8d23dae #0 PREEMPT(full) [ 74.400370][ T5819] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 74.400383][ T5819] Call Trace: [ 74.400392][ T5819] [ 74.400399][ T5819] dump_stack_lvl+0x241/0x360 [ 74.400426][ T5819] ? __pfx_dump_stack_lvl+0x10/0x10 [ 74.400442][ T5819] ? __pfx__printk+0x10/0x10 [ 74.400458][ T5819] ? print_lock+0x171/0x1a0 [ 74.400480][ T5819] print_circular_bug+0x2e1/0x300 [ 74.400494][ T5819] check_noncircular+0x142/0x160 [ 74.400518][ T5819] validate_chain+0xa69/0x24e0 [ 74.400542][ T5819] ? do_raw_spin_lock+0x151/0x370 [ 74.400560][ T5819] __lock_acquire+0xad5/0xd80 [ 74.400581][ T5819] lock_acquire+0x116/0x2f0 [ 74.400598][ T5819] ? ocfs2_reserve_suballoc_bits+0x18d/0x4f30 [ 74.400637][ T5819] ? deref_stack_reg+0x17c/0x210 [ 74.400653][ T5819] down_write+0x9c/0x220 [ 74.400666][ T5819] ? ocfs2_reserve_suballoc_bits+0x18d/0x4f30 [ 74.400687][ T5819] ? __pfx_down_write+0x10/0x10 [ 74.400699][ T5819] ? rcu_is_watching+0x15/0xb0 [ 74.400721][ T5819] ? lock_release+0x4e/0x3e0 [ 74.400740][ T5819] ocfs2_reserve_suballoc_bits+0x18d/0x4f30 [ 74.400761][ T5819] ? is_bpf_text_address+0x288/0x2a0 [ 74.400780][ T5819] ? is_bpf_text_address+0x26/0x2a0 [ 74.400799][ T5819] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 74.400815][ T5819] ? kernel_text_address+0xa7/0xe0 [ 74.400832][ T5819] ? __kernel_text_address+0xd/0x40 [ 74.400850][ T5819] ? arch_stack_walk+0xff/0x150 [ 74.400868][ T5819] ? stack_trace_save+0x11a/0x1d0 [ 74.400882][ T5819] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 74.400901][ T5819] ? __pfx_ocfs2_reserve_suballoc_bits+0x10/0x10 [ 74.400921][ T5819] ? __bfs+0x14a/0x270 [ 74.400941][ T5819] ? check_path+0x21/0x40 [ 74.400961][ T5819] ? check_noncircular+0xee/0x160 [ 74.400983][ T5819] ? lockdep_unlock+0x8d/0x120 [ 74.400999][ T5819] ? validate_chain+0x8a7/0x24e0 [ 74.401020][ T5819] ? __vfs_setxattr+0x468/0x4a0 [ 74.401032][ T5819] ? vfs_setxattr+0x223/0x430 [ 74.401045][ T5819] ? vfs_get_tree+0x90/0x2b0 [ 74.401063][ T5819] ? do_new_mount+0x2cf/0xb70 [ 74.401081][ T5819] ? __lock_acquire+0xad5/0xd80 [ 74.401099][ T5819] ? do_raw_spin_lock+0x151/0x370 [ 74.401115][ T5819] ? do_raw_spin_unlock+0x13c/0x8b0 [ 74.401132][ T5819] ? _raw_spin_unlock+0x28/0x50 [ 74.401149][ T5819] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 74.401170][ T5819] ocfs2_reserve_clusters_with_limit+0x3df/0xb60 [ 74.401195][ T5819] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 74.401220][ T5819] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 74.401240][ T5819] ? irqentry_exit+0x63/0x90 [ 74.401258][ T5819] ? lockdep_hardirqs_on+0x9d/0x150 [ 74.401281][ T5819] ocfs2_init_xattr_set_ctxt+0x435/0x900 [ 74.401299][ T5819] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 74.401315][ T5819] ? up_write+0x1ab/0x590 [ 74.401327][ T5819] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 74.401342][ T5819] ? __pfx_up_write+0x10/0x10 [ 74.401355][ T5819] ? __kmalloc_cache_noprof+0x236/0x370 [ 74.401368][ T5819] ? ocfs2_xattr_set+0x4d7/0x1940 [ 74.401383][ T5819] ocfs2_xattr_set+0xf52/0x1940 [ 74.401402][ T5819] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 74.401417][ T5819] ? _prb_read_valid+0xa51/0xae0 [ 74.401452][ T5819] ? smk_tskacc+0x300/0x370 [ 74.401469][ T5819] ? posix_xattr_acl+0xa9/0xd0 [ 74.401490][ T5819] ? evm_protect_xattr+0x4c0/0xb50 [ 74.401511][ T5819] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 74.401528][ T5819] __vfs_setxattr+0x468/0x4a0 [ 74.401544][ T5819] __vfs_setxattr_noperm+0x12e/0x660 [ 74.401560][ T5819] vfs_setxattr+0x223/0x430 [ 74.401576][ T5819] ? __pfx_vfs_setxattr+0x10/0x10 [ 74.401589][ T5819] ? dput+0x37/0x2b0 [ 74.401603][ T5819] ? dput+0x37/0x2b0 [ 74.401623][ T5819] ovl_get_workdir+0xea3/0x19e0 [ 74.401643][ T5819] ? __pfx_ovl_get_workdir+0x10/0x10 [ 74.401662][ T5819] ? do_raw_spin_lock+0x151/0x370 [ 74.401681][ T5819] ? _raw_spin_unlock+0x28/0x50 [ 74.401697][ T5819] ? ovl_inuse_trylock+0xab/0xf0 [ 74.401713][ T5819] ovl_fill_super+0x1386/0x3720 [ 74.401735][ T5819] ? shrinker_register+0x118/0x230 [ 74.401752][ T5819] ? __pfx_ovl_fill_super+0x10/0x10 [ 74.401772][ T5819] ? __raw_spin_lock_init+0x45/0x100 [ 74.401791][ T5819] ? sget_fc+0x960/0xa50 [ 74.401807][ T5819] ? __pfx_set_anon_super_fc+0x10/0x10 [ 74.401825][ T5819] ? __pfx_ovl_fill_super+0x10/0x10 [ 74.401841][ T5819] get_tree_nodev+0xb7/0x140 [ 74.401860][ T5819] vfs_get_tree+0x90/0x2b0 [ 74.401880][ T5819] do_new_mount+0x2cf/0xb70 [ 74.401895][ T5819] ? __pfx_do_new_mount+0x10/0x10 [ 74.401911][ T5819] __se_sys_mount+0x38c/0x400 [ 74.401926][ T5819] ? __pfx___se_sys_mount+0x10/0x10 [ 74.401942][ T5819] ? __x64_sys_mount+0x20/0xc0 [ 74.401956][ T5819] do_syscall_64+0xf3/0x230 [ 74.401977][ T5819] ? clear_bhb_loop+0x45/0xa0 [ 74.401992][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.402011][ T5819] RIP: 0033:0x7ff2d09627b9 [ 74.402028][ T5819] 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.402040][ T5819] RSP: 002b:00007ffd5f2324b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 74.402055][ T5819] RAX: ffffffffffffffda RBX: 6e6f3d74726f7078 RCX: 00007ff2d09627b9 [ 74.402066][ T5819] RDX: 0000200000000080 RSI: 00002000000000c0 RDI: 0000000000000000 [ 74.402076][ T5819] RBP: 00007ff2d09d9610 R08: 0000200000000480 R09: 0000000000000000 mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,nfs_export=on,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 74.402085][ T581