./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1885299094 <...> Warning: Permanently added '10.128.1.4' (ED25519) to the list of known hosts. execve("./syz-executor1885299094", ["./syz-executor1885299094"], 0x7ffce392c3d0 /* 10 vars */) = 0 brk(NULL) = 0x5555826ed000 brk(0x5555826edd00) = 0x5555826edd00 arch_prctl(ARCH_SET_FS, 0x5555826ed380) = 0 set_tid_address(0x5555826ed650) = 5821 set_robust_list(0x5555826ed660, 24) = 0 rseq(0x5555826edca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1885299094", 4096) = 28 getrandom("\x6c\xae\x07\xa9\xbc\xd8\x76\x49", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555826edd00 brk(0x55558270ed00) = 0x55558270ed00 brk(0x55558270f000) = 0x55558270f000 mprotect(0x7f58b80a3000, 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) = 0x7f58afa00000 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(0x7f58afa00000, 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: [ 62.330104][ T5821] loop0: detected capacity change from 0 to 32768 [ 62.351962][ T5821] ======================================================= [ 62.351962][ T5821] WARNING: The mand mount option has been deprecated and [ 62.351962][ T5821] and is ignored by this kernel. Remove the mand [ 62.351962][ T5821] option from the mount to silence this warning. [ 62.351962][ T5821] ======================================================= [ 62.397680][ T5821] JBD2: Ignoring recovery information on journal mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "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 [ 62.420519][ T5821] 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) openat(AT_FDCWD, "cpuset.effective_cpus", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 62.501522][ T5821] [ 62.503942][ T5821] ====================================================== [ 62.510970][ T5821] WARNING: possible circular locking dependency detected [ 62.517976][ T5821] 6.14.0-syzkaller-01103-g2df0c02dab82 #0 Not tainted [ 62.524716][ T5821] ------------------------------------------------------ [ 62.531714][ T5821] syz-executor188/5821 is trying to acquire lock: [ 62.538106][ T5821] ffff888078c0dbe0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 62.548745][ T5821] [ 62.548745][ T5821] but task is already holding lock: [ 62.556094][ T5821] ffff888078c0dc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xaa/0x350 [ 62.566726][ T5821] [ 62.566726][ T5821] which lock already depends on the new lock. [ 62.566726][ T5821] [ 62.577118][ T5821] [ 62.577118][ T5821] the existing dependency chain (in reverse order) is: [ 62.586117][ T5821] [ 62.586117][ T5821] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 62.593937][ T5821] lock_acquire+0x116/0x2f0 [ 62.598950][ T5821] down_write+0x9c/0x220 [ 62.603711][ T5821] ocfs2_xattr_set_handle+0x53b/0xa20 [ 62.609595][ T5821] ocfs2_init_security_set+0xbd/0xd0 [ 62.615392][ T5821] ocfs2_mknod+0x1cd3/0x2b30 [ 62.620497][ T5821] ocfs2_create+0x1ad/0x480 [ 62.625600][ T5821] path_openat+0x194b/0x35d0 [ 62.630700][ T5821] do_filp_open+0x284/0x4e0 [ 62.635712][ T5821] do_sys_openat2+0x12b/0x1d0 [ 62.640918][ T5821] __x64_sys_openat+0x249/0x2a0 [ 62.646288][ T5821] do_syscall_64+0xf3/0x230 [ 62.651307][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.657710][ T5821] [ 62.657710][ T5821] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 62.664999][ T5821] lock_acquire+0x116/0x2f0 [ 62.670098][ T5821] start_this_handle+0x1f30/0x21e0 [ 62.675716][ T5821] jbd2__journal_start+0x2da/0x5d0 [ 62.681337][ T5821] jbd2_journal_start+0x29/0x40 [ 62.686709][ T5821] ocfs2_start_trans+0x3cd/0x710 [ 62.692161][ T5821] ocfs2_reserve_suballoc_bits+0xa54/0x4f30 [ 62.698587][ T5821] ocfs2_reserve_new_metadata_blocks+0x41c/0x9b0 [ 62.705439][ T5821] ocfs2_mknod+0x143e/0x2b30 [ 62.710548][ T5821] ocfs2_create+0x1ad/0x480 [ 62.715561][ T5821] path_openat+0x194b/0x35d0 [ 62.720665][ T5821] do_filp_open+0x284/0x4e0 [ 62.725679][ T5821] do_sys_openat2+0x12b/0x1d0 [ 62.730883][ T5821] __x64_sys_openat+0x249/0x2a0 [ 62.736256][ T5821] do_syscall_64+0xf3/0x230 [ 62.741271][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.747683][ T5821] [ 62.747683][ T5821] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 62.756188][ T5821] lock_acquire+0x116/0x2f0 [ 62.761204][ T5821] down_read+0xb3/0xae0 [ 62.765879][ T5821] ocfs2_start_trans+0x3c2/0x710 [ 62.771327][ T5821] ocfs2_reserve_suballoc_bits+0xa54/0x4f30 [ 62.777734][ T5821] ocfs2_reserve_new_metadata_blocks+0x41c/0x9b0 [ 62.784597][ T5821] ocfs2_mknod+0x143e/0x2b30 [ 62.789698][ T5821] ocfs2_create+0x1ad/0x480 [ 62.794714][ T5821] path_openat+0x194b/0x35d0 [ 62.799816][ T5821] do_filp_open+0x284/0x4e0 [ 62.804833][ T5821] do_sys_openat2+0x12b/0x1d0 [ 62.810017][ T5821] __x64_sys_openat+0x249/0x2a0 [ 62.815374][ T5821] do_syscall_64+0xf3/0x230 [ 62.820389][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.826797][ T5821] [ 62.826797][ T5821] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 62.834285][ T5821] lock_acquire+0x116/0x2f0 [ 62.839296][ T5821] ocfs2_start_trans+0x2bd/0x710 [ 62.844738][ T5821] ocfs2_truncate_file+0x69c/0x1560 [ 62.850445][ T5821] ocfs2_setattr+0x1894/0x1ef0 [ 62.855716][ T5821] notify_change+0xbca/0xe90 [ 62.860830][ T5821] do_truncate+0x222/0x310 [ 62.865767][ T5821] path_openat+0x2e4f/0x35d0 [ 62.870863][ T5821] do_filp_open+0x284/0x4e0 [ 62.875877][ T5821] do_sys_openat2+0x12b/0x1d0 [ 62.881063][ T5821] __x64_sys_openat+0x249/0x2a0 [ 62.886426][ T5821] do_syscall_64+0xf3/0x230 [ 62.891533][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.897929][ T5821] [ 62.897929][ T5821] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 62.905734][ T5821] validate_chain+0xa69/0x24e0 [ 62.911014][ T5821] __lock_acquire+0xad5/0xd80 [ 62.916201][ T5821] lock_acquire+0x116/0x2f0 [ 62.921210][ T5821] down_write+0x9c/0x220 [ 62.925961][ T5821] ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 62.932452][ T5821] ocfs2_truncate_file+0xe1d/0x1560 [ 62.938156][ T5821] ocfs2_setattr+0x1894/0x1ef0 [ 62.943425][ T5821] notify_change+0xbca/0xe90 [ 62.948562][ T5821] do_truncate+0x222/0x310 [ 62.953486][ T5821] path_openat+0x2e4f/0x35d0 [ 62.958582][ T5821] do_filp_open+0x284/0x4e0 [ 62.963591][ T5821] do_sys_openat2+0x12b/0x1d0 [ 62.968775][ T5821] __x64_sys_openat+0x249/0x2a0 [ 62.974133][ T5821] do_syscall_64+0xf3/0x230 [ 62.979142][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.985538][ T5821] [ 62.985538][ T5821] other info that might help us debug this: [ 62.985538][ T5821] [ 62.995749][ T5821] Chain exists of: [ 62.995749][ T5821] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 62.995749][ T5821] [ 63.008771][ T5821] Possible unsafe locking scenario: [ 63.008771][ T5821] [ 63.016221][ T5821] CPU0 CPU1 [ 63.021589][ T5821] ---- ---- [ 63.026951][ T5821] lock(&oi->ip_xattr_sem); [ 63.031536][ T5821] lock(jbd2_handle); [ 63.038122][ T5821] lock(&oi->ip_xattr_sem); [ 63.045230][ T5821] lock(&oi->ip_alloc_sem); [ 63.049824][ T5821] [ 63.049824][ T5821] *** DEADLOCK *** [ 63.049824][ T5821] [ 63.057960][ T5821] 3 locks held by syz-executor188/5821: [ 63.063499][ T5821] #0: ffff88807e2a4420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 63.072649][ T5821] #1: ffff888078c0df40 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20e/0x310 [ 63.083003][ T5821] #2: ffff888078c0dc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xaa/0x350 [ 63.094139][ T5821] [ 63.094139][ T5821] stack backtrace: [ 63.100025][ T5821] CPU: 1 UID: 0 PID: 5821 Comm: syz-executor188 Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(full) [ 63.100041][ T5821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 63.100053][ T5821] Call Trace: [ 63.100059][ T5821] [ 63.100065][ T5821] dump_stack_lvl+0x241/0x360 [ 63.100084][ T5821] ? __pfx_dump_stack_lvl+0x10/0x10 [ 63.100100][ T5821] ? __pfx__printk+0x10/0x10 [ 63.100115][ T5821] ? print_lock+0x171/0x1a0 [ 63.100135][ T5821] print_circular_bug+0x2e1/0x300 [ 63.100149][ T5821] check_noncircular+0x142/0x160 [ 63.100163][ T5821] validate_chain+0xa69/0x24e0 [ 63.100200][ T5821] __lock_acquire+0xad5/0xd80 [ 63.100218][ T5821] lock_acquire+0x116/0x2f0 [ 63.100234][ T5821] ? ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 63.100257][ T5821] down_write+0x9c/0x220 [ 63.100276][ T5821] ? ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 63.100296][ T5821] ? __pfx_down_write+0x10/0x10 [ 63.100314][ T5821] ? ocfs2_truncate_file+0xd47/0x1560 [ 63.100331][ T5821] ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 63.100353][ T5821] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 63.100374][ T5821] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 63.100392][ T5821] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 63.100416][ T5821] ocfs2_truncate_file+0xe1d/0x1560 [ 63.100435][ T5821] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 63.100450][ T5821] ? do_raw_spin_unlock+0x13c/0x8b0 [ 63.100465][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 63.100478][ T5821] ? ocfs2_inode_lock_tracker+0x46e/0x780 [ 63.100500][ T5821] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 63.100518][ T5821] ? ocfs2_rw_lock+0x142/0x260 [ 63.100535][ T5821] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 63.100552][ T5821] ? setattr_prepare+0x1f5/0xb20 [ 63.100571][ T5821] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 63.100589][ T5821] ocfs2_setattr+0x1894/0x1ef0 [ 63.100608][ T5821] ? __pfx_ocfs2_setattr+0x10/0x10 [ 63.100627][ T5821] ? __pfx_smack_inode_setattr+0x10/0x10 [ 63.100643][ T5821] ? current_time+0x27b/0x3b0 [ 63.100658][ T5821] ? evm_inode_setattr+0x1b2/0x7d0 [ 63.100677][ T5821] ? security_inode_setattr+0xdb/0x350 [ 63.100693][ T5821] ? __pfx_ocfs2_setattr+0x10/0x10 [ 63.100708][ T5821] notify_change+0xbca/0xe90 [ 63.100729][ T5821] do_truncate+0x222/0x310 [ 63.100745][ T5821] ? __pfx_do_truncate+0x10/0x10 [ 63.100766][ T5821] path_openat+0x2e4f/0x35d0 [ 63.100788][ T5821] ? kasan_save_track+0x51/0x80 [ 63.100805][ T5821] ? __pfx_path_openat+0x10/0x10 [ 63.100820][ T5821] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.100835][ T5821] ? __lock_acquire+0xad5/0xd80 [ 63.100852][ T5821] do_filp_open+0x284/0x4e0 [ 63.100868][ T5821] ? __pfx_do_filp_open+0x10/0x10 [ 63.100884][ T5821] ? do_raw_spin_lock+0x151/0x370 [ 63.100905][ T5821] do_sys_openat2+0x12b/0x1d0 [ 63.100919][ T5821] ? __pfx_do_sys_openat2+0x10/0x10 [ 63.100930][ T5821] ? lockdep_hardirqs_on+0x9d/0x150 [ 63.100947][ T5821] ? _raw_spin_unlock_irq+0x2e/0x50 [ 63.100960][ T5821] ? ptrace_notify+0x282/0x390 [ 63.100978][ T5821] __x64_sys_openat+0x249/0x2a0 [ 63.100991][ T5821] ? __pfx___x64_sys_openat+0x10/0x10 [ 63.101007][ T5821] do_syscall_64+0xf3/0x230 [ 63.101025][ T5821] ? clear_bhb_loop+0x45/0xa0 [ 63.101038][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.101051][ T5821] RIP: 0033:0x7f58b802c6f9 [ 63.101069][ 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 [ 63.101079][ T5821] RSP: 002b:00007ffcc1630b58 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 +++ [ 63.101091][ T5821] RAX: ffffffffffffffda RBX: 0000200000000040 RCX: 00007f58b802c6