./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3103187949 <...> Warning: Permanently added '10.128.1.69' (ED25519) to the list of known hosts. execve("./syz-executor3103187949", ["./syz-executor3103187949"], 0x7ffd0f141f40 /* 10 vars */) = 0 brk(NULL) = 0x55557171a000 brk(0x55557171ad00) = 0x55557171ad00 arch_prctl(ARCH_SET_FS, 0x55557171a380) = 0 set_tid_address(0x55557171a650) = 5820 set_robust_list(0x55557171a660, 24) = 0 rseq(0x55557171aca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3103187949", 4096) = 28 getrandom("\x04\xc0\x1a\x12\xa1\xf0\xf7\x6f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557171ad00 brk(0x55557173bd00) = 0x55557173bd00 brk(0x55557173c000) = 0x55557173c000 mprotect(0x7f49835b5000, 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) = 0x7f497b000000 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(0x7f497b000000, 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 [ 87.471127][ T5820] loop0: detected capacity change from 0 to 32768 [ 87.516389][ T5820] ======================================================= [ 87.516389][ T5820] WARNING: The mand mount option has been deprecated and [ 87.516389][ T5820] and is ignored by this kernel. Remove the mand [ 87.516389][ T5820] option from the mount to silence this warning. [ 87.516389][ T5820] ======================================================= [ 87.563926][ T5820] JBD2: Ignoring recovery information on journal mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,dir_resv_level=00000000000000000003,resv_level=00000000000000000006,coherency=ful"...) = 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 [ 87.594943][ T5820] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdir("./file1", 000) = 0 mkdir("./bus", 0124) = 0 [ 87.692296][ T5820] overlayfs: upper fs does not support tmpfile. [ 87.701251][ T5820] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 87.708901][ T5820] [ 87.711241][ T5820] ====================================================== [ 87.718249][ T5820] WARNING: possible circular locking dependency detected [ 87.725268][ T5820] 6.15.0-rc3-syzkaller-00094-g02ddfb981de8 #0 Not tainted [ 87.732364][ T5820] ------------------------------------------------------ [ 87.739373][ T5820] syz-executor310/5820 is trying to acquire lock: [ 87.745773][ T5820] ffff888079b8c2c0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 87.759298][ T5820] [ 87.759298][ T5820] but task is already holding lock: [ 87.766665][ T5820] ffff888079b606f8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x40f/0x11f0 [ 87.776190][ T5820] [ 87.776190][ T5820] which lock already depends on the new lock. [ 87.776190][ T5820] [ 87.786606][ T5820] [ 87.786606][ T5820] the existing dependency chain (in reverse order) is: [ 87.795630][ T5820] [ 87.795630][ T5820] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 87.803461][ T5820] lock_acquire+0x120/0x360 [ 87.808497][ T5820] down_write+0x96/0x1f0 [ 87.813277][ T5820] ocfs2_xattr_set_handle+0x3b0/0x7a0 [ 87.819173][ T5820] ocfs2_init_security_set+0xbd/0xe0 [ 87.824979][ T5820] ocfs2_mknod+0x137f/0x2050 [ 87.830098][ T5820] ocfs2_mkdir+0x191/0x440 [ 87.835052][ T5820] vfs_mkdir+0x303/0x510 [ 87.839821][ T5820] do_mkdirat+0x247/0x590 [ 87.844678][ T5820] __x64_sys_mkdirat+0x87/0xa0 [ 87.849969][ T5820] do_syscall_64+0xf6/0x210 [ 87.854992][ T5820] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.861405][ T5820] [ 87.861405][ T5820] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 87.868721][ T5820] lock_acquire+0x120/0x360 [ 87.873749][ T5820] start_this_handle+0x1fa7/0x21c0 [ 87.879382][ T5820] jbd2__journal_start+0x2c1/0x5b0 [ 87.885013][ T5820] jbd2_journal_start+0x2a/0x40 [ 87.890385][ T5820] ocfs2_start_trans+0x376/0x6d0 [ 87.895844][ T5820] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 87.902271][ T5820] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 87.909130][ T5820] ocfs2_mknod+0xe08/0x2050 [ 87.914161][ T5820] ocfs2_mkdir+0x191/0x440 [ 87.919104][ T5820] vfs_mkdir+0x303/0x510 [ 87.923870][ T5820] do_mkdirat+0x247/0x590 [ 87.928727][ T5820] __x64_sys_mkdirat+0x87/0xa0 [ 87.934014][ T5820] do_syscall_64+0xf6/0x210 [ 87.939041][ T5820] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.945460][ T5820] [ 87.945460][ T5820] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 87.953980][ T5820] lock_acquire+0x120/0x360 [ 87.959097][ T5820] down_read+0x46/0x2e0 [ 87.963865][ T5820] ocfs2_start_trans+0x36a/0x6d0 [ 87.969325][ T5820] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 87.975747][ T5820] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 87.982604][ T5820] ocfs2_mknod+0xe08/0x2050 [ 87.987635][ T5820] ocfs2_mkdir+0x191/0x440 [ 87.992578][ T5820] vfs_mkdir+0x303/0x510 [ 87.997353][ T5820] do_mkdirat+0x247/0x590 [ 88.002290][ T5820] __x64_sys_mkdirat+0x87/0xa0 [ 88.007579][ T5820] do_syscall_64+0xf6/0x210 [ 88.012603][ T5820] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.019020][ T5820] [ 88.019020][ T5820] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 88.026519][ T5820] lock_acquire+0x120/0x360 [ 88.031567][ T5820] ocfs2_start_trans+0x26b/0x6d0 [ 88.037023][ T5820] ocfs2_mknod+0xe93/0x2050 [ 88.042048][ T5820] ocfs2_mkdir+0x191/0x440 [ 88.046991][ T5820] vfs_mkdir+0x303/0x510 [ 88.051764][ T5820] do_mkdirat+0x247/0x590 [ 88.056615][ T5820] __x64_sys_mkdirat+0x87/0xa0 [ 88.061985][ T5820] do_syscall_64+0xf6/0x210 [ 88.067008][ T5820] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.073421][ T5820] [ 88.073421][ T5820] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 88.083966][ T5820] validate_chain+0xb9b/0x2140 [ 88.089259][ T5820] __lock_acquire+0xaac/0xd20 [ 88.094462][ T5820] lock_acquire+0x120/0x360 [ 88.099491][ T5820] down_write+0x96/0x1f0 [ 88.104254][ T5820] ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 88.110946][ T5820] ocfs2_reserve_clusters_with_limit+0x1be/0xba0 [ 88.117804][ T5820] ocfs2_init_xattr_set_ctxt+0x376/0x700 [ 88.123959][ T5820] ocfs2_xattr_set+0xb70/0x11f0 [ 88.129338][ T5820] __vfs_setxattr+0x439/0x480 [ 88.134545][ T5820] __vfs_setxattr_noperm+0x12d/0x660 [ 88.140358][ T5820] vfs_setxattr+0x16b/0x2f0 [ 88.145391][ T5820] ovl_get_workdir+0xb86/0x1700 [ 88.150770][ T5820] ovl_fill_super+0x1386/0x35d0 [ 88.156145][ T5820] get_tree_nodev+0xb8/0x150 [ 88.161262][ T5820] vfs_get_tree+0x8f/0x2b0 [ 88.166210][ T5820] do_new_mount+0x249/0xa50 [ 88.171240][ T5820] __se_sys_mount+0x317/0x410 [ 88.176449][ T5820] do_syscall_64+0xf6/0x210 [ 88.181476][ T5820] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.187891][ T5820] [ 88.187891][ T5820] other info that might help us debug this: [ 88.187891][ T5820] [ 88.198141][ T5820] Chain exists of: [ 88.198141][ T5820] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 88.198141][ T5820] [ 88.213888][ T5820] Possible unsafe locking scenario: [ 88.213888][ T5820] [ 88.221337][ T5820] CPU0 CPU1 [ 88.226710][ T5820] ---- ---- [ 88.232074][ T5820] lock(&oi->ip_xattr_sem); [ 88.236668][ T5820] lock(jbd2_handle); [ 88.243267][ T5820] lock(&oi->ip_xattr_sem); [ 88.250395][ T5820] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 88.257711][ T5820] [ 88.257711][ T5820] *** DEADLOCK *** [ 88.257711][ T5820] [ 88.265857][ T5820] 4 locks held by syz-executor310/5820: [ 88.271412][ T5820] #0: ffff8880331e40e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x204/0x970 [ 88.281553][ T5820] #1: ffff888033d72420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 88.290730][ T5820] #2: ffff888079b609c0 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0 [ 88.301201][ T5820] #3: ffff888079b606f8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x40f/0x11f0 [ 88.311146][ T5820] [ 88.311146][ T5820] stack backtrace: [ 88.317050][ T5820] CPU: 1 UID: 0 PID: 5820 Comm: syz-executor310 Not tainted 6.15.0-rc3-syzkaller-00094-g02ddfb981de8 #0 PREEMPT(full) [ 88.317074][ T5820] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 88.317093][ T5820] Call Trace: [ 88.317100][ T5820] [ 88.317110][ T5820] dump_stack_lvl+0x189/0x250 [ 88.317133][ T5820] ? __pfx_dump_stack_lvl+0x10/0x10 [ 88.317152][ T5820] ? __pfx__printk+0x10/0x10 [ 88.317177][ T5820] ? print_lock_name+0xde/0x100 [ 88.317200][ T5820] print_circular_bug+0x2ee/0x310 [ 88.317225][ T5820] check_noncircular+0x134/0x160 [ 88.317250][ T5820] validate_chain+0xb9b/0x2140 [ 88.317272][ T5820] ? __mutex_unlock_slowpath+0x1cd/0x700 [ 88.317289][ T5820] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 88.317306][ T5820] __lock_acquire+0xaac/0xd20 [ 88.317327][ T5820] ? ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 88.317346][ T5820] lock_acquire+0x120/0x360 [ 88.317364][ T5820] ? ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 88.317385][ T5820] ? is_bpf_text_address+0x292/0x2b0 [ 88.317404][ T5820] ? is_bpf_text_address+0x26/0x2b0 [ 88.317424][ T5820] down_write+0x96/0x1f0 [ 88.317439][ T5820] ? ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 88.317459][ T5820] ? __pfx_down_write+0x10/0x10 [ 88.317473][ T5820] ? arch_stack_walk+0xfc/0x150 [ 88.317494][ T5820] ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 88.317532][ T5820] ? stack_trace_save+0x9c/0xe0 [ 88.317546][ T5820] ? __pfx_stack_trace_save+0x10/0x10 [ 88.317561][ T5820] ? check_path+0x21/0x40 [ 88.317582][ T5820] ? check_noncircular+0xe0/0x160 [ 88.317607][ T5820] ? lockdep_unlock+0x89/0x120 [ 88.317623][ T5820] ? validate_chain+0x897/0x2140 [ 88.317645][ T5820] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 88.317665][ T5820] ? do_new_mount+0x249/0xa50 [ 88.317699][ T5820] ? __lock_acquire+0xaac/0xd20 [ 88.317725][ T5820] ? do_raw_spin_unlock+0x122/0x240 [ 88.317741][ T5820] ? _raw_spin_unlock+0x28/0x50 [ 88.317761][ T5820] ? ocfs2_alloc_should_use_local+0x152/0x310 [ 88.317779][ T5820] ? ocfs2_reserve_clusters_with_limit+0x16b/0xba0 [ 88.317804][ T5820] ocfs2_reserve_clusters_with_limit+0x1be/0xba0 [ 88.317831][ T5820] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 88.317859][ T5820] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 88.317880][ T5820] ? __lock_acquire+0xaac/0xd20 [ 88.317902][ T5820] ocfs2_init_xattr_set_ctxt+0x376/0x700 [ 88.317920][ T5820] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 88.317938][ T5820] ? ocfs2_xattr_set+0xb36/0x11f0 [ 88.317954][ T5820] ? up_write+0x1c4/0x420 [ 88.317969][ T5820] ocfs2_xattr_set+0xb70/0x11f0 [ 88.317992][ T5820] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 88.318007][ T5820] ? up+0xde/0x150 [ 88.318022][ T5820] ? smack_log+0xef/0x3f0 [ 88.318043][ T5820] ? __pfx___console_unlock+0x10/0x10 [ 88.318056][ T5820] ? smk_access+0x14c/0x4e0 [ 88.318077][ T5820] ? smk_tskacc+0x2fc/0x370 [ 88.318099][ T5820] ? posix_xattr_acl+0x93/0xc0 [ 88.318117][ T5820] ? evm_protect_xattr+0x4d4/0xa90 [ 88.318135][ T5820] ? __pfx_evm_protect_xattr+0x10/0x10 [ 88.318151][ T5820] ? safesetid_security_capable+0xa9/0x1a0 [ 88.318165][ T5820] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 88.318182][ T5820] __vfs_setxattr+0x439/0x480 [ 88.318208][ T5820] __vfs_setxattr_noperm+0x12d/0x660 [ 88.318233][ T5820] vfs_setxattr+0x16b/0x2f0 [ 88.318257][ T5820] ? __pfx_vfs_setxattr+0x10/0x10 [ 88.318279][ T5820] ? up_write+0x1c4/0x420 [ 88.318294][ T5820] ovl_get_workdir+0xb86/0x1700 [ 88.318317][ T5820] ? __pfx_ovl_get_workdir+0x10/0x10 [ 88.318345][ T5820] ? do_raw_spin_unlock+0x122/0x240 [ 88.318361][ T5820] ? _raw_spin_unlock+0x28/0x50 [ 88.318391][ T5820] ? ovl_inuse_trylock+0xae/0xf0 [ 88.318409][ T5820] ovl_fill_super+0x1386/0x35d0 [ 88.318431][ T5820] ? rcu_is_watching+0x15/0xb0 [ 88.318457][ T5820] ? shrinker_register+0x124/0x230 [ 88.318478][ T5820] ? __pfx_ovl_fill_super+0x10/0x10 [ 88.318496][ T5820] ? __pfx___mutex_lock+0x10/0x10 [ 88.318509][ T5820] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 88.318525][ T5820] ? __raw_spin_lock_init+0x45/0x100 [ 88.318544][ T5820] ? sget_fc+0x962/0xa40 [ 88.318562][ T5820] ? __pfx_set_anon_super_fc+0x10/0x10 [ 88.318580][ T5820] ? __pfx_ovl_fill_super+0x10/0x10 [ 88.318598][ T5820] get_tree_nodev+0xb8/0x150 [ 88.318617][ T5820] vfs_get_tree+0x8f/0x2b0 [ 88.318637][ T5820] do_new_mount+0x249/0xa50 [ 88.318680][ T5820] __se_sys_mount+0x317/0x410 [ 88.318710][ T5820] ? __pfx___se_sys_mount+0x10/0x10 [ 88.318746][ T5820] ? __x64_sys_mount+0x20/0xc0 [ 88.318769][ T5820] do_syscall_64+0xf6/0x210 [ 88.318783][ T5820] ? clear_bhb_loop+0x45/0xa0 [ 88.318800][ T5820] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.318814][ T5820] RIP: 0033:0x7f498353e779 [ 88.318836][ T5820] 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 [ 88.318849][ T5820] RSP: 002b:00007ffe63717b68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 88.318865][ T5820] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f498353e779 [ 88.318876][ T5820] RDX: 0000200000000340 RSI: 00002000000000c0 RDI: 0000000000000000 [ 88.318886][ T5820] RBP: 00007f49835b5610 R08: 0000200000000180 R09: 0000000000000000 [ 88.318895][ T5820] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 88.318904][ T5820] R13: 00007ffe63717d38 R14: 0000000000000001 R15: 0000000000000001 [ 88.318919][ T5820] mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 88.844867][ T5820] overla