./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor185764917 <...> [ 97.340181][ T976] cfg80211: failed to load regulatory.db Warning: Permanently added '10.128.0.119' (ED25519) to the list of known hosts. execve("./syz-executor185764917", ["./syz-executor185764917"], 0x7ffd74bb6870 /* 10 vars */) = 0 brk(NULL) = 0x5555586d7000 brk(0x5555586d7d00) = 0x5555586d7d00 arch_prctl(ARCH_SET_FS, 0x5555586d7380) = 0 set_tid_address(0x5555586d7650) = 5818 set_robust_list(0x5555586d7660, 24) = 0 rseq(0x5555586d7ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor185764917", 4096) = 27 getrandom("\x23\x08\xa5\x41\x19\x1d\xd2\x1b", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555586d7d00 brk(0x5555586f8d00) = 0x5555586f8d00 brk(0x5555586f9000) = 0x5555586f9000 mprotect(0x7f80a3e0a000, 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) = 0x7f809b800000 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(0x7f809b800000, 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 [ 102.420603][ T5818] loop0: detected capacity change from 0 to 32768 [ 102.467685][ T5818] ======================================================= [ 102.467685][ T5818] WARNING: The mand mount option has been deprecated and [ 102.467685][ T5818] and is ignored by this kernel. Remove the mand [ 102.467685][ T5818] option from the mount to silence this warning. [ 102.467685][ T5818] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,errors=remount-ro,coherency=full,coherency=full,localflocks,errors=remount-ro,acl"...) = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 [ 102.520940][ T5818] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 102.542963][ T5818] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) open("./file1", O_RDWR|O_CREAT|O_TRUNC|O_APPEND|O_SYNC|O_LARGEFILE|O_NOATIME|O_CLOEXEC|0x3c, 0367) = 4 [ 102.622840][ T5818] [ 102.625750][ T5818] ====================================================== [ 102.633392][ T5818] WARNING: possible circular locking dependency detected [ 102.641339][ T5818] 6.15.0-rc4-syzkaller-00189-g2bfcee565c3a #0 Not tainted [ 102.650809][ T5818] ------------------------------------------------------ [ 102.658107][ T5818] syz-executor185/5818 is trying to acquire lock: [ 102.667585][ T5818] ffff888076cd5be0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 102.678900][ T5818] [ 102.678900][ T5818] but task is already holding lock: [ 102.687354][ T5818] ffff888076cd5c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 102.700054][ T5818] [ 102.700054][ T5818] which lock already depends on the new lock. [ 102.700054][ T5818] [ 102.711546][ T5818] [ 102.711546][ T5818] the existing dependency chain (in reverse order) is: [ 102.721847][ T5818] [ 102.721847][ T5818] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 102.729966][ T5818] lock_acquire+0x120/0x360 [ 102.736726][ T5818] down_read+0x46/0x2e0 [ 102.742758][ T5818] ocfs2_init_acl+0x2f9/0x720 [ 102.749934][ T5818] ocfs2_mknod+0x1321/0x2050 [ 102.755218][ T5818] ocfs2_create+0x1a5/0x440 [ 102.763056][ T5818] path_openat+0x14f1/0x3830 [ 102.768835][ T5818] do_filp_open+0x1fa/0x410 [ 102.774467][ T5818] do_sys_openat2+0x121/0x1c0 [ 102.780812][ T5818] __x64_sys_open+0x11e/0x150 [ 102.786239][ T5818] do_syscall_64+0xf6/0x210 [ 102.792975][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.800385][ T5818] [ 102.800385][ T5818] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 102.810069][ T5818] lock_acquire+0x120/0x360 [ 102.816261][ T5818] start_this_handle+0x1fa7/0x21c0 [ 102.821976][ T5818] jbd2__journal_start+0x2c1/0x5b0 [ 102.827992][ T5818] jbd2_journal_start+0x2a/0x40 [ 102.833639][ T5818] ocfs2_start_trans+0x376/0x6d0 [ 102.839433][ T5818] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 102.853669][ T5818] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 102.864037][ T5818] ocfs2_mknod+0xe08/0x2050 [ 102.870640][ T5818] ocfs2_create+0x1a5/0x440 [ 102.876657][ T5818] path_openat+0x14f1/0x3830 [ 102.882775][ T5818] do_filp_open+0x1fa/0x410 [ 102.888094][ T5818] do_sys_openat2+0x121/0x1c0 [ 102.893679][ T5818] __x64_sys_open+0x11e/0x150 [ 102.899806][ T5818] do_syscall_64+0xf6/0x210 [ 102.905061][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.911897][ T5818] [ 102.911897][ T5818] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 102.922013][ T5818] lock_acquire+0x120/0x360 [ 102.928716][ T5818] down_read+0x46/0x2e0 [ 102.933598][ T5818] ocfs2_start_trans+0x36a/0x6d0 [ 102.939155][ T5818] ocfs2_reserve_suballoc_bits+0x711/0x45f0 [ 102.946227][ T5818] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 102.953342][ T5818] ocfs2_mknod+0xe08/0x2050 [ 102.958858][ T5818] ocfs2_create+0x1a5/0x440 [ 102.964746][ T5818] path_openat+0x14f1/0x3830 [ 102.970476][ T5818] do_filp_open+0x1fa/0x410 [ 102.975923][ T5818] do_sys_openat2+0x121/0x1c0 [ 102.981939][ T5818] __x64_sys_open+0x11e/0x150 [ 102.987704][ T5818] do_syscall_64+0xf6/0x210 [ 102.993225][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 102.999686][ T5818] [ 102.999686][ T5818] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 103.007447][ T5818] lock_acquire+0x120/0x360 [ 103.012978][ T5818] ocfs2_start_trans+0x26b/0x6d0 [ 103.018951][ T5818] ocfs2_truncate_file+0x643/0x1420 [ 103.024801][ T5818] ocfs2_setattr+0x1520/0x1b40 [ 103.031358][ T5818] notify_change+0xb33/0xe40 [ 103.036622][ T5818] do_truncate+0x19a/0x220 [ 103.042533][ T5818] path_openat+0x306c/0x3830 [ 103.050346][ T5818] do_filp_open+0x1fa/0x410 [ 103.056720][ T5818] do_sys_openat2+0x121/0x1c0 [ 103.062089][ T5818] __x64_sys_open+0x11e/0x150 [ 103.069140][ T5818] do_syscall_64+0xf6/0x210 [ 103.074328][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.081034][ T5818] [ 103.081034][ T5818] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 103.089509][ T5818] validate_chain+0xb9b/0x2140 [ 103.095555][ T5818] __lock_acquire+0xaac/0xd20 [ 103.100791][ T5818] lock_acquire+0x120/0x360 [ 103.106116][ T5818] down_write+0x96/0x1f0 [ 103.111701][ T5818] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 103.119327][ T5818] ocfs2_truncate_file+0xda0/0x1420 [ 103.125417][ T5818] ocfs2_setattr+0x1520/0x1b40 [ 103.131378][ T5818] notify_change+0xb33/0xe40 [ 103.136514][ T5818] do_truncate+0x19a/0x220 [ 103.142018][ T5818] path_openat+0x306c/0x3830 [ 103.147929][ T5818] do_filp_open+0x1fa/0x410 [ 103.152990][ T5818] do_sys_openat2+0x121/0x1c0 [ 103.159115][ T5818] __x64_sys_open+0x11e/0x150 [ 103.166015][ T5818] do_syscall_64+0xf6/0x210 [ 103.171162][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.178603][ T5818] [ 103.178603][ T5818] other info that might help us debug this: [ 103.178603][ T5818] [ 103.190321][ T5818] Chain exists of: [ 103.190321][ T5818] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 103.190321][ T5818] [ 103.204273][ T5818] Possible unsafe locking scenario: [ 103.204273][ T5818] [ 103.212269][ T5818] CPU0 CPU1 [ 103.217764][ T5818] ---- ---- [ 103.223776][ T5818] lock(&oi->ip_xattr_sem); [ 103.229356][ T5818] lock(jbd2_handle); [ 103.236182][ T5818] lock(&oi->ip_xattr_sem); [ 103.246903][ T5818] lock(&oi->ip_alloc_sem); [ 103.252268][ T5818] [ 103.252268][ T5818] *** DEADLOCK *** [ 103.252268][ T5818] [ 103.261672][ T5818] 3 locks held by syz-executor185/5818: [ 103.267854][ T5818] #0: ffff888056292420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 103.278071][ T5818] #1: ffff888076cd5f40 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x186/0x220 [ 103.289153][ T5818] #2: ffff888076cd5c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 103.300582][ T5818] [ 103.300582][ T5818] stack backtrace: [ 103.306942][ T5818] CPU: 0 UID: 0 PID: 5818 Comm: syz-executor185 Not tainted 6.15.0-rc4-syzkaller-00189-g2bfcee565c3a #0 PREEMPT(full) [ 103.306970][ T5818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 103.306990][ T5818] Call Trace: [ 103.306999][ T5818] [ 103.307010][ T5818] dump_stack_lvl+0x189/0x250 [ 103.307042][ T5818] ? __pfx_dump_stack_lvl+0x10/0x10 [ 103.307064][ T5818] ? __pfx__printk+0x10/0x10 [ 103.307090][ T5818] ? print_lock_name+0xde/0x100 [ 103.307115][ T5818] print_circular_bug+0x2ee/0x310 [ 103.307142][ T5818] check_noncircular+0x134/0x160 [ 103.307180][ T5818] validate_chain+0xb9b/0x2140 [ 103.307212][ T5818] __lock_acquire+0xaac/0xd20 [ 103.307234][ T5818] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 103.307263][ T5818] lock_acquire+0x120/0x360 [ 103.307282][ T5818] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 103.307312][ T5818] down_write+0x96/0x1f0 [ 103.307330][ T5818] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 103.307354][ T5818] ? __pfx_down_write+0x10/0x10 [ 103.307376][ T5818] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 103.307402][ T5818] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 103.307427][ T5818] ? up_write+0x1c4/0x420 [ 103.307443][ T5818] ocfs2_truncate_file+0xda0/0x1420 [ 103.307468][ T5818] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 103.307486][ T5818] ? do_raw_spin_unlock+0x122/0x240 [ 103.307503][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 103.307527][ T5818] ? ocfs2_inode_lock_tracker+0x3ec/0x660 [ 103.307553][ T5818] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 103.307575][ T5818] ? ocfs2_rw_lock+0x13a/0x240 [ 103.307595][ T5818] ? __pfx___dquot_initialize+0x10/0x10 [ 103.307619][ T5818] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 103.307638][ T5818] ? setattr_prepare+0x1e7/0xac0 [ 103.307659][ T5818] ? jbd2_journal_begin_ordered_truncate+0xbb/0x150 [ 103.307681][ T5818] ocfs2_setattr+0x1520/0x1b40 [ 103.307705][ T5818] ? __pfx_ocfs2_setattr+0x10/0x10 [ 103.307724][ T5818] ? smk_tskacc+0x2fc/0x370 [ 103.307747][ T5818] ? smack_inode_setattr+0x17b/0x200 [ 103.307769][ T5818] ? __pfx_smack_inode_setattr+0x10/0x10 [ 103.307794][ T5818] ? current_time+0x222/0x370 [ 103.307809][ T5818] ? evm_inode_setattr+0x1b6/0x7d0 [ 103.307826][ T5818] ? __pfx_current_time+0x10/0x10 [ 103.307843][ T5818] ? try_break_deleg+0x79/0x130 [ 103.307860][ T5818] ? __pfx_ocfs2_setattr+0x10/0x10 [ 103.307879][ T5818] notify_change+0xb33/0xe40 [ 103.307901][ T5818] do_truncate+0x19a/0x220 [ 103.307923][ T5818] ? __pfx_do_truncate+0x10/0x10 [ 103.307951][ T5818] path_openat+0x306c/0x3830 [ 103.307968][ T5818] ? arch_stack_walk+0xfc/0x150 [ 103.307994][ T5818] ? rcu_is_watching+0x15/0xb0 [ 103.308019][ T5818] ? __pfx_path_openat+0x10/0x10 [ 103.308035][ T5818] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.308057][ T5818] do_filp_open+0x1fa/0x410 [ 103.308076][ T5818] ? __pfx_do_filp_open+0x10/0x10 [ 103.308101][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 103.308124][ T5818] ? alloc_fd+0x64c/0x6c0 [ 103.308149][ T5818] do_sys_openat2+0x121/0x1c0 [ 103.308165][ T5818] ? __pfx_ptrace_notify+0x10/0x10 [ 103.308187][ T5818] ? __pfx_do_sys_openat2+0x10/0x10 [ 103.308203][ T5818] ? rcu_is_watching+0x15/0xb0 [ 103.308226][ T5818] __x64_sys_open+0x11e/0x150 [ 103.308244][ T5818] do_syscall_64+0xf6/0x210 [ 103.308270][ T5818] ? clear_bhb_loop+0x45/0xa0 [ 103.308287][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 103.308303][ T5818] RIP: 0033:0x7f80a3d936b9 [ 103.308326][ T5818] 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 [ 103.308339][ T5818] RSP: 002b:00007ffd2f4d35b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 103.308357][ T5818] RAX: ffffffffffffffda RBX: 00002000000001c0 RCX: 00007f80a3d936b9 open("./file1", O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 040) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 103.308368][ T5818] RDX: 0000000000000020 RSI: 000000000014927e