./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3289171516 <...> Warning: Permanently added '10.128.0.195' (ED25519) to the list of known hosts. execve("./syz-executor3289171516", ["./syz-executor3289171516"], 0x7ffcb8152d70 /* 10 vars */) = 0 brk(NULL) = 0x555588046000 brk(0x555588046d00) = 0x555588046d00 arch_prctl(ARCH_SET_FS, 0x555588046380) = 0 set_tid_address(0x555588046650) = 5821 set_robust_list(0x555588046660, 24) = 0 rseq(0x555588046ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3289171516", 4096) = 28 getrandom("\x9a\xcd\xc0\x0f\xd4\x00\x2d\x71", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555588046d00 brk(0x555588067d00) = 0x555588067d00 brk(0x555588068000) = 0x555588068000 mprotect(0x7f40408f1000, 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, 0executing program ) = 0x200001000000 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) = 0x7f4038400000 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(0x7f4038400000, 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 [ 77.263160][ T5821] loop0: detected capacity change from 0 to 32768 [ 77.298047][ T5821] ======================================================= [ 77.298047][ T5821] WARNING: The mand mount option has been deprecated and 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) creat("./file0", 000) = 4 [ 77.298047][ T5821] and is ignored by this kernel. Remove the mand [ 77.298047][ T5821] option from the mount to silence this warning. [ 77.298047][ T5821] ======================================================= [ 77.350773][ T5821] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 77.384512][ T5821] [ 77.386867][ T5821] ====================================================== [ 77.393858][ T5821] WARNING: possible circular locking dependency detected [ 77.400883][ T5821] 6.15.0-syzkaller-08486-gf66bc387efbe #0 Not tainted [ 77.407630][ T5821] ------------------------------------------------------ [ 77.414629][ T5821] syz-executor328/5821 is trying to acquire lock: [ 77.421016][ T5821] ffff88807550dbe0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 77.431668][ T5821] [ 77.431668][ T5821] but task is already holding lock: [ 77.439070][ T5821] ffff88807550dc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 77.449673][ T5821] [ 77.449673][ T5821] which lock already depends on the new lock. [ 77.449673][ T5821] [ 77.460327][ T5821] [ 77.460327][ T5821] the existing dependency chain (in reverse order) is: [ 77.469350][ T5821] [ 77.469350][ T5821] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 77.477421][ T5821] lock_acquire+0x120/0x360 [ 77.482444][ T5821] down_read+0x46/0x2e0 [ 77.487127][ T5821] ocfs2_init_acl+0x2f9/0x720 [ 77.492319][ T5821] ocfs2_mknod+0x1321/0x2050 [ 77.497418][ T5821] ocfs2_create+0x1a5/0x440 [ 77.502511][ T5821] path_openat+0x14f1/0x3830 [ 77.507607][ T5821] do_filp_open+0x1fa/0x410 [ 77.512612][ T5821] do_sys_openat2+0x121/0x1c0 [ 77.517785][ T5821] __x64_sys_creat+0x8f/0xc0 [ 77.522874][ T5821] do_syscall_64+0xfa/0x3b0 [ 77.527879][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.534268][ T5821] [ 77.534268][ T5821] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 77.541540][ T5821] lock_acquire+0x120/0x360 [ 77.546542][ T5821] start_this_handle+0x1fa7/0x21c0 [ 77.552152][ T5821] jbd2__journal_start+0x2c1/0x5b0 [ 77.557763][ T5821] jbd2_journal_start+0x2a/0x40 [ 77.563148][ T5821] ocfs2_start_trans+0x376/0x6d0 [ 77.568591][ T5821] ocfs2_reserve_suballoc_bits+0x711/0x4640 [ 77.574981][ T5821] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 77.581802][ T5821] ocfs2_mknod+0xe08/0x2050 [ 77.586807][ T5821] ocfs2_create+0x1a5/0x440 [ 77.591810][ T5821] path_openat+0x14f1/0x3830 [ 77.596898][ T5821] do_filp_open+0x1fa/0x410 [ 77.601902][ T5821] do_sys_openat2+0x121/0x1c0 [ 77.607076][ T5821] __x64_sys_creat+0x8f/0xc0 [ 77.612165][ T5821] do_syscall_64+0xfa/0x3b0 [ 77.617169][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.623558][ T5821] [ 77.623558][ T5821] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 77.632051][ T5821] lock_acquire+0x120/0x360 [ 77.637056][ T5821] down_read+0x46/0x2e0 [ 77.641720][ T5821] ocfs2_start_trans+0x36a/0x6d0 [ 77.647157][ T5821] ocfs2_reserve_suballoc_bits+0x711/0x4640 [ 77.653547][ T5821] ocfs2_reserve_new_metadata_blocks+0x403/0x940 [ 77.660373][ T5821] ocfs2_mknod+0xe08/0x2050 [ 77.665379][ T5821] ocfs2_create+0x1a5/0x440 [ 77.670382][ T5821] path_openat+0x14f1/0x3830 [ 77.675475][ T5821] do_filp_open+0x1fa/0x410 [ 77.680478][ T5821] do_sys_openat2+0x121/0x1c0 [ 77.685653][ T5821] __x64_sys_creat+0x8f/0xc0 [ 77.690741][ T5821] do_syscall_64+0xfa/0x3b0 [ 77.695740][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.702165][ T5821] [ 77.702165][ T5821] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 77.709705][ T5821] lock_acquire+0x120/0x360 [ 77.714706][ T5821] ocfs2_start_trans+0x26b/0x6d0 [ 77.720141][ T5821] ocfs2_truncate_file+0x643/0x1420 [ 77.725858][ T5821] ocfs2_setattr+0x1520/0x1b40 [ 77.731121][ T5821] notify_change+0xb33/0xe40 [ 77.736212][ T5821] do_truncate+0x1a4/0x220 [ 77.741132][ T5821] path_openat+0x306c/0x3830 [ 77.746219][ T5821] do_filp_open+0x1fa/0x410 [ 77.751220][ T5821] do_sys_openat2+0x121/0x1c0 [ 77.756393][ T5821] __x64_sys_creat+0x8f/0xc0 [ 77.761477][ T5821] do_syscall_64+0xfa/0x3b0 [ 77.766479][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.772867][ T5821] [ 77.772867][ T5821] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 77.780665][ T5821] validate_chain+0xb9b/0x2140 [ 77.785930][ T5821] __lock_acquire+0xab9/0xd20 [ 77.791107][ T5821] lock_acquire+0x120/0x360 [ 77.796108][ T5821] down_write+0x96/0x1f0 [ 77.800852][ T5821] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 77.807331][ T5821] ocfs2_truncate_file+0xda0/0x1420 [ 77.813041][ T5821] ocfs2_setattr+0x1520/0x1b40 [ 77.818307][ T5821] notify_change+0xb33/0xe40 [ 77.823396][ T5821] do_truncate+0x1a4/0x220 [ 77.828337][ T5821] path_openat+0x306c/0x3830 [ 77.833428][ T5821] do_filp_open+0x1fa/0x410 [ 77.838431][ T5821] do_sys_openat2+0x121/0x1c0 [ 77.843605][ T5821] __x64_sys_creat+0x8f/0xc0 [ 77.848693][ T5821] do_syscall_64+0xfa/0x3b0 [ 77.853694][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.860089][ T5821] [ 77.860089][ T5821] other info that might help us debug this: [ 77.860089][ T5821] [ 77.870301][ T5821] Chain exists of: [ 77.870301][ T5821] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 77.870301][ T5821] [ 77.883318][ T5821] Possible unsafe locking scenario: [ 77.883318][ T5821] [ 77.890747][ T5821] CPU0 CPU1 [ 77.896097][ T5821] ---- ---- [ 77.901441][ T5821] lock(&oi->ip_xattr_sem); [ 77.906013][ T5821] lock(jbd2_handle); [ 77.912579][ T5821] lock(&oi->ip_xattr_sem); [ 77.919669][ T5821] lock(&oi->ip_alloc_sem); [ 77.924238][ T5821] [ 77.924238][ T5821] *** DEADLOCK *** [ 77.924238][ T5821] [ 77.932368][ T5821] 3 locks held by syz-executor328/5821: [ 77.937890][ T5821] #0: ffff88814c930428 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 77.947007][ T5821] #1: ffff88807550df40 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x171/0x220 [ 77.957338][ T5821] #2: ffff88807550dc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 77.968471][ T5821] [ 77.968471][ T5821] stack backtrace: [ 77.974450][ T5821] CPU: 0 UID: 0 PID: 5821 Comm: syz-executor328 Not tainted 6.15.0-syzkaller-08486-gf66bc387efbe #0 PREEMPT(full) [ 77.974464][ T5821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 77.974474][ T5821] Call Trace: [ 77.974483][ T5821] [ 77.974489][ T5821] dump_stack_lvl+0x189/0x250 [ 77.974508][ T5821] ? __pfx_dump_stack_lvl+0x10/0x10 [ 77.974521][ T5821] ? __pfx__printk+0x10/0x10 [ 77.974531][ T5821] ? print_lock_name+0xde/0x100 [ 77.974545][ T5821] print_circular_bug+0x2ee/0x310 [ 77.974559][ T5821] check_noncircular+0x134/0x160 [ 77.974575][ T5821] validate_chain+0xb9b/0x2140 [ 77.974600][ T5821] __lock_acquire+0xab9/0xd20 [ 77.974617][ T5821] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 77.974633][ T5821] lock_acquire+0x120/0x360 [ 77.974647][ T5821] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 77.974669][ T5821] down_write+0x96/0x1f0 [ 77.974683][ T5821] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 77.974693][ T5821] ? __pfx_down_write+0x10/0x10 [ 77.974706][ T5821] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 77.974717][ T5821] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 77.974728][ T5821] ? up_write+0x1c4/0x420 [ 77.974741][ T5821] ocfs2_truncate_file+0xda0/0x1420 [ 77.974757][ T5821] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 77.974770][ T5821] ? do_raw_spin_unlock+0x122/0x240 [ 77.974784][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 77.974798][ T5821] ? ocfs2_inode_lock_tracker+0x3ec/0x660 [ 77.974808][ T5821] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 77.974817][ T5821] ? ocfs2_rw_lock+0x13a/0x240 [ 77.974830][ T5821] ? __pfx___dquot_initialize+0x10/0x10 [ 77.974840][ T5821] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 77.974852][ T5821] ? setattr_prepare+0x1e7/0xac0 [ 77.974865][ T5821] ? jbd2_journal_begin_ordered_truncate+0xbb/0x150 [ 77.974879][ T5821] ocfs2_setattr+0x1520/0x1b40 [ 77.974894][ T5821] ? __pfx_ocfs2_setattr+0x10/0x10 [ 77.974907][ T5821] ? smk_tskacc+0x2fc/0x370 [ 77.974922][ T5821] ? smack_inode_setattr+0x17b/0x200 [ 77.974935][ T5821] ? __pfx_smack_inode_setattr+0x10/0x10 [ 77.974950][ T5821] ? current_time+0x222/0x370 [ 77.974960][ T5821] ? evm_inode_setattr+0x1b6/0x7d0 [ 77.974971][ T5821] ? __pfx_current_time+0x10/0x10 [ 77.974982][ T5821] ? try_break_deleg+0x79/0x130 [ 77.974993][ T5821] ? __pfx_ocfs2_setattr+0x10/0x10 [ 77.975006][ T5821] notify_change+0xb33/0xe40 [ 77.975020][ T5821] do_truncate+0x1a4/0x220 [ 77.975034][ T5821] ? __pfx_do_truncate+0x10/0x10 [ 77.975050][ T5821] path_openat+0x306c/0x3830 [ 77.975061][ T5821] ? arch_stack_walk+0xfc/0x150 [ 77.975080][ T5821] ? __pfx_path_openat+0x10/0x10 [ 77.975090][ T5821] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.975103][ T5821] do_filp_open+0x1fa/0x410 [ 77.975114][ T5821] ? __lock_acquire+0xab9/0xd20 [ 77.975130][ T5821] ? __pfx_do_filp_open+0x10/0x10 [ 77.975145][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 77.975158][ T5821] ? alloc_fd+0x64c/0x6c0 [ 77.975173][ T5821] do_sys_openat2+0x121/0x1c0 [ 77.975185][ T5821] ? __pfx_do_sys_openat2+0x10/0x10 [ 77.975196][ T5821] ? rcu_is_watching+0x15/0xb0 [ 77.975207][ T5821] __x64_sys_creat+0x8f/0xc0 [ 77.975219][ T5821] do_syscall_64+0xfa/0x3b0 [ 77.975229][ T5821] ? lockdep_hardirqs_on+0x9c/0x150 [ 77.975238][ T5821] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.975247][ T5821] ? clear_bhb_loop+0x60/0xb0 [ 77.975258][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.975267][ T5821] RIP: 0033:0x7f404087a739 [ 77.975284][ T5821] 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 [ 77.975295][ T5821] RSP: 002b:00007ffead450688 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 creat("./file0", 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 77.975307][ T5821]