./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3777702614 <...> Warning: Permanently added '10.128.10.43' (ED25519) to the list of known hosts. execve("./syz-executor3777702614", ["./syz-executor3777702614"], 0x7ffe40ff05e0 /* 10 vars */) = 0 brk(NULL) = 0x555559dd4000 brk(0x555559dd4d00) = 0x555559dd4d00 arch_prctl(ARCH_SET_FS, 0x555559dd4380) = 0 set_tid_address(0x555559dd4650) = 5821 set_robust_list(0x555559dd4660, 24) = 0 rseq(0x555559dd4ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3777702614", 4096) = 28 getrandom("\x45\xdc\xc7\xa3\xd9\x7d\x0d\xd0", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555559dd4d00 brk(0x555559df5d00) = 0x555559df5d00 brk(0x555559df6000) = 0x555559df6000 mprotect(0x7fef8271a000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 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) = 0x7fef7a200000 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(0x7fef7a200000, 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 [ 58.138015][ T5821] loop0: detected capacity change from 0 to 32768 [ 58.161137][ T5821] ======================================================= [ 58.161137][ T5821] WARNING: The mand mount option has been deprecated and [ 58.161137][ T5821] and is ignored by this kernel. Remove the mand 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 [ 58.161137][ T5821] option from the mount to silence this warning. [ 58.161137][ T5821] ======================================================= [ 58.206212][ T5821] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 58.220222][ 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) creat("./bus", 000) = 4 [ 58.292615][ T5821] [ 58.294954][ T5821] ====================================================== [ 58.301945][ T5821] WARNING: possible circular locking dependency detected [ 58.308950][ T5821] 6.13.0-rc2-syzkaller #0 Not tainted [ 58.314298][ T5821] ------------------------------------------------------ [ 58.321290][ T5821] syz-executor377/5821 is trying to acquire lock: [ 58.327676][ T5821] ffff888072115be0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 58.338290][ T5821] [ 58.338290][ T5821] but task is already holding lock: [ 58.345630][ T5821] ffff888072115c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 58.356215][ T5821] [ 58.356215][ T5821] which lock already depends on the new lock. [ 58.356215][ T5821] [ 58.366596][ T5821] [ 58.366596][ T5821] the existing dependency chain (in reverse order) is: [ 58.375591][ T5821] [ 58.375591][ T5821] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 58.383400][ T5821] lock_acquire+0x1ed/0x550 [ 58.388418][ T5821] down_read+0xb1/0xa40 [ 58.393091][ T5821] ocfs2_init_acl+0x397/0x930 [ 58.398277][ T5821] ocfs2_mknod+0x1c05/0x2b30 [ 58.403374][ T5821] ocfs2_create+0x1ab/0x470 [ 58.408383][ T5821] path_openat+0x1c03/0x3590 [ 58.413481][ T5821] do_filp_open+0x27f/0x4e0 [ 58.418493][ T5821] do_sys_openat2+0x13e/0x1d0 [ 58.423687][ T5821] __x64_sys_creat+0x123/0x170 [ 58.428954][ T5821] do_syscall_64+0xf3/0x230 [ 58.433966][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.440382][ T5821] [ 58.440382][ T5821] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 58.447677][ T5821] lock_acquire+0x1ed/0x550 [ 58.452700][ T5821] start_this_handle+0x1eb4/0x2110 [ 58.458327][ T5821] jbd2__journal_start+0x2da/0x5d0 [ 58.463952][ T5821] jbd2_journal_start+0x29/0x40 [ 58.469313][ T5821] ocfs2_start_trans+0x3c9/0x700 [ 58.474760][ T5821] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 58.481164][ T5821] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 58.488002][ T5821] ocfs2_mknod+0x143a/0x2b30 [ 58.493099][ T5821] ocfs2_create+0x1ab/0x470 [ 58.498112][ T5821] path_openat+0x1c03/0x3590 [ 58.503211][ T5821] do_filp_open+0x27f/0x4e0 [ 58.508222][ T5821] do_sys_openat2+0x13e/0x1d0 [ 58.513403][ T5821] __x64_sys_creat+0x123/0x170 [ 58.518677][ T5821] do_syscall_64+0xf3/0x230 [ 58.523690][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.530092][ T5821] [ 58.530092][ T5821] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 58.538593][ T5821] lock_acquire+0x1ed/0x550 [ 58.543604][ T5821] down_read+0xb1/0xa40 [ 58.548272][ T5821] ocfs2_start_trans+0x3be/0x700 [ 58.553716][ T5821] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 58.560115][ T5821] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 58.566966][ T5821] ocfs2_mknod+0x143a/0x2b30 [ 58.572082][ T5821] ocfs2_create+0x1ab/0x470 [ 58.577101][ T5821] path_openat+0x1c03/0x3590 [ 58.582209][ T5821] do_filp_open+0x27f/0x4e0 [ 58.587226][ T5821] do_sys_openat2+0x13e/0x1d0 [ 58.592411][ T5821] __x64_sys_creat+0x123/0x170 [ 58.597681][ T5821] do_syscall_64+0xf3/0x230 [ 58.602694][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.609099][ T5821] [ 58.609099][ T5821] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 58.616568][ T5821] lock_acquire+0x1ed/0x550 [ 58.621583][ T5821] ocfs2_start_trans+0x2b9/0x700 [ 58.627028][ T5821] ocfs2_truncate_file+0x69a/0x1560 [ 58.632758][ T5821] ocfs2_setattr+0x1890/0x1ef0 [ 58.638050][ T5821] notify_change+0xbca/0xe90 [ 58.643165][ T5821] do_truncate+0x220/0x310 [ 58.648095][ T5821] path_openat+0x2e1e/0x3590 [ 58.653193][ T5821] do_filp_open+0x27f/0x4e0 [ 58.658221][ T5821] do_sys_openat2+0x13e/0x1d0 [ 58.663416][ T5821] __x64_sys_open+0x225/0x270 [ 58.668623][ T5821] do_syscall_64+0xf3/0x230 [ 58.673649][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.680057][ T5821] [ 58.680057][ T5821] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 58.687869][ T5821] validate_chain+0x18ef/0x5920 [ 58.693236][ T5821] __lock_acquire+0x1397/0x2100 [ 58.698598][ T5821] lock_acquire+0x1ed/0x550 [ 58.703612][ T5821] down_write+0x99/0x220 [ 58.708364][ T5821] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 58.714854][ T5821] ocfs2_truncate_file+0xe1b/0x1560 [ 58.720564][ T5821] ocfs2_setattr+0x1890/0x1ef0 [ 58.725832][ T5821] notify_change+0xbca/0xe90 [ 58.730935][ T5821] do_truncate+0x220/0x310 [ 58.735859][ T5821] path_openat+0x2e1e/0x3590 [ 58.740958][ T5821] do_filp_open+0x27f/0x4e0 [ 58.745966][ T5821] do_sys_openat2+0x13e/0x1d0 [ 58.751146][ T5821] __x64_sys_open+0x225/0x270 [ 58.756326][ T5821] do_syscall_64+0xf3/0x230 [ 58.761341][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.767769][ T5821] [ 58.767769][ T5821] other info that might help us debug this: [ 58.767769][ T5821] [ 58.777979][ T5821] Chain exists of: [ 58.777979][ T5821] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 58.777979][ T5821] [ 58.791002][ T5821] Possible unsafe locking scenario: [ 58.791002][ T5821] [ 58.798435][ T5821] CPU0 CPU1 [ 58.803796][ T5821] ---- ---- [ 58.809143][ T5821] lock(&oi->ip_xattr_sem); [ 58.813722][ T5821] lock(jbd2_handle); [ 58.820300][ T5821] lock(&oi->ip_xattr_sem); [ 58.827511][ T5821] lock(&oi->ip_alloc_sem); [ 58.832112][ T5821] [ 58.832112][ T5821] *** DEADLOCK *** [ 58.832112][ T5821] [ 58.840246][ T5821] 3 locks held by syz-executor377/5821: [ 58.845778][ T5821] #0: ffff888033f0a420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 58.854929][ T5821] #1: ffff888072115f40 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 58.865292][ T5821] #2: ffff888072115c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 58.876339][ T5821] [ 58.876339][ T5821] stack backtrace: [ 58.882229][ T5821] CPU: 1 UID: 0 PID: 5821 Comm: syz-executor377 Not tainted 6.13.0-rc2-syzkaller #0 [ 58.891586][ T5821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 58.901642][ T5821] Call Trace: [ 58.904919][ T5821] [ 58.907841][ T5821] dump_stack_lvl+0x241/0x360 [ 58.912511][ T5821] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.917699][ T5821] ? __pfx__printk+0x10/0x10 [ 58.922291][ T5821] print_circular_bug+0x13a/0x1b0 [ 58.927308][ T5821] check_noncircular+0x36a/0x4a0 [ 58.932235][ T5821] ? __pfx_check_noncircular+0x10/0x10 [ 58.937682][ T5821] ? lockdep_lock+0x123/0x2b0 [ 58.942353][ T5821] validate_chain+0x18ef/0x5920 [ 58.947210][ T5821] ? __pfx_validate_chain+0x10/0x10 [ 58.952403][ T5821] ? do_sys_openat2+0x13e/0x1d0 [ 58.957250][ T5821] ? do_syscall_64+0xf3/0x230 [ 58.961943][ T5821] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.968009][ T5821] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 58.973986][ T5821] ? mark_lock+0x9a/0x360 [ 58.978309][ T5821] __lock_acquire+0x1397/0x2100 [ 58.983160][ T5821] lock_acquire+0x1ed/0x550 [ 58.987657][ T5821] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 58.993806][ T5821] ? __pfx_lock_acquire+0x10/0x10 [ 58.998818][ T5821] ? __pfx___might_resched+0x10/0x10 [ 59.004101][ T5821] ? ocfs2_truncate_file+0xd45/0x1560 [ 59.009464][ T5821] ? __pfx_lock_release+0x10/0x10 [ 59.014502][ T5821] down_write+0x99/0x220 [ 59.018917][ T5821] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 59.025063][ T5821] ? __pfx_down_write+0x10/0x10 [ 59.029906][ T5821] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 59.035875][ T5821] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 59.042454][ T5821] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 59.048519][ T5821] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 59.054234][ T5821] ocfs2_truncate_file+0xe1b/0x1560 [ 59.059438][ T5821] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 59.065161][ T5821] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 59.070785][ T5821] ? do_raw_spin_unlock+0x13c/0x8b0 [ 59.075975][ T5821] ? __asan_memset+0x23/0x50 [ 59.080559][ T5821] ? _raw_spin_unlock+0x28/0x50 [ 59.085403][ T5821] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 59.091119][ T5821] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 59.097183][ T5821] ? ocfs2_rw_lock+0x13e/0x260 [ 59.101942][ T5821] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 59.107043][ T5821] ? setattr_prepare+0x1f5/0xb20 [ 59.111973][ T5821] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 59.119085][ T5821] ocfs2_setattr+0x1890/0x1ef0 [ 59.123839][ T5821] ? __pfx_ocfs2_setattr+0x10/0x10 [ 59.128940][ T5821] ? __pfx_smack_inode_setattr+0x10/0x10 [ 59.134572][ T5821] ? current_time+0x282/0x3c0 [ 59.139239][ T5821] ? evm_inode_setattr+0x1b2/0x7d0 [ 59.144342][ T5821] ? security_inode_setattr+0xdb/0x350 [ 59.149791][ T5821] ? __pfx_ocfs2_setattr+0x10/0x10 [ 59.154885][ T5821] notify_change+0xbca/0xe90 [ 59.159468][ T5821] do_truncate+0x220/0x310 [ 59.163877][ T5821] ? __pfx_do_truncate+0x10/0x10 [ 59.168809][ T5821] path_openat+0x2e1e/0x3590 [ 59.173394][ T5821] ? __pfx_path_openat+0x10/0x10 [ 59.178325][ T5821] do_filp_open+0x27f/0x4e0 [ 59.182818][ T5821] ? __pfx_do_filp_open+0x10/0x10 [ 59.187829][ T5821] ? do_raw_spin_lock+0x14f/0x370 [ 59.192857][ T5821] do_sys_openat2+0x13e/0x1d0 [ 59.197525][ T5821] ? __pfx_do_sys_openat2+0x10/0x10 [ 59.202708][ T5821] ? lockdep_hardirqs_on+0x99/0x150 [ 59.207900][ T5821] ? _raw_spin_unlock_irq+0x2e/0x50 [ 59.213086][ T5821] ? ptrace_notify+0x279/0x380 [ 59.217840][ T5821] __x64_sys_open+0x225/0x270 [ 59.222505][ T5821] ? __pfx___x64_sys_open+0x10/0x10 [ 59.227693][ T5821] ? do_syscall_64+0x100/0x230 [ 59.232447][ T5821] do_syscall_64+0xf3/0x230 [ 59.236945][ T5821] ? clear_bhb_loop+0x35/0x90 [ 59.241615][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.247499][ T5821] RIP: 0033:0x7fef826a36b9 [ 59.251909][ 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 [ 59.271519][ T5821] RSP: 002b:00007fff47642ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 59.279923][ T5821] RAX: ffffffffffffffda RBX: 00007fff476430d8 RCX: 00007fef826a36b9 [ 59.287879][ T5821] RDX: 0000000000000000 RSI: 000000000014927e RDI: 0000000020000180 open("./bus", O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 59.295838][