./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3819513447 <...> Warning: Permanently added '10.128.0.18' (ED25519) to the list of known hosts. execve("./syz-executor3819513447", ["./syz-executor3819513447"], 0x7ffcdde8c050 /* 10 vars */) = 0 brk(NULL) = 0x55555ea52000 brk(0x55555ea52d00) = 0x55555ea52d00 arch_prctl(ARCH_SET_FS, 0x55555ea52380) = 0 set_tid_address(0x55555ea52650) = 5822 set_robust_list(0x55555ea52660, 24) = 0 rseq(0x55555ea52ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3819513447", 4096) = 28 getrandom("\x75\x12\xba\xc2\xf2\x96\xd8\x25", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555ea52d00 brk(0x55555ea73d00) = 0x55555ea73d00 brk(0x55555ea74000) = 0x55555ea74000 mprotect(0x7fdb462b0000, 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) = 0x7fdb3dc00000 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(0x7fdb3dc00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file3", 0777) = 0 [ 90.463066][ T5822] loop0: detected capacity change from 0 to 32768 [ 90.513814][ T5822] ======================================================= [ 90.513814][ T5822] WARNING: The mand mount option has been deprecated and [ 90.513814][ T5822] and is ignored by this kernel. Remove the mand [ 90.513814][ T5822] option from the mount to silence this warning. [ 90.513814][ T5822] ======================================================= mount("/dev/loop0", "./file3", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NOATIME|MS_NODIRATIME, "acl,heartbeat=none,heartbeat=none,coherency=full,coherency=full,coherency=buffered,errors=continue,u"...) = 0 openat(AT_FDCWD, "./file3", O_RDONLY|O_DIRECTORY) = 3 chdir("./file3") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) openat(AT_FDCWD, "cpu.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 90.573518][ T5822] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 90.598680][ T5822] [ 90.601044][ T5822] ====================================================== [ 90.608150][ T5822] WARNING: possible circular locking dependency detected [ 90.615179][ T5822] 6.15.0-rc5-syzkaller-00275-gbec6f00f120e #0 Not tainted [ 90.622281][ T5822] ------------------------------------------------------ [ 90.629310][ T5822] syz-executor381/5822 is trying to acquire lock: [ 90.635734][ T5822] ffff8880770d22e0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 90.646415][ T5822] [ 90.646415][ T5822] but task is already holding lock: [ 90.653775][ T5822] ffff8880770d2378 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 90.664401][ T5822] [ 90.664401][ T5822] which lock already depends on the new lock. [ 90.664401][ T5822] [ 90.674805][ T5822] [ 90.674805][ T5822] the existing dependency chain (in reverse order) is: [ 90.683842][ T5822] [ 90.683842][ T5822] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 90.691694][ T5822] lock_acquire+0x120/0x360 [ 90.696735][ T5822] down_read+0x46/0x2e0 [ 90.701428][ T5822] ocfs2_init_acl+0x2f9/0x720 [ 90.706710][ T5822] ocfs2_mknod+0x1321/0x2050 [ 90.711917][ T5822] ocfs2_create+0x1a5/0x440 [ 90.717030][ T5822] path_openat+0x14f1/0x3830 [ 90.722140][ T5822] do_filp_open+0x1fa/0x410 [ 90.727167][ T5822] do_sys_openat2+0x121/0x1c0 [ 90.732625][ T5822] __x64_sys_openat+0x138/0x170 [ 90.738082][ T5822] do_syscall_64+0xf6/0x210 [ 90.743105][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.749540][ T5822] [ 90.749540][ T5822] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 90.756860][ T5822] lock_acquire+0x120/0x360 [ 90.761988][ T5822] start_this_handle+0x1fa7/0x21c0 [ 90.767620][ T5822] jbd2__journal_start+0x2c1/0x5b0 [ 90.773248][ T5822] jbd2_journal_start+0x2a/0x40 [ 90.778615][ T5822] ocfs2_start_trans+0x376/0x6d0 [ 90.784103][ T5822] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 90.790536][ T5822] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 90.797400][ T5822] ocfs2_mknod+0xe08/0x2050 [ 90.802432][ T5822] ocfs2_create+0x1a5/0x440 [ 90.807463][ T5822] path_openat+0x14f1/0x3830 [ 90.812599][ T5822] do_filp_open+0x1fa/0x410 [ 90.817630][ T5822] do_sys_openat2+0x121/0x1c0 [ 90.822856][ T5822] __x64_sys_openat+0x138/0x170 [ 90.828257][ T5822] do_syscall_64+0xf6/0x210 [ 90.833294][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.839728][ T5822] [ 90.839728][ T5822] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 90.848436][ T5822] lock_acquire+0x120/0x360 [ 90.853491][ T5822] down_read+0x46/0x2e0 [ 90.858182][ T5822] ocfs2_start_trans+0x36a/0x6d0 [ 90.863644][ T5822] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 90.870068][ T5822] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 90.876973][ T5822] ocfs2_mknod+0xe08/0x2050 [ 90.882293][ T5822] ocfs2_create+0x1a5/0x440 [ 90.887466][ T5822] path_openat+0x14f1/0x3830 [ 90.892601][ T5822] do_filp_open+0x1fa/0x410 [ 90.897627][ T5822] do_sys_openat2+0x121/0x1c0 [ 90.902827][ T5822] __x64_sys_openat+0x138/0x170 [ 90.908220][ T5822] do_syscall_64+0xf6/0x210 [ 90.913244][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.919661][ T5822] [ 90.919661][ T5822] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 90.927144][ T5822] lock_acquire+0x120/0x360 [ 90.932198][ T5822] ocfs2_start_trans+0x26b/0x6d0 [ 90.937688][ T5822] ocfs2_truncate_file+0x643/0x1420 [ 90.943456][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 90.948742][ T5822] notify_change+0xb33/0xe40 [ 90.953854][ T5822] do_truncate+0x19a/0x220 [ 90.958794][ T5822] path_openat+0x306c/0x3830 [ 90.963901][ T5822] do_filp_open+0x1fa/0x410 [ 90.968937][ T5822] do_sys_openat2+0x121/0x1c0 [ 90.974157][ T5822] __x64_sys_openat+0x138/0x170 [ 90.979528][ T5822] do_syscall_64+0xf6/0x210 [ 90.984662][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.991080][ T5822] [ 90.991080][ T5822] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 90.998902][ T5822] validate_chain+0xb9b/0x2140 [ 91.004201][ T5822] __lock_acquire+0xaac/0xd20 [ 91.009414][ T5822] lock_acquire+0x120/0x360 [ 91.014456][ T5822] down_write+0x96/0x1f0 [ 91.019223][ T5822] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 91.026008][ T5822] ocfs2_truncate_file+0xda0/0x1420 [ 91.032078][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 91.037559][ T5822] notify_change+0xb33/0xe40 [ 91.042954][ T5822] do_truncate+0x19a/0x220 [ 91.048259][ T5822] path_openat+0x306c/0x3830 [ 91.053528][ T5822] do_filp_open+0x1fa/0x410 [ 91.059019][ T5822] do_sys_openat2+0x121/0x1c0 [ 91.064246][ T5822] __x64_sys_openat+0x138/0x170 [ 91.069645][ T5822] do_syscall_64+0xf6/0x210 [ 91.074703][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 91.081326][ T5822] [ 91.081326][ T5822] other info that might help us debug this: [ 91.081326][ T5822] [ 91.091581][ T5822] Chain exists of: [ 91.091581][ T5822] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 91.091581][ T5822] [ 91.104645][ T5822] Possible unsafe locking scenario: [ 91.104645][ T5822] [ 91.112106][ T5822] CPU0 CPU1 [ 91.117463][ T5822] ---- ---- [ 91.122837][ T5822] lock(&oi->ip_xattr_sem); [ 91.127451][ T5822] lock(jbd2_handle); [ 91.134061][ T5822] lock(&oi->ip_xattr_sem); [ 91.141264][ T5822] lock(&oi->ip_alloc_sem); [ 91.145899][ T5822] [ 91.145899][ T5822] *** DEADLOCK *** [ 91.145899][ T5822] [ 91.154152][ T5822] 3 locks held by syz-executor381/5822: [ 91.159716][ T5822] #0: ffff888067cee420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 91.168883][ T5822] #1: ffff8880770d2640 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x186/0x220 [ 91.179296][ T5822] #2: ffff8880770d2378 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 91.190383][ T5822] [ 91.190383][ T5822] stack backtrace: [ 91.196317][ T5822] CPU: 0 UID: 0 PID: 5822 Comm: syz-executor381 Not tainted 6.15.0-rc5-syzkaller-00275-gbec6f00f120e #0 PREEMPT(full) [ 91.196336][ T5822] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 91.196351][ T5822] Call Trace: [ 91.196359][ T5822] [ 91.196368][ T5822] dump_stack_lvl+0x189/0x250 [ 91.196395][ T5822] ? __pfx_dump_stack_lvl+0x10/0x10 [ 91.196414][ T5822] ? __pfx__printk+0x10/0x10 [ 91.196436][ T5822] ? print_lock_name+0xde/0x100 [ 91.196458][ T5822] print_circular_bug+0x2ee/0x310 [ 91.196482][ T5822] check_noncircular+0x134/0x160 [ 91.196505][ T5822] validate_chain+0xb9b/0x2140 [ 91.196533][ T5822] __lock_acquire+0xaac/0xd20 [ 91.196552][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 91.196575][ T5822] lock_acquire+0x120/0x360 [ 91.196592][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 91.196618][ T5822] down_write+0x96/0x1f0 [ 91.196636][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 91.196658][ T5822] ? __pfx_down_write+0x10/0x10 [ 91.196679][ T5822] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 91.196702][ T5822] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 91.196725][ T5822] ? up_write+0x1c4/0x420 [ 91.196739][ T5822] ocfs2_truncate_file+0xda0/0x1420 [ 91.196761][ T5822] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 91.196778][ T5822] ? do_raw_spin_unlock+0x122/0x240 [ 91.196793][ T5822] ? _raw_spin_unlock+0x28/0x50 [ 91.196805][ T5822] ? ocfs2_inode_lock_tracker+0x3ec/0x660 [ 91.196829][ T5822] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 91.196849][ T5822] ? ocfs2_rw_lock+0x13a/0x240 [ 91.196867][ T5822] ? __pfx___dquot_initialize+0x10/0x10 [ 91.196889][ T5822] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 91.196906][ T5822] ? setattr_prepare+0x1e7/0xac0 [ 91.196925][ T5822] ? jbd2_journal_begin_ordered_truncate+0xbb/0x150 [ 91.196945][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 91.196967][ T5822] ? __pfx_ocfs2_setattr+0x10/0x10 [ 91.196985][ T5822] ? smk_tskacc+0x2fc/0x370 [ 91.197006][ T5822] ? smack_inode_setattr+0x17b/0x200 [ 91.197026][ T5822] ? __pfx_smack_inode_setattr+0x10/0x10 [ 91.197048][ T5822] ? current_time+0x222/0x370 [ 91.197062][ T5822] ? evm_inode_setattr+0x1b6/0x7d0 [ 91.197077][ T5822] ? __pfx_current_time+0x10/0x10 [ 91.197093][ T5822] ? try_break_deleg+0x79/0x130 [ 91.197119][ T5822] ? __pfx_ocfs2_setattr+0x10/0x10 [ 91.197137][ T5822] notify_change+0xb33/0xe40 [ 91.197157][ T5822] do_truncate+0x19a/0x220 [ 91.197176][ T5822] ? __pfx_do_truncate+0x10/0x10 [ 91.197201][ T5822] path_openat+0x306c/0x3830 [ 91.197217][ T5822] ? arch_stack_walk+0xfc/0x150 [ 91.197244][ T5822] ? __pfx_path_openat+0x10/0x10 [ 91.197259][ T5822] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 91.197279][ T5822] do_filp_open+0x1fa/0x410 [ 91.197295][ T5822] ? __pfx_do_filp_open+0x10/0x10 [ 91.197318][ T5822] ? _raw_spin_unlock+0x28/0x50 [ 91.197330][ T5822] ? alloc_fd+0x64c/0x6c0 [ 91.197353][ T5822] do_sys_openat2+0x121/0x1c0 [ 91.197368][ T5822] ? __pfx_do_sys_openat2+0x10/0x10 [ 91.197384][ T5822] ? rcu_is_watching+0x15/0xb0 [ 91.197406][ T5822] __x64_sys_openat+0x138/0x170 [ 91.197422][ T5822] do_syscall_64+0xf6/0x210 [ 91.197440][ T5822] ? clear_bhb_loop+0x45/0xa0 [ 91.197455][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 91.197469][ T5822] RIP: 0033:0x7fdb46239739 [ 91.197495][ 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 [ 91.197511][ T5822] RSP: 002b:00007ffed660f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 91.197526][ T5822] RAX: ffffffffffffffda RBX: 0000200000000080 RCX: 00007fdb46239739 [ 91.197536][ T5822] RDX: 000000000000275a RSI: 0000200000000080 RDI: 00000000ffffff9c [ 91.197545][ T5822] RBP: 746174732e757063 R08: 0000000000000000 R09: 0000000000000000 [ 91.197554][ T5822] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 openat(AT_FDCWD, "cpu.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 91.197562][ T5822] R13: 0