./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2546287993 <...> Warning: Permanently added '10.128.1.101' (ED25519) to the list of known hosts. execve("./syz-executor2546287993", ["./syz-executor2546287993"], 0x7ffcff1c5a00 /* 10 vars */) = 0 brk(NULL) = 0x55555a1cd000 brk(0x55555a1cdd00) = 0x55555a1cdd00 arch_prctl(ARCH_SET_FS, 0x55555a1cd380) = 0 set_tid_address(0x55555a1cd650) = 5822 set_robust_list(0x55555a1cd660, 24) = 0 rseq(0x55555a1cdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2546287993", 4096) = 28 getrandom("\x9f\x3c\x78\x2e\xd2\xd1\x29\xc5", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555a1cdd00 brk(0x55555a1eed00) = 0x55555a1eed00 brk(0x55555a1ef000) = 0x55555a1ef000 mprotect(0x7fe3e1754000, 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) = 0x7fe3d9200000 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(0x7fe3d9200000, 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.103658][ T5822] loop0: detected capacity change from 0 to 32768 [ 87.141245][ T5822] ======================================================= 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) openat(AT_FDCWD, "cpuset.effective_cpus", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 87.141245][ T5822] WARNING: The mand mount option has been deprecated and [ 87.141245][ T5822] and is ignored by this kernel. Remove the mand [ 87.141245][ T5822] option from the mount to silence this warning. [ 87.141245][ T5822] ======================================================= [ 87.191540][ T5822] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 87.214063][ T5822] [ 87.216409][ T5822] ====================================================== [ 87.223412][ T5822] WARNING: possible circular locking dependency detected [ 87.230427][ T5822] 6.15.0-rc4-syzkaller-00011-gf15d97df5afa #0 Not tainted [ 87.237519][ T5822] ------------------------------------------------------ [ 87.244524][ T5822] syz-executor254/5822 is trying to acquire lock: [ 87.250919][ T5822] ffff88807c3cdbe0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 87.261568][ T5822] [ 87.261568][ T5822] but task is already holding lock: [ 87.268920][ T5822] ffff88807c3cdc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 87.279535][ T5822] [ 87.279535][ T5822] which lock already depends on the new lock. [ 87.279535][ T5822] [ 87.289934][ T5822] [ 87.289934][ T5822] the existing dependency chain (in reverse order) is: [ 87.299055][ T5822] [ 87.299055][ T5822] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 87.306861][ T5822] lock_acquire+0x120/0x360 [ 87.311877][ T5822] down_write+0x96/0x1f0 [ 87.316640][ T5822] ocfs2_xattr_set_handle+0x3b0/0x7a0 [ 87.322534][ T5822] ocfs2_init_security_set+0xbd/0xe0 [ 87.328338][ T5822] ocfs2_mknod+0x137f/0x2050 [ 87.333450][ T5822] ocfs2_create+0x1a5/0x440 [ 87.338478][ T5822] path_openat+0x14f1/0x3830 [ 87.343589][ T5822] do_filp_open+0x1fa/0x410 [ 87.348619][ T5822] do_sys_openat2+0x121/0x1c0 [ 87.353817][ T5822] __x64_sys_openat+0x138/0x170 [ 87.359193][ T5822] do_syscall_64+0xf6/0x210 [ 87.364245][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.370659][ T5822] [ 87.370659][ T5822] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 87.377956][ T5822] lock_acquire+0x120/0x360 [ 87.383001][ T5822] start_this_handle+0x1fa7/0x21c0 [ 87.388626][ T5822] jbd2__journal_start+0x2c1/0x5b0 [ 87.394254][ T5822] jbd2_journal_start+0x2a/0x40 [ 87.399626][ T5822] ocfs2_start_trans+0x376/0x6d0 [ 87.405081][ T5822] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 87.411497][ T5822] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 87.418352][ T5822] ocfs2_mknod+0xe08/0x2050 [ 87.423376][ T5822] ocfs2_create+0x1a5/0x440 [ 87.428403][ T5822] path_openat+0x14f1/0x3830 [ 87.433525][ T5822] do_filp_open+0x1fa/0x410 [ 87.438547][ T5822] do_sys_openat2+0x121/0x1c0 [ 87.443825][ T5822] __x64_sys_openat+0x138/0x170 [ 87.449196][ T5822] do_syscall_64+0xf6/0x210 [ 87.454221][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.460627][ T5822] [ 87.460627][ T5822] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 87.469161][ T5822] lock_acquire+0x120/0x360 [ 87.474194][ T5822] down_read+0x46/0x2e0 [ 87.478875][ T5822] ocfs2_start_trans+0x36a/0x6d0 [ 87.484330][ T5822] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 87.490759][ T5822] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 87.497610][ T5822] ocfs2_mknod+0xe08/0x2050 [ 87.502636][ T5822] ocfs2_create+0x1a5/0x440 [ 87.507661][ T5822] path_openat+0x14f1/0x3830 [ 87.512788][ T5822] do_filp_open+0x1fa/0x410 [ 87.517818][ T5822] do_sys_openat2+0x121/0x1c0 [ 87.523012][ T5822] __x64_sys_openat+0x138/0x170 [ 87.528409][ T5822] do_syscall_64+0xf6/0x210 [ 87.533433][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.539930][ T5822] [ 87.539930][ T5822] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 87.547414][ T5822] lock_acquire+0x120/0x360 [ 87.552440][ T5822] ocfs2_start_trans+0x26b/0x6d0 [ 87.557897][ T5822] ocfs2_truncate_file+0x643/0x1420 [ 87.563630][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 87.568919][ T5822] notify_change+0xb33/0xe40 [ 87.574039][ T5822] do_truncate+0x19a/0x220 [ 87.578979][ T5822] path_openat+0x306c/0x3830 [ 87.584089][ T5822] do_filp_open+0x1fa/0x410 [ 87.589110][ T5822] do_sys_openat2+0x121/0x1c0 [ 87.594303][ T5822] __x64_sys_openat+0x138/0x170 [ 87.599677][ T5822] do_syscall_64+0xf6/0x210 [ 87.604693][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.611103][ T5822] [ 87.611103][ T5822] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 87.618920][ T5822] validate_chain+0xb9b/0x2140 [ 87.624211][ T5822] __lock_acquire+0xaac/0xd20 [ 87.629424][ T5822] lock_acquire+0x120/0x360 [ 87.634446][ T5822] down_write+0x96/0x1f0 [ 87.639208][ T5822] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 87.645714][ T5822] ocfs2_truncate_file+0xda0/0x1420 [ 87.651434][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 87.656732][ T5822] notify_change+0xb33/0xe40 [ 87.661841][ T5822] do_truncate+0x19a/0x220 [ 87.666779][ T5822] path_openat+0x306c/0x3830 [ 87.671884][ T5822] do_filp_open+0x1fa/0x410 [ 87.676910][ T5822] do_sys_openat2+0x121/0x1c0 [ 87.682125][ T5822] __x64_sys_openat+0x138/0x170 [ 87.687491][ T5822] do_syscall_64+0xf6/0x210 [ 87.692507][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.698916][ T5822] [ 87.698916][ T5822] other info that might help us debug this: [ 87.698916][ T5822] [ 87.709139][ T5822] Chain exists of: [ 87.709139][ T5822] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 87.709139][ T5822] [ 87.722187][ T5822] Possible unsafe locking scenario: [ 87.722187][ T5822] [ 87.729624][ T5822] CPU0 CPU1 [ 87.734978][ T5822] ---- ---- [ 87.740336][ T5822] lock(&oi->ip_xattr_sem); [ 87.744922][ T5822] lock(jbd2_handle); [ 87.751505][ T5822] lock(&oi->ip_xattr_sem); [ 87.758606][ T5822] lock(&oi->ip_alloc_sem); [ 87.763226][ T5822] [ 87.763226][ T5822] *** DEADLOCK *** [ 87.763226][ T5822] [ 87.771361][ T5822] 3 locks held by syz-executor254/5822: [ 87.776894][ T5822] #0: ffff88802e52e420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 87.786049][ T5822] #1: ffff88807c3cdf40 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x186/0x220 [ 87.796440][ T5822] #2: ffff88807c3cdc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 87.807515][ T5822] [ 87.807515][ T5822] stack backtrace: [ 87.813410][ T5822] CPU: 1 UID: 0 PID: 5822 Comm: syz-executor254 Not tainted 6.15.0-rc4-syzkaller-00011-gf15d97df5afa #0 PREEMPT(full) [ 87.813426][ T5822] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 87.813440][ T5822] Call Trace: [ 87.813448][ T5822] [ 87.813457][ T5822] dump_stack_lvl+0x189/0x250 [ 87.813482][ T5822] ? __pfx_dump_stack_lvl+0x10/0x10 [ 87.813499][ T5822] ? __pfx__printk+0x10/0x10 [ 87.813520][ T5822] ? print_lock_name+0xde/0x100 [ 87.813540][ T5822] print_circular_bug+0x2ee/0x310 [ 87.813562][ T5822] check_noncircular+0x134/0x160 [ 87.813584][ T5822] validate_chain+0xb9b/0x2140 [ 87.813610][ T5822] __lock_acquire+0xaac/0xd20 [ 87.813628][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 87.813648][ T5822] lock_acquire+0x120/0x360 [ 87.813663][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 87.813688][ T5822] down_write+0x96/0x1f0 [ 87.813703][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 87.813723][ T5822] ? __pfx_down_write+0x10/0x10 [ 87.813740][ T5822] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 87.813762][ T5822] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 87.813783][ T5822] ? up_write+0x1c4/0x420 [ 87.813796][ T5822] ocfs2_truncate_file+0xda0/0x1420 [ 87.813817][ T5822] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 87.813833][ T5822] ? do_raw_spin_unlock+0x122/0x240 [ 87.813847][ T5822] ? _raw_spin_unlock+0x28/0x50 [ 87.813864][ T5822] ? ocfs2_inode_lock_tracker+0x3ec/0x660 [ 87.813886][ T5822] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 87.813904][ T5822] ? ocfs2_rw_lock+0x13a/0x240 [ 87.813921][ T5822] ? __pfx___dquot_initialize+0x10/0x10 [ 87.813941][ T5822] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 87.813957][ T5822] ? setattr_prepare+0x1e7/0xac0 [ 87.813974][ T5822] ? inode_newsize_ok+0x11b/0x1c0 [ 87.813990][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 87.814010][ T5822] ? __pfx_ocfs2_setattr+0x10/0x10 [ 87.814027][ T5822] ? smk_tskacc+0x2fc/0x370 [ 87.814045][ T5822] ? smack_inode_setattr+0x17b/0x200 [ 87.814063][ T5822] ? __pfx_smack_inode_setattr+0x10/0x10 [ 87.814084][ T5822] ? current_time+0x222/0x370 [ 87.814096][ T5822] ? evm_inode_setattr+0x1b6/0x7d0 [ 87.814110][ T5822] ? __pfx_current_time+0x10/0x10 [ 87.814124][ T5822] ? try_break_deleg+0x79/0x130 [ 87.814141][ T5822] ? __pfx_ocfs2_setattr+0x10/0x10 [ 87.814157][ T5822] notify_change+0xb33/0xe40 [ 87.814176][ T5822] do_truncate+0x19a/0x220 [ 87.814194][ T5822] ? __pfx_do_truncate+0x10/0x10 [ 87.814217][ T5822] path_openat+0x306c/0x3830 [ 87.814232][ T5822] ? arch_stack_walk+0xfc/0x150 [ 87.814257][ T5822] ? __pfx_path_openat+0x10/0x10 [ 87.814271][ T5822] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.814290][ T5822] do_filp_open+0x1fa/0x410 [ 87.814306][ T5822] ? __pfx_do_filp_open+0x10/0x10 [ 87.814327][ T5822] ? _raw_spin_unlock+0x28/0x50 [ 87.814345][ T5822] ? alloc_fd+0x64c/0x6c0 [ 87.814366][ T5822] do_sys_openat2+0x121/0x1c0 [ 87.814386][ T5822] ? __pfx_do_sys_openat2+0x10/0x10 [ 87.814401][ T5822] ? rcu_is_watching+0x15/0xb0 [ 87.814421][ T5822] __x64_sys_openat+0x138/0x170 [ 87.814436][ T5822] do_syscall_64+0xf6/0x210 [ 87.814450][ T5822] ? asm_common_interrupt+0x26/0x40 [ 87.814462][ T5822] ? clear_bhb_loop+0x45/0xa0 [ 87.814476][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.814489][ T5822] RIP: 0033:0x7fe3e16dd6b9 [ 87.814505][ T5822] 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 [ 87.814516][ T5822] RSP: 002b:00007fff50ad03d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 openat(AT_FDCWD, "cpuset.effective_cpus", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 87.814530][ T5822] RAX: ffffffffffffffda RBX: 00002000000