./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2339219214 <...> Warning: Permanently added '10.128.1.186' (ED25519) to the list of known hosts. execve("./syz-executor2339219214", ["./syz-executor2339219214"], 0x7ffdb8ab85e0 /* 10 vars */) = 0 brk(NULL) = 0x555585d20000 brk(0x555585d20d00) = 0x555585d20d00 arch_prctl(ARCH_SET_FS, 0x555585d20380) = 0 set_tid_address(0x555585d20650) = 5837 set_robust_list(0x555585d20660, 24) = 0 rseq(0x555585d20ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2339219214", 4096) = 28 getrandom("\xfc\x70\x02\x04\x96\x69\x85\x14", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555585d20d00 brk(0x555585d41d00) = 0x555585d41d00 brk(0x555585d42000) = 0x555585d42000 mprotect(0x7f695ff52000, 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) = 0x7f6957a00000 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(0x7f6957a00000, 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 [ 100.569949][ T5837] loop0: detected capacity change from 0 to 32768 [ 100.597126][ T5837] ======================================================= [ 100.597126][ T5837] WARNING: The mand mount option has been deprecated and [ 100.597126][ T5837] and is ignored by this kernel. Remove the mand [ 100.597126][ T5837] option from the mount to silence this warning. [ 100.597126][ T5837] ======================================================= 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, "cpuset.effective_cpus", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 100.660868][ T5837] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 100.703003][ T5837] [ 100.705371][ T5837] ====================================================== [ 100.712499][ T5837] WARNING: possible circular locking dependency detected [ 100.719532][ T5837] 6.15.0-rc1-next-20250411-syzkaller #0 Not tainted [ 100.726114][ T5837] ------------------------------------------------------ [ 100.733140][ T5837] syz-executor233/5837 is trying to acquire lock: [ 100.739582][ T5837] ffff888079295be0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 100.750242][ T5837] [ 100.750242][ T5837] but task is already holding lock: [ 100.757687][ T5837] ffff888079295c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xaa/0x350 [ 100.768410][ T5837] [ 100.768410][ T5837] which lock already depends on the new lock. [ 100.768410][ T5837] [ 100.778827][ T5837] [ 100.778827][ T5837] the existing dependency chain (in reverse order) is: [ 100.788045][ T5837] [ 100.788045][ T5837] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 100.795880][ T5837] lock_acquire+0x116/0x2f0 [ 100.800931][ T5837] down_read+0xb3/0xa50 [ 100.805618][ T5837] ocfs2_init_acl+0x39d/0x960 [ 100.810827][ T5837] ocfs2_mknod+0x1c09/0x2b30 [ 100.815942][ T5837] ocfs2_create+0x1ad/0x480 [ 100.820971][ T5837] path_openat+0x194b/0x35d0 [ 100.826081][ T5837] do_filp_open+0x284/0x4e0 [ 100.831107][ T5837] do_sys_openat2+0x12b/0x1d0 [ 100.836318][ T5837] __x64_sys_openat+0x249/0x2a0 [ 100.841693][ T5837] do_syscall_64+0xf3/0x230 [ 100.846718][ T5837] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 100.853150][ T5837] [ 100.853150][ T5837] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 100.860453][ T5837] lock_acquire+0x116/0x2f0 [ 100.865484][ T5837] start_this_handle+0x1ee4/0x21a0 [ 100.871122][ T5837] jbd2__journal_start+0x2da/0x5d0 [ 100.876754][ T5837] jbd2_journal_start+0x29/0x40 [ 100.882124][ T5837] ocfs2_start_trans+0x3cd/0x710 [ 100.887583][ T5837] ocfs2_mknod+0x1510/0x2b30 [ 100.892686][ T5837] ocfs2_create+0x1ad/0x480 [ 100.897703][ T5837] path_openat+0x194b/0x35d0 [ 100.902833][ T5837] do_filp_open+0x284/0x4e0 [ 100.907853][ T5837] do_sys_openat2+0x12b/0x1d0 [ 100.913049][ T5837] __x64_sys_openat+0x249/0x2a0 [ 100.918426][ T5837] do_syscall_64+0xf3/0x230 [ 100.923471][ T5837] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 100.929885][ T5837] [ 100.929885][ T5837] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 100.938428][ T5837] lock_acquire+0x116/0x2f0 [ 100.943477][ T5837] down_read+0xb3/0xa50 [ 100.948161][ T5837] ocfs2_start_trans+0x3c2/0x710 [ 100.953619][ T5837] ocfs2_mknod+0x1510/0x2b30 [ 100.958746][ T5837] ocfs2_create+0x1ad/0x480 [ 100.963762][ T5837] path_openat+0x194b/0x35d0 [ 100.968872][ T5837] do_filp_open+0x284/0x4e0 [ 100.973909][ T5837] do_sys_openat2+0x12b/0x1d0 [ 100.979108][ T5837] __x64_sys_openat+0x249/0x2a0 [ 100.984482][ T5837] do_syscall_64+0xf3/0x230 [ 100.989633][ T5837] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 100.996063][ T5837] [ 100.996063][ T5837] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 101.003551][ T5837] lock_acquire+0x116/0x2f0 [ 101.008737][ T5837] ocfs2_start_trans+0x2bd/0x710 [ 101.014208][ T5837] ocfs2_truncate_file+0x69c/0x1560 [ 101.019954][ T5837] ocfs2_setattr+0x1894/0x1ef0 [ 101.025249][ T5837] notify_change+0xbca/0xe90 [ 101.030382][ T5837] do_truncate+0x222/0x310 [ 101.035436][ T5837] path_openat+0x2e4f/0x35d0 [ 101.040587][ T5837] do_filp_open+0x284/0x4e0 [ 101.045629][ T5837] do_sys_openat2+0x12b/0x1d0 [ 101.050836][ T5837] __x64_sys_openat+0x249/0x2a0 [ 101.056214][ T5837] do_syscall_64+0xf3/0x230 [ 101.061248][ T5837] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 101.067685][ T5837] [ 101.067685][ T5837] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 101.075505][ T5837] validate_chain+0xa69/0x24e0 [ 101.080805][ T5837] __lock_acquire+0xad5/0xd80 [ 101.086520][ T5837] lock_acquire+0x116/0x2f0 [ 101.091545][ T5837] down_write+0x9c/0x220 [ 101.096306][ T5837] ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 101.102804][ T5837] ocfs2_truncate_file+0xe1d/0x1560 [ 101.108521][ T5837] ocfs2_setattr+0x1894/0x1ef0 [ 101.113805][ T5837] notify_change+0xbca/0xe90 [ 101.118911][ T5837] do_truncate+0x222/0x310 [ 101.123844][ T5837] path_openat+0x2e4f/0x35d0 [ 101.128964][ T5837] do_filp_open+0x284/0x4e0 [ 101.134197][ T5837] do_sys_openat2+0x12b/0x1d0 [ 101.139534][ T5837] __x64_sys_openat+0x249/0x2a0 [ 101.145268][ T5837] do_syscall_64+0xf3/0x230 [ 101.150386][ T5837] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 101.156821][ T5837] [ 101.156821][ T5837] other info that might help us debug this: [ 101.156821][ T5837] [ 101.167057][ T5837] Chain exists of: [ 101.167057][ T5837] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 101.167057][ T5837] [ 101.180109][ T5837] Possible unsafe locking scenario: [ 101.180109][ T5837] [ 101.187692][ T5837] CPU0 CPU1 [ 101.193063][ T5837] ---- ---- [ 101.198450][ T5837] lock(&oi->ip_xattr_sem); [ 101.203145][ T5837] lock(jbd2_handle); [ 101.209750][ T5837] lock(&oi->ip_xattr_sem); [ 101.216891][ T5837] lock(&oi->ip_alloc_sem); [ 101.221502][ T5837] [ 101.221502][ T5837] *** DEADLOCK *** [ 101.221502][ T5837] [ 101.229655][ T5837] 3 locks held by syz-executor233/5837: [ 101.235191][ T5837] #0: ffff888033bb4428 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 101.244376][ T5837] #1: ffff888079295f40 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: do_truncate+0x20e/0x310 [ 101.254764][ T5837] #2: ffff888079295c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xaa/0x350 [ 101.265862][ T5837] [ 101.265862][ T5837] stack backtrace: [ 101.271790][ T5837] CPU: 0 UID: 0 PID: 5837 Comm: syz-executor233 Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 PREEMPT(full) [ 101.271810][ T5837] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 101.271823][ T5837] Call Trace: [ 101.271830][ T5837] [ 101.271837][ T5837] dump_stack_lvl+0x241/0x360 [ 101.271867][ T5837] ? __pfx_dump_stack_lvl+0x10/0x10 [ 101.271889][ T5837] ? __pfx__printk+0x10/0x10 [ 101.271910][ T5837] ? print_lock+0x171/0x1a0 [ 101.271926][ T5837] print_circular_bug+0x2e1/0x300 [ 101.271945][ T5837] check_noncircular+0x142/0x160 [ 101.271965][ T5837] validate_chain+0xa69/0x24e0 [ 101.271990][ T5837] __lock_acquire+0xad5/0xd80 [ 101.272006][ T5837] lock_acquire+0x116/0x2f0 [ 101.272027][ T5837] ? ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 101.272049][ T5837] down_write+0x9c/0x220 [ 101.272067][ T5837] ? ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 101.272083][ T5837] ? __pfx_down_write+0x10/0x10 [ 101.272101][ T5837] ? ocfs2_truncate_file+0xd47/0x1560 [ 101.272124][ T5837] ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 101.272141][ T5837] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 101.272159][ T5837] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 101.272182][ T5837] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 101.272199][ T5837] ocfs2_truncate_file+0xe1d/0x1560 [ 101.272224][ T5837] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 101.272250][ T5837] ? do_raw_spin_unlock+0x13c/0x8b0 [ 101.272271][ T5837] ? _raw_spin_unlock+0x28/0x50 [ 101.272283][ T5837] ? ocfs2_inode_lock_tracker+0x46e/0x780 [ 101.272300][ T5837] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 101.272314][ T5837] ? ocfs2_rw_lock+0x142/0x260 [ 101.272327][ T5837] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 101.272349][ T5837] ? setattr_prepare+0x1f5/0xb20 [ 101.272368][ T5837] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 101.272389][ T5837] ocfs2_setattr+0x1894/0x1ef0 [ 101.272421][ T5837] ? __pfx_ocfs2_setattr+0x10/0x10 [ 101.272441][ T5837] ? seqcount_lockdep_reader_access+0x1d9/0x230 [ 101.272461][ T5837] ? __pfx_seqcount_lockdep_reader_access+0x10/0x10 [ 101.272486][ T5837] ? ktime_get_coarse_real_ts64_mg+0x20c/0x220 [ 101.272514][ T5837] ? current_time+0x27b/0x3b0 [ 101.272528][ T5837] ? evm_inode_setattr+0x1b2/0x7d0 [ 101.272549][ T5837] ? security_inode_setattr+0xdb/0x350 [ 101.272567][ T5837] ? __pfx_ocfs2_setattr+0x10/0x10 [ 101.272588][ T5837] notify_change+0xbca/0xe90 [ 101.272610][ T5837] do_truncate+0x222/0x310 [ 101.272627][ T5837] ? __pfx_do_truncate+0x10/0x10 [ 101.272648][ T5837] path_openat+0x2e4f/0x35d0 [ 101.272669][ T5837] ? stack_depot_save_flags+0x44/0x940 [ 101.272693][ T5837] ? kasan_save_track+0x51/0x80 [ 101.272710][ T5837] ? __pfx_path_openat+0x10/0x10 [ 101.272725][ T5837] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 101.272746][ T5837] do_filp_open+0x284/0x4e0 [ 101.272762][ T5837] ? __pfx_do_filp_open+0x10/0x10 [ 101.272777][ T5837] ? do_raw_spin_lock+0x151/0x370 [ 101.272808][ T5837] do_sys_openat2+0x12b/0x1d0 [ 101.272830][ T5837] ? __pfx_do_sys_openat2+0x10/0x10 [ 101.272850][ T5837] ? lockdep_hardirqs_on+0x9d/0x150 [ 101.272866][ T5837] ? _raw_spin_unlock_irq+0x2e/0x50 [ 101.272878][ T5837] ? ptrace_notify+0x282/0x390 [ 101.272901][ T5837] __x64_sys_openat+0x249/0x2a0 [ 101.272923][ T5837] ? __pfx___x64_sys_openat+0x10/0x10 [ 101.272949][ T5837] do_syscall_64+0xf3/0x230 [ 101.272966][ T5837] ? clear_bhb_loop+0x45/0xa0 [ 101.272982][ T5837] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 101.273001][ T5837] RIP: 0033:0x7f695fedb739 [ 101.273018][ T5837] 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 [ 101.273030][ T5837] RSP: 002b:00007ffdde72bf78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 101.273046][ T5837] RAX: ffffffffffffffda RBX: 0000200000000040 RCX: 00007f695fedb739 [ 101.273057][ T5837] RDX: 000000000000275a RSI: 0000200000000040 RDI: 00000000ffffff9c 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 +++ [ 101.273067][ T5837] RBP: 00737570635f6576 R08: 0000000000000