./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor894544504 <...> Warning: Permanently added '10.128.0.9' (ED25519) to the list of known hosts. execve("./syz-executor894544504", ["./syz-executor894544504"], 0x7ffdbafc0230 /* 10 vars */) = 0 brk(NULL) = 0x5555940c3000 brk(0x5555940c3d00) = 0x5555940c3d00 arch_prctl(ARCH_SET_FS, 0x5555940c3380) = 0 set_tid_address(0x5555940c3650) = 5825 set_robust_list(0x5555940c3660, 24) = 0 rseq(0x5555940c3ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor894544504", 4096) = 27 getrandom("\xde\x22\xb0\x7d\x9d\x6d\xcb\x5c", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555940c3d00 brk(0x5555940e4d00) = 0x5555940e4d00 brk(0x5555940e5000) = 0x5555940e5000 mprotect(0x7f1854b8b000, 16384, PROT_READ) = 0 mmap(0x3ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3ffffffff000 mmap(0x400000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000000000 mmap(0x400001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400001000000 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) = 0x7f184c600000 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(0x7f184c600000, 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 [ 59.738999][ T5825] loop0: detected capacity change from 0 to 32768 [ 59.783002][ T5825] ======================================================= [ 59.783002][ T5825] WARNING: The mand mount option has been deprecated and [ 59.783002][ T5825] and is ignored by this kernel. Remove the mand [ 59.783002][ T5825] option from the mount to silence this warning. [ 59.783002][ T5825] ======================================================= [ 59.831568][ T5825] 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 [ 59.854964][ T5825] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdir("./bus", 000) = 0 [ 59.952334][ T5825] overlayfs: upper fs does not support tmpfile. [ 59.960971][ T5825] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 59.968392][ T5825] [ 59.970710][ T5825] ====================================================== [ 59.977702][ T5825] WARNING: possible circular locking dependency detected [ 59.984708][ T5825] 6.14.0-rc6-syzkaller-00016-g0fed89a961ea #0 Not tainted [ 59.991784][ T5825] ------------------------------------------------------ [ 59.998772][ T5825] syz-executor894/5825 is trying to acquire lock: [ 60.005156][ T5825] ffff88807c3e42c0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x135/0x28d0 [ 60.018644][ T5825] [ 60.018644][ T5825] but task is already holding lock: [ 60.025988][ T5825] ffff88807c3406f8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 60.035457][ T5825] [ 60.035457][ T5825] which lock already depends on the new lock. [ 60.035457][ T5825] [ 60.045842][ T5825] [ 60.045842][ T5825] the existing dependency chain (in reverse order) is: [ 60.055371][ T5825] [ 60.055371][ T5825] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 60.063176][ T5825] lock_acquire+0x1ed/0x550 [ 60.068201][ T5825] down_write+0x99/0x220 [ 60.072963][ T5825] ocfs2_xattr_set_handle+0x539/0xa10 [ 60.078838][ T5825] ocfs2_init_security_set+0xbd/0xd0 [ 60.084626][ T5825] ocfs2_mknod+0x1ccf/0x2b30 [ 60.089716][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 60.094632][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 60.099379][ T5825] do_mkdirat+0x264/0x3a0 [ 60.104217][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 60.109492][ T5825] do_syscall_64+0xf3/0x230 [ 60.114516][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.120911][ T5825] [ 60.120911][ T5825] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 60.128187][ T5825] lock_acquire+0x1ed/0x550 [ 60.133202][ T5825] start_this_handle+0x1eb4/0x2110 [ 60.138832][ T5825] jbd2__journal_start+0x2da/0x5d0 [ 60.144451][ T5825] jbd2_journal_start+0x29/0x40 [ 60.149810][ T5825] ocfs2_start_trans+0x3c9/0x700 [ 60.155332][ T5825] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 60.161720][ T5825] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 60.168543][ T5825] ocfs2_mknod+0x143a/0x2b30 [ 60.173626][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 60.178536][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 60.183292][ T5825] do_mkdirat+0x264/0x3a0 [ 60.188146][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 60.193430][ T5825] do_syscall_64+0xf3/0x230 [ 60.198441][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.204849][ T5825] [ 60.204849][ T5825] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 60.213349][ T5825] lock_acquire+0x1ed/0x550 [ 60.218356][ T5825] down_read+0xb1/0xa40 [ 60.223005][ T5825] ocfs2_start_trans+0x3be/0x700 [ 60.228438][ T5825] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 60.234827][ T5825] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 60.241649][ T5825] ocfs2_mknod+0x143a/0x2b30 [ 60.246762][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 60.251677][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 60.256416][ T5825] do_mkdirat+0x264/0x3a0 [ 60.261241][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 60.266500][ T5825] do_syscall_64+0xf3/0x230 [ 60.271502][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.277910][ T5825] [ 60.277910][ T5825] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 60.285356][ T5825] lock_acquire+0x1ed/0x550 [ 60.290371][ T5825] ocfs2_start_trans+0x2b9/0x700 [ 60.295803][ T5825] ocfs2_mknod+0x150c/0x2b30 [ 60.300904][ T5825] ocfs2_mkdir+0x1ab/0x470 [ 60.305817][ T5825] vfs_mkdir+0x2f9/0x4f0 [ 60.310573][ T5825] do_mkdirat+0x264/0x3a0 [ 60.315417][ T5825] __x64_sys_mkdirat+0x87/0xa0 [ 60.320694][ T5825] do_syscall_64+0xf3/0x230 [ 60.325707][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.332104][ T5825] [ 60.332104][ T5825] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 60.342599][ T5825] validate_chain+0x18ef/0x5920 [ 60.347954][ T5825] __lock_acquire+0x1397/0x2100 [ 60.353306][ T5825] lock_acquire+0x1ed/0x550 [ 60.358310][ T5825] down_write+0x99/0x220 [ 60.363052][ T5825] ocfs2_reserve_local_alloc_bits+0x135/0x28d0 [ 60.369729][ T5825] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 60.376553][ T5825] ocfs2_init_xattr_set_ctxt+0x433/0x8f0 [ 60.382685][ T5825] ocfs2_xattr_set+0xf4e/0x1930 [ 60.388032][ T5825] __vfs_setxattr+0x468/0x4a0 [ 60.393212][ T5825] __vfs_setxattr_noperm+0x12e/0x660 [ 60.399013][ T5825] vfs_setxattr+0x221/0x430 [ 60.404009][ T5825] ovl_get_workdir+0xda0/0x1930 [ 60.409355][ T5825] ovl_fill_super+0x12b3/0x3640 [ 60.414703][ T5825] get_tree_nodev+0xb7/0x140 [ 60.419790][ T5825] vfs_get_tree+0x90/0x2b0 [ 60.424704][ T5825] do_new_mount+0x2be/0xb40 [ 60.429708][ T5825] __se_sys_mount+0x2d6/0x3c0 [ 60.434877][ T5825] do_syscall_64+0xf3/0x230 [ 60.439879][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.446276][ T5825] [ 60.446276][ T5825] other info that might help us debug this: [ 60.446276][ T5825] [ 60.456480][ T5825] Chain exists of: [ 60.456480][ T5825] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 60.456480][ T5825] [ 60.472181][ T5825] Possible unsafe locking scenario: [ 60.472181][ T5825] [ 60.479604][ T5825] CPU0 CPU1 [ 60.484941][ T5825] ---- ---- [ 60.490279][ T5825] lock(&oi->ip_xattr_sem); [ 60.494842][ T5825] lock(jbd2_handle); [ 60.501407][ T5825] lock(&oi->ip_xattr_sem); [ 60.508489][ T5825] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 60.515750][ T5825] [ 60.515750][ T5825] *** DEADLOCK *** [ 60.515750][ T5825] [ 60.523872][ T5825] 4 locks held by syz-executor894/5825: [ 60.529385][ T5825] #0: ffff88806cfd00e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 [ 60.539457][ T5825] #1: ffff88806d2b2420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 60.548567][ T5825] #2: ffff88807c3409c0 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x1e1/0x430 [ 60.558975][ T5825] #3: ffff88807c3406f8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x633/0x1930 [ 60.568883][ T5825] [ 60.568883][ T5825] stack backtrace: [ 60.574771][ T5825] CPU: 1 UID: 0 PID: 5825 Comm: syz-executor894 Not tainted 6.14.0-rc6-syzkaller-00016-g0fed89a961ea #0 [ 60.574783][ T5825] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 60.574792][ T5825] Call Trace: [ 60.574797][ T5825] [ 60.574802][ T5825] dump_stack_lvl+0x241/0x360 [ 60.574816][ T5825] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.574825][ T5825] ? __pfx__printk+0x10/0x10 [ 60.574840][ T5825] print_circular_bug+0x13a/0x1b0 [ 60.574851][ T5825] check_noncircular+0x36a/0x4a0 [ 60.574861][ T5825] ? __pfx_check_noncircular+0x10/0x10 [ 60.574870][ T5825] ? lockdep_lock+0x123/0x2b0 [ 60.574883][ T5825] validate_chain+0x18ef/0x5920 [ 60.574892][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 60.574904][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 60.574914][ T5825] ? mark_lock+0x9a/0x360 [ 60.574929][ T5825] ? ocfs2_get_system_file_inode+0x1e3/0x840 [ 60.574943][ T5825] ? __pfx_lock_release+0x10/0x10 [ 60.574955][ T5825] ? mark_lock+0x9a/0x360 [ 60.574968][ T5825] __lock_acquire+0x1397/0x2100 [ 60.574983][ T5825] lock_acquire+0x1ed/0x550 [ 60.574994][ T5825] ? ocfs2_reserve_local_alloc_bits+0x135/0x28d0 [ 60.575009][ T5825] ? __pfx_lock_acquire+0x10/0x10 [ 60.575021][ T5825] ? __pfx___might_resched+0x10/0x10 [ 60.575032][ T5825] ? __pfx_ocfs2_get_system_file_inode+0x10/0x10 [ 60.575045][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 60.575053][ T5825] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.575065][ T5825] down_write+0x99/0x220 [ 60.575074][ T5825] ? ocfs2_reserve_local_alloc_bits+0x135/0x28d0 [ 60.575087][ T5825] ? __pfx_down_write+0x10/0x10 [ 60.575100][ T5825] ocfs2_reserve_local_alloc_bits+0x135/0x28d0 [ 60.575115][ T5825] ? mark_lock+0x9a/0x360 [ 60.575128][ T5825] ? __lock_acquire+0x1397/0x2100 [ 60.575140][ T5825] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 60.575157][ T5825] ? __pfx_lock_acquire+0x10/0x10 [ 60.575168][ T5825] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 60.575180][ T5825] ? __pfx_lock_release+0x10/0x10 [ 60.575191][ T5825] ? do_raw_spin_lock+0x14f/0x370 [ 60.575202][ T5825] ? do_raw_spin_unlock+0x13c/0x8b0 [ 60.575213][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 60.575223][ T5825] ? ocfs2_alloc_should_use_local+0x155/0x320 [ 60.575236][ T5825] ocfs2_reserve_clusters_with_limit+0x1b8/0xb60 [ 60.575248][ T5825] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 60.575260][ T5825] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 60.575274][ T5825] ? ocfs2_xattr_set+0xf00/0x1930 [ 60.575285][ T5825] ocfs2_init_xattr_set_ctxt+0x433/0x8f0 [ 60.575298][ T5825] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 60.575309][ T5825] ? up_write+0x1a9/0x590 [ 60.575318][ T5825] ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 [ 60.575329][ T5825] ? __pfx_up_write+0x10/0x10 [ 60.575338][ T5825] ? __kmalloc_cache_noprof+0x243/0x390 [ 60.575347][ T5825] ? ocfs2_xattr_set+0x4d5/0x1930 [ 60.575358][ T5825] ocfs2_xattr_set+0xf4e/0x1930 [ 60.575372][ T5825] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 60.575382][ T5825] ? _prb_read_valid+0xa4c/0xad0 [ 60.575396][ T5825] ? mark_lock+0x9a/0x360 [ 60.575411][ T5825] ? smk_tskacc+0x300/0x370 [ 60.575424][ T5825] ? posix_xattr_acl+0xa9/0xd0 [ 60.575433][ T5825] ? evm_protect_xattr+0x4be/0xb40 [ 60.575443][ T5825] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 60.575454][ T5825] __vfs_setxattr+0x468/0x4a0 [ 60.575470][ T5825] __vfs_setxattr_noperm+0x12e/0x660 [ 60.575488][ T5825] vfs_setxattr+0x221/0x430 [ 60.575498][ T5825] ? __pfx_vfs_setxattr+0x10/0x10 [ 60.575507][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 60.575517][ T5825] ? dput+0x37/0x2b0 [ 60.575527][ T5825] ovl_get_workdir+0xda0/0x1930 [ 60.575541][ T5825] ? __pfx_ovl_get_workdir+0x10/0x10 [ 60.575554][ T5825] ? ovl_inuse_trylock+0xab/0xf0 [ 60.575565][ T5825] ? do_raw_spin_lock+0x14f/0x370 [ 60.575578][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 60.575588][ T5825] ? ovl_inuse_trylock+0xab/0xf0 [ 60.575599][ T5825] ovl_fill_super+0x12b3/0x3640 [ 60.575616][ T5825] ? __pfx_ovl_fill_super+0x10/0x10 [ 60.575627][ T5825] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 60.575639][ T5825] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 60.575660][ T5825] ? sget_fc+0x960/0xa50 [ 60.575670][ T5825] ? __pfx_set_anon_super_fc+0x10/0x10 [ 60.575681][ T5825] ? __pfx_ovl_fill_super+0x10/0x10 [ 60.575692][ T5825] get_tree_nodev+0xb7/0x140 [ 60.575708][ T5825] vfs_get_tree+0x90/0x2b0 [ 60.575719][ T5825] do_new_mount+0x2be/0xb40 [ 60.575730][ T5825] ? __pfx_do_new_mount+0x10/0x10 [ 60.575740][ T5825] __se_sys_mount+0x2d6/0x3c0 [ 60.575749][ T5825] ? __pfx___se_sys_mount+0x10/0x10 [ 60.575758][ T5825] ? do_syscall_64+0x100/0x230 [ 60.575771][ T5825] ? __x64_sys_mount+0x20/0xc0 [ 60.575780][ T5825] do_syscall_64+0xf3/0x230 [ 60.575793][ T5825] ? clear_bhb_loop+0x35/0x90 [ 60.575806][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.575823][ T5825] RIP: 0033:0x7f1854b14779 [ 60.575835][ T5825] 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 [ 60.575843][ T5825] RSP: 002b:00007ffdf0f6edd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 60.575853][ T5825] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f1854b14779 [ 60.575860][ T5825] RDX: 0000400000000080 RSI: 00004000000000c0 RDI: 0000000000000000 [ 60.575866][ T5825] RBP: 00007f1854b8b610 R08: 0000400000000900 R09: 0000000000000000 [ 60.575872][ T5825] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 mount(NULL, "./bus", "overlay", 0, "upperdir=./file1,lowerdir=./file0,workdir=./bus,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 60.575877][ T5825] R13: 00007ffdf0f6efa8 R14: 0000000000