./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1083550028 <...> Warning: Permanently added '10.128.1.182' (ED25519) to the list of known hosts. execve("./syz-executor1083550028", ["./syz-executor1083550028"], 0x7ffd3c4ca3a0 /* 10 vars */) = 0 brk(NULL) = 0x5555719dd000 brk(0x5555719ddd00) = 0x5555719ddd00 arch_prctl(ARCH_SET_FS, 0x5555719dd380) = 0 set_tid_address(0x5555719dd650) = 5824 set_robust_list(0x5555719dd660, 24) = 0 rseq(0x5555719ddca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1083550028", 4096) = 28 getrandom("\x17\xde\x74\x30\xb2\xc2\x6c\x72", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555719ddd00 brk(0x5555719fed00) = 0x5555719fed00 brk(0x5555719ff000) = 0x5555719ff000 mprotect(0x7f9e52cb2000, 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 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) = 0x7f9e4a600000 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(0x7f9e4a600000, 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 syzkaller login: [ 81.380195][ T5824] loop0: detected capacity change from 0 to 32768 mount("/dev/loop0", "./file1", "ocfs2", MS_NODEV|MS_DIRSYNC|MS_REC, "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) [ 81.443536][ T5824] JBD2: Ignoring recovery information on journal [ 81.474898][ T5824] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. mkdirat(AT_FDCWD, "./file0", 000) = 0 mkdirat(AT_FDCWD, "./file1", 000) = 0 mkdir("./bus", 000) = 0 [ 81.561738][ T5824] overlayfs: upper fs does not support tmpfile. [ 81.570197][ T5824] overlayfs: upper fs does not support RENAME_WHITEOUT. [ 81.577419][ T5824] [ 81.579740][ T5824] ====================================================== [ 81.586742][ T5824] WARNING: possible circular locking dependency detected [ 81.593748][ T5824] 6.15.0-rc5-syzkaller-00123-g2c89c1b655c0 #0 Not tainted [ 81.600848][ T5824] ------------------------------------------------------ [ 81.607852][ T5824] syz-executor108/5824 is trying to acquire lock: [ 81.614255][ T5824] ffff888075179800 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}, at: ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 81.627743][ T5824] [ 81.627743][ T5824] but task is already holding lock: [ 81.635093][ T5824] ffff88807511b1b8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x40f/0x11f0 [ 81.644569][ T5824] [ 81.644569][ T5824] which lock already depends on the new lock. [ 81.644569][ T5824] [ 81.654957][ T5824] [ 81.654957][ T5824] the existing dependency chain (in reverse order) is: [ 81.663952][ T5824] [ 81.663952][ T5824] -> #4 (&oi->ip_xattr_sem){+.+.}-{4:4}: [ 81.671764][ T5824] lock_acquire+0x120/0x360 [ 81.676777][ T5824] down_write+0x96/0x1f0 [ 81.681544][ T5824] ocfs2_xattr_set_handle+0x3b0/0x7a0 [ 81.687439][ T5824] ocfs2_init_security_set+0xbd/0xe0 [ 81.693268][ T5824] ocfs2_mknod+0x137f/0x2050 [ 81.698386][ T5824] ocfs2_mkdir+0x191/0x440 [ 81.703316][ T5824] vfs_mkdir+0x303/0x510 [ 81.708096][ T5824] do_mkdirat+0x247/0x590 [ 81.712943][ T5824] __x64_sys_mkdirat+0x87/0xa0 [ 81.718225][ T5824] do_syscall_64+0xf6/0x210 [ 81.723243][ T5824] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.729668][ T5824] [ 81.729668][ T5824] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 81.736970][ T5824] lock_acquire+0x120/0x360 [ 81.741991][ T5824] start_this_handle+0x1fa7/0x21c0 [ 81.747617][ T5824] jbd2__journal_start+0x2c1/0x5b0 [ 81.753242][ T5824] jbd2_journal_start+0x2a/0x40 [ 81.758609][ T5824] ocfs2_start_trans+0x376/0x6d0 [ 81.764069][ T5824] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 81.770489][ T5824] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 81.777341][ T5824] ocfs2_mknod+0xe08/0x2050 [ 81.782381][ T5824] ocfs2_mkdir+0x191/0x440 [ 81.787315][ T5824] vfs_mkdir+0x303/0x510 [ 81.792071][ T5824] do_mkdirat+0x247/0x590 [ 81.796933][ T5824] __x64_sys_mkdirat+0x87/0xa0 [ 81.802217][ T5824] do_syscall_64+0xf6/0x210 [ 81.807233][ T5824] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.813635][ T5824] [ 81.813635][ T5824] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 81.822150][ T5824] lock_acquire+0x120/0x360 [ 81.827169][ T5824] down_read+0x46/0x2e0 [ 81.831839][ T5824] ocfs2_start_trans+0x36a/0x6d0 [ 81.837286][ T5824] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 81.843697][ T5824] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 81.850542][ T5824] ocfs2_mknod+0xe08/0x2050 [ 81.855578][ T5824] ocfs2_mkdir+0x191/0x440 [ 81.860517][ T5824] vfs_mkdir+0x303/0x510 [ 81.865282][ T5824] do_mkdirat+0x247/0x590 [ 81.870140][ T5824] __x64_sys_mkdirat+0x87/0xa0 [ 81.875423][ T5824] do_syscall_64+0xf6/0x210 [ 81.880480][ T5824] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.886901][ T5824] [ 81.886901][ T5824] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 81.894386][ T5824] lock_acquire+0x120/0x360 [ 81.899418][ T5824] ocfs2_start_trans+0x26b/0x6d0 [ 81.904888][ T5824] ocfs2_mknod+0xe93/0x2050 [ 81.909916][ T5824] ocfs2_mkdir+0x191/0x440 [ 81.914895][ T5824] vfs_mkdir+0x303/0x510 [ 81.919656][ T5824] do_mkdirat+0x247/0x590 [ 81.924507][ T5824] __x64_sys_mkdirat+0x87/0xa0 [ 81.929796][ T5824] do_syscall_64+0xf6/0x210 [ 81.934817][ T5824] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.941220][ T5824] [ 81.941220][ T5824] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{4:4}: [ 81.951733][ T5824] validate_chain+0xb9b/0x2140 [ 81.957015][ T5824] __lock_acquire+0xaac/0xd20 [ 81.962204][ T5824] lock_acquire+0x120/0x360 [ 81.967220][ T5824] down_write+0x96/0x1f0 [ 81.971998][ T5824] ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 81.978666][ T5824] ocfs2_reserve_clusters_with_limit+0x1be/0xba0 [ 81.985512][ T5824] ocfs2_init_xattr_set_ctxt+0x376/0x700 [ 81.991654][ T5824] ocfs2_xattr_set+0xb70/0x11f0 [ 81.997017][ T5824] __vfs_setxattr+0x439/0x480 [ 82.002219][ T5824] __vfs_setxattr_noperm+0x12d/0x660 [ 82.008022][ T5824] vfs_setxattr+0x16b/0x2f0 [ 82.013043][ T5824] ovl_get_workdir+0xb86/0x1700 [ 82.018409][ T5824] ovl_fill_super+0x1386/0x35d0 [ 82.023778][ T5824] get_tree_nodev+0xb8/0x150 [ 82.028882][ T5824] vfs_get_tree+0x8f/0x2b0 [ 82.033815][ T5824] do_new_mount+0x24a/0xa40 [ 82.038835][ T5824] __se_sys_mount+0x317/0x410 [ 82.044036][ T5824] do_syscall_64+0xf6/0x210 [ 82.049065][ T5824] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 82.055467][ T5824] [ 82.055467][ T5824] other info that might help us debug this: [ 82.055467][ T5824] [ 82.065681][ T5824] Chain exists of: [ 82.065681][ T5824] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 82.065681][ T5824] [ 82.081412][ T5824] Possible unsafe locking scenario: [ 82.081412][ T5824] [ 82.088854][ T5824] CPU0 CPU1 [ 82.094209][ T5824] ---- ---- [ 82.099564][ T5824] lock(&oi->ip_xattr_sem); [ 82.104160][ T5824] lock(jbd2_handle); [ 82.110747][ T5824] lock(&oi->ip_xattr_sem); [ 82.117873][ T5824] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 82.125153][ T5824] [ 82.125153][ T5824] *** DEADLOCK *** [ 82.125153][ T5824] [ 82.133298][ T5824] 4 locks held by syz-executor108/5824: [ 82.138827][ T5824] #0: ffff8880722720e0 (&type->s_umount_key#43/1){+.+.}-{4:4}, at: alloc_super+0x204/0x970 [ 82.148955][ T5824] #1: ffff88807ffde420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 82.158099][ T5824] #2: ffff88807511b480 (&sb->s_type->i_mutex_key#16){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0 [ 82.168546][ T5824] #3: ffff88807511b1b8 (&oi->ip_xattr_sem){+.+.}-{4:4}, at: ocfs2_xattr_set+0x40f/0x11f0 [ 82.178459][ T5824] [ 82.178459][ T5824] stack backtrace: [ 82.184357][ T5824] CPU: 0 UID: 0 PID: 5824 Comm: syz-executor108 Not tainted 6.15.0-rc5-syzkaller-00123-g2c89c1b655c0 #0 PREEMPT(full) [ 82.184376][ T5824] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025 [ 82.184392][ T5824] Call Trace: [ 82.184401][ T5824] [ 82.184411][ T5824] dump_stack_lvl+0x189/0x250 [ 82.184437][ T5824] ? __pfx_dump_stack_lvl+0x10/0x10 [ 82.184456][ T5824] ? __pfx__printk+0x10/0x10 [ 82.184480][ T5824] ? print_lock_name+0xde/0x100 [ 82.184503][ T5824] print_circular_bug+0x2ee/0x310 [ 82.184528][ T5824] check_noncircular+0x134/0x160 [ 82.184553][ T5824] validate_chain+0xb9b/0x2140 [ 82.184576][ T5824] ? __mutex_unlock_slowpath+0x1cd/0x700 [ 82.184596][ T5824] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 82.184617][ T5824] __lock_acquire+0xaac/0xd20 [ 82.184637][ T5824] ? ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 82.184658][ T5824] lock_acquire+0x120/0x360 [ 82.184675][ T5824] ? ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 82.184697][ T5824] ? is_bpf_text_address+0x292/0x2b0 [ 82.184716][ T5824] ? is_bpf_text_address+0x26/0x2b0 [ 82.184736][ T5824] down_write+0x96/0x1f0 [ 82.184755][ T5824] ? ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 82.184774][ T5824] ? __pfx_down_write+0x10/0x10 [ 82.184792][ T5824] ? arch_stack_walk+0xfc/0x150 [ 82.184813][ T5824] ocfs2_reserve_local_alloc_bits+0x125/0x24e0 [ 82.184833][ T5824] ? stack_trace_save+0x9c/0xe0 [ 82.184847][ T5824] ? __pfx_stack_trace_save+0x10/0x10 [ 82.184862][ T5824] ? check_path+0x21/0x40 [ 82.184882][ T5824] ? check_noncircular+0xe0/0x160 [ 82.184906][ T5824] ? lockdep_unlock+0x89/0x120 [ 82.184922][ T5824] ? validate_chain+0x897/0x2140 [ 82.184943][ T5824] ? __pfx_ocfs2_reserve_local_alloc_bits+0x10/0x10 [ 82.184963][ T5824] ? do_new_mount+0x24a/0xa40 [ 82.184996][ T5824] ? __lock_acquire+0xaac/0xd20 [ 82.185021][ T5824] ? do_raw_spin_unlock+0x122/0x240 [ 82.185037][ T5824] ? _raw_spin_unlock+0x28/0x50 [ 82.185050][ T5824] ? ocfs2_alloc_should_use_local+0x152/0x310 [ 82.185068][ T5824] ? ocfs2_reserve_clusters_with_limit+0x16b/0xba0 [ 82.185094][ T5824] ocfs2_reserve_clusters_with_limit+0x1be/0xba0 [ 82.185120][ T5824] ? __pfx_ocfs2_reserve_clusters_with_limit+0x10/0x10 [ 82.185148][ T5824] ? __pfx_ocfs2_calc_xattr_set_need+0x10/0x10 [ 82.185168][ T5824] ? __lock_acquire+0xaac/0xd20 [ 82.185190][ T5824] ocfs2_init_xattr_set_ctxt+0x376/0x700 [ 82.185219][ T5824] ? __pfx_ocfs2_init_xattr_set_ctxt+0x10/0x10 [ 82.185237][ T5824] ? ocfs2_xattr_set+0xb36/0x11f0 [ 82.185252][ T5824] ? up_write+0x1c4/0x420 [ 82.185263][ T5824] ? ocfs2_xattr_set+0x334/0x11f0 [ 82.185277][ T5824] ocfs2_xattr_set+0xb70/0x11f0 [ 82.185299][ T5824] ? __pfx_ocfs2_xattr_set+0x10/0x10 [ 82.185313][ T5824] ? up+0xde/0x150 [ 82.185330][ T5824] ? smack_log+0xef/0x3f0 [ 82.185351][ T5824] ? __pfx___console_unlock+0x10/0x10 [ 82.185363][ T5824] ? smk_access+0x14c/0x4e0 [ 82.185383][ T5824] ? smk_tskacc+0x2fc/0x370 [ 82.185403][ T5824] ? posix_xattr_acl+0x93/0xc0 [ 82.185421][ T5824] ? evm_protect_xattr+0x4d4/0xa90 [ 82.185439][ T5824] ? __pfx_evm_protect_xattr+0x10/0x10 [ 82.185454][ T5824] ? safesetid_security_capable+0xa9/0x1a0 [ 82.185469][ T5824] ? __pfx_ocfs2_xattr_trusted_set+0x10/0x10 [ 82.185484][ T5824] __vfs_setxattr+0x439/0x480 [ 82.185508][ T5824] __vfs_setxattr_noperm+0x12d/0x660 [ 82.185530][ T5824] vfs_setxattr+0x16b/0x2f0 [ 82.185552][ T5824] ? __pfx_vfs_setxattr+0x10/0x10 [ 82.185572][ T5824] ? up_write+0x1c4/0x420 [ 82.185586][ T5824] ovl_get_workdir+0xb86/0x1700 [ 82.185607][ T5824] ? __pfx_ovl_get_workdir+0x10/0x10 [ 82.185632][ T5824] ? do_raw_spin_unlock+0x122/0x240 [ 82.185647][ T5824] ? _raw_spin_unlock+0x28/0x50 [ 82.185659][ T5824] ? ovl_inuse_trylock+0xae/0xf0 [ 82.185676][ T5824] ovl_fill_super+0x1386/0x35d0 [ 82.185697][ T5824] ? rcu_is_watching+0x15/0xb0 [ 82.185719][ T5824] ? shrinker_register+0x124/0x230 [ 82.185738][ T5824] ? __pfx_ovl_fill_super+0x10/0x10 [ 82.185755][ T5824] ? __pfx___mutex_lock+0x10/0x10 [ 82.185771][ T5824] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 82.185789][ T5824] ? __raw_spin_lock_init+0x45/0x100 [ 82.185807][ T5824] ? sget_fc+0x962/0xa40 [ 82.185823][ T5824] ? __pfx_set_anon_super_fc+0x10/0x10 [ 82.185839][ T5824] ? __pfx_ovl_fill_super+0x10/0x10 [ 82.185856][ T5824] get_tree_nodev+0xb8/0x150 [ 82.185874][ T5824] vfs_get_tree+0x8f/0x2b0 [ 82.185893][ T5824] do_new_mount+0x24a/0xa40 [ 82.185916][ T5824] __se_sys_mount+0x317/0x410 [ 82.185938][ T5824] ? __pfx___se_sys_mount+0x10/0x10 [ 82.185961][ T5824] ? __x64_sys_mount+0x20/0xc0 [ 82.185987][ T5824] do_syscall_64+0xf6/0x210 [ 82.186003][ T5824] ? clear_bhb_loop+0x45/0xa0 [ 82.186018][ T5824] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 82.186032][ T5824] RIP: 0033:0x7f9e52c3bab9 [ 82.186051][ T5824] 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 [ 82.186062][ T5824] RSP: 002b:00007ffe95eb0ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 82.186076][ T5824] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f9e52c3bab9 [ 82.186086][ T5824] RDX: 0000200000000340 RSI: 00002000000000c0 RDI: 0000000000000000 [ 82.186095][ T5824] RBP: 00007f9e52cb2610 R08: 0000200000000080 R09: 0000000000000000 [ 82.186104][ T5824] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 82.186112][ T5824] R13: 00007ffe95eb10c8 R14: 0000000000000001 R15: 0000000000000001 [ 82.186126][ T5824] mount(NULL, "./bus", "overlay", 0, "workdir=./bus,lowerdir=./file0,upperdir=./file1,") = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [