./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2541573624 <...> Warning: Permanently added '10.128.0.249' (ED25519) to the list of known hosts. execve("./syz-executor2541573624", ["./syz-executor2541573624"], 0x7ffeaeb31480 /* 10 vars */) = 0 brk(NULL) = 0x555591ac4000 brk(0x555591ac4d00) = 0x555591ac4d00 arch_prctl(ARCH_SET_FS, 0x555591ac4380) = 0 set_tid_address(0x555591ac4650) = 5816 set_robust_list(0x555591ac4660, 24) = 0 rseq(0x555591ac4ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2541573624", 4096) = 28 getrandom("\x10\xb3\x31\xee\x8f\xe3\x0d\x21", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555591ac4d00 brk(0x555591ae5d00) = 0x555591ae5d00 brk(0x555591ae6000) = 0x555591ae6000 mprotect(0x7fc15d167000, 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) = 0x7fc154c00000 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(0x7fc154c00000, 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 [ 62.142477][ T5816] loop0: detected capacity change from 0 to 32768 [ 62.185850][ T5816] ======================================================= [ 62.185850][ T5816] WARNING: The mand mount option has been deprecated and [ 62.185850][ T5816] and is ignored by this kernel. Remove the mand [ 62.185850][ T5816] option from the mount to silence this warning. [ 62.185850][ T5816] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,nointr,resv_level=00000000000000000004,localflocks,data=writeback,resv_level=0000000000000000000"...) = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) openat(AT_FDCWD, "memory.events", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 62.242978][ T5816] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 62.275620][ T5816] [ 62.277962][ T5816] ====================================================== [ 62.284961][ T5816] WARNING: possible circular locking dependency detected [ 62.291960][ T5816] 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 Not tainted [ 62.299050][ T5816] ------------------------------------------------------ [ 62.306054][ T5816] syz-executor254/5816 is trying to acquire lock: [ 62.312443][ T5816] ffff8880735a8660 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.323061][ T5816] [ 62.323061][ T5816] but task is already holding lock: [ 62.330409][ T5816] ffff8880735a86f8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 62.340996][ T5816] [ 62.340996][ T5816] which lock already depends on the new lock. [ 62.340996][ T5816] [ 62.351374][ T5816] [ 62.351374][ T5816] the existing dependency chain (in reverse order) is: [ 62.360374][ T5816] [ 62.360374][ T5816] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 62.368176][ T5816] lock_acquire+0x1ed/0x550 [ 62.373185][ T5816] down_read+0xb1/0xa40 [ 62.377847][ T5816] ocfs2_init_acl+0x397/0x930 [ 62.383034][ T5816] ocfs2_mknod+0x1c05/0x2b30 [ 62.388128][ T5816] ocfs2_create+0x1ab/0x470 [ 62.393127][ T5816] path_openat+0x1c03/0x3590 [ 62.398216][ T5816] do_filp_open+0x27f/0x4e0 [ 62.403215][ T5816] do_sys_openat2+0x13e/0x1d0 [ 62.408401][ T5816] __x64_sys_openat+0x247/0x2a0 [ 62.413747][ T5816] do_syscall_64+0xf3/0x230 [ 62.418749][ T5816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.425149][ T5816] [ 62.425149][ T5816] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 62.432419][ T5816] lock_acquire+0x1ed/0x550 [ 62.437419][ T5816] start_this_handle+0x1eb4/0x2110 [ 62.443029][ T5816] jbd2__journal_start+0x2da/0x5d0 [ 62.448636][ T5816] jbd2_journal_start+0x29/0x40 [ 62.453986][ T5816] ocfs2_start_trans+0x3c9/0x700 [ 62.459421][ T5816] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.465808][ T5816] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.472632][ T5816] ocfs2_mknod+0x143a/0x2b30 [ 62.477718][ T5816] ocfs2_create+0x1ab/0x470 [ 62.482717][ T5816] path_openat+0x1c03/0x3590 [ 62.487803][ T5816] do_filp_open+0x27f/0x4e0 [ 62.492805][ T5816] do_sys_openat2+0x13e/0x1d0 [ 62.497975][ T5816] __x64_sys_openat+0x247/0x2a0 [ 62.503321][ T5816] do_syscall_64+0xf3/0x230 [ 62.508325][ T5816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.514716][ T5816] [ 62.514716][ T5816] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 62.523201][ T5816] lock_acquire+0x1ed/0x550 [ 62.528200][ T5816] down_read+0xb1/0xa40 [ 62.532855][ T5816] ocfs2_start_trans+0x3be/0x700 [ 62.538290][ T5816] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.544697][ T5816] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.551519][ T5816] ocfs2_mknod+0x143a/0x2b30 [ 62.556609][ T5816] ocfs2_create+0x1ab/0x470 [ 62.561621][ T5816] path_openat+0x1c03/0x3590 [ 62.566711][ T5816] do_filp_open+0x27f/0x4e0 [ 62.571712][ T5816] do_sys_openat2+0x13e/0x1d0 [ 62.576887][ T5816] __x64_sys_openat+0x247/0x2a0 [ 62.582231][ T5816] do_syscall_64+0xf3/0x230 [ 62.587236][ T5816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.593628][ T5816] [ 62.593628][ T5816] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 62.601075][ T5816] lock_acquire+0x1ed/0x550 [ 62.606074][ T5816] ocfs2_start_trans+0x2b9/0x700 [ 62.611524][ T5816] ocfs2_truncate_file+0x69a/0x1560 [ 62.617221][ T5816] ocfs2_setattr+0x1890/0x1ef0 [ 62.622489][ T5816] notify_change+0xbca/0xe90 [ 62.627581][ T5816] do_truncate+0x220/0x310 [ 62.632496][ T5816] path_openat+0x2e1e/0x3590 [ 62.637584][ T5816] do_filp_open+0x27f/0x4e0 [ 62.642583][ T5816] do_sys_openat2+0x13e/0x1d0 [ 62.647752][ T5816] __x64_sys_openat+0x247/0x2a0 [ 62.653095][ T5816] do_syscall_64+0xf3/0x230 [ 62.658096][ T5816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.664489][ T5816] [ 62.664489][ T5816] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 62.672281][ T5816] validate_chain+0x18ef/0x5920 [ 62.677631][ T5816] __lock_acquire+0x1397/0x2100 [ 62.682974][ T5816] lock_acquire+0x1ed/0x550 [ 62.687972][ T5816] down_write+0x99/0x220 [ 62.692707][ T5816] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.699183][ T5816] ocfs2_truncate_file+0xe1b/0x1560 [ 62.704889][ T5816] ocfs2_setattr+0x1890/0x1ef0 [ 62.710147][ T5816] notify_change+0xbca/0xe90 [ 62.715247][ T5816] do_truncate+0x220/0x310 [ 62.720176][ T5816] path_openat+0x2e1e/0x3590 [ 62.725267][ T5816] do_filp_open+0x27f/0x4e0 [ 62.730265][ T5816] do_sys_openat2+0x13e/0x1d0 [ 62.735436][ T5816] __x64_sys_openat+0x247/0x2a0 [ 62.740779][ T5816] do_syscall_64+0xf3/0x230 [ 62.745784][ T5816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.752180][ T5816] [ 62.752180][ T5816] other info that might help us debug this: [ 62.752180][ T5816] [ 62.762381][ T5816] Chain exists of: [ 62.762381][ T5816] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 62.762381][ T5816] [ 62.775383][ T5816] Possible unsafe locking scenario: [ 62.775383][ T5816] [ 62.782803][ T5816] CPU0 CPU1 [ 62.788150][ T5816] ---- ---- [ 62.793502][ T5816] lock(&oi->ip_xattr_sem); [ 62.798069][ T5816] lock(jbd2_handle); [ 62.804634][ T5816] lock(&oi->ip_xattr_sem); [ 62.811719][ T5816] lock(&oi->ip_alloc_sem); [ 62.816283][ T5816] [ 62.816283][ T5816] *** DEADLOCK *** [ 62.816283][ T5816] [ 62.824399][ T5816] 3 locks held by syz-executor254/5816: [ 62.829917][ T5816] #0: ffff8880350de420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 62.839027][ T5816] #1: ffff8880735a89c0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 62.849351][ T5816] #2: ffff8880735a86f8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 62.860366][ T5816] [ 62.860366][ T5816] stack backtrace: [ 62.866245][ T5816] CPU: 1 UID: 0 PID: 5816 Comm: syz-executor254 Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 [ 62.877326][ T5816] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 62.887361][ T5816] Call Trace: [ 62.890624][ T5816] [ 62.893533][ T5816] dump_stack_lvl+0x241/0x360 [ 62.898190][ T5816] ? __pfx_dump_stack_lvl+0x10/0x10 [ 62.903365][ T5816] ? __pfx__printk+0x10/0x10 [ 62.907936][ T5816] print_circular_bug+0x13a/0x1b0 [ 62.912944][ T5816] check_noncircular+0x36a/0x4a0 [ 62.917860][ T5816] ? __pfx_check_noncircular+0x10/0x10 [ 62.923308][ T5816] ? lockdep_lock+0x123/0x2b0 [ 62.927960][ T5816] validate_chain+0x18ef/0x5920 [ 62.932794][ T5816] ? __pfx_validate_chain+0x10/0x10 [ 62.937979][ T5816] ? do_sys_openat2+0x13e/0x1d0 [ 62.942803][ T5816] ? do_syscall_64+0xf3/0x230 [ 62.947464][ T5816] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.953514][ T5816] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 62.959470][ T5816] ? mark_lock+0x9a/0x360 [ 62.963774][ T5816] __lock_acquire+0x1397/0x2100 [ 62.968603][ T5816] lock_acquire+0x1ed/0x550 [ 62.973106][ T5816] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.979266][ T5816] ? __pfx_lock_acquire+0x10/0x10 [ 62.984271][ T5816] ? __pfx___might_resched+0x10/0x10 [ 62.989542][ T5816] ? ocfs2_truncate_file+0xd45/0x1560 [ 62.994888][ T5816] ? __pfx_lock_release+0x10/0x10 [ 62.999889][ T5816] down_write+0x99/0x220 [ 63.004108][ T5816] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 63.010241][ T5816] ? __pfx_down_write+0x10/0x10 [ 63.015077][ T5816] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 63.021039][ T5816] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 63.027619][ T5816] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 63.033667][ T5816] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 63.039365][ T5816] ocfs2_truncate_file+0xe1b/0x1560 [ 63.044553][ T5816] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 63.050252][ T5816] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 63.055862][ T5816] ? do_raw_spin_unlock+0x13c/0x8b0 [ 63.061041][ T5816] ? __asan_memset+0x23/0x50 [ 63.065611][ T5816] ? _raw_spin_unlock+0x28/0x50 [ 63.070441][ T5816] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 63.076139][ T5816] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 63.082186][ T5816] ? ocfs2_rw_lock+0x13e/0x260 [ 63.086928][ T5816] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 63.092015][ T5816] ? setattr_prepare+0x1f5/0xb20 [ 63.096932][ T5816] ? inode_newsize_ok+0x11a/0x1c0 [ 63.101935][ T5816] ocfs2_setattr+0x1890/0x1ef0 [ 63.106676][ T5816] ? __pfx_ocfs2_setattr+0x10/0x10 [ 63.111762][ T5816] ? __pfx_smack_inode_setattr+0x10/0x10 [ 63.117402][ T5816] ? current_time+0x282/0x3c0 [ 63.122088][ T5816] ? evm_inode_setattr+0x1b2/0x7d0 [ 63.127189][ T5816] ? security_inode_setattr+0xdb/0x350 [ 63.132625][ T5816] ? __pfx_ocfs2_setattr+0x10/0x10 [ 63.137712][ T5816] notify_change+0xbca/0xe90 [ 63.142291][ T5816] do_truncate+0x220/0x310 [ 63.146691][ T5816] ? __pfx_do_truncate+0x10/0x10 [ 63.151625][ T5816] path_openat+0x2e1e/0x3590 [ 63.156210][ T5816] ? __pfx_path_openat+0x10/0x10 [ 63.161136][ T5816] do_filp_open+0x27f/0x4e0 [ 63.165617][ T5816] ? __pfx_do_filp_open+0x10/0x10 [ 63.170626][ T5816] ? do_raw_spin_lock+0x14f/0x370 [ 63.175638][ T5816] do_sys_openat2+0x13e/0x1d0 [ 63.180315][ T5816] ? __pfx_do_sys_openat2+0x10/0x10 [ 63.185506][ T5816] ? lockdep_hardirqs_on+0x99/0x150 [ 63.190689][ T5816] ? _raw_spin_unlock_irq+0x2e/0x50 [ 63.195870][ T5816] ? ptrace_notify+0x279/0x380 [ 63.200621][ T5816] __x64_sys_openat+0x247/0x2a0 [ 63.205901][ T5816] ? __pfx___x64_sys_openat+0x10/0x10 [ 63.211264][ T5816] ? do_syscall_64+0x100/0x230 [ 63.216011][ T5816] do_syscall_64+0xf3/0x230 [ 63.220497][ T5816] ? clear_bhb_loop+0x35/0x90 [ 63.225152][ T5816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.231040][ T5816] RIP: 0033:0x7fc15d0f0a39 [ 63.235435][ T5816] 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.255015][ T5816] RSP: 002b:00007ffe541a51a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 63.263408][ T5816] RAX: ffffffffffffffda RBX: 0073746e6576652e RCX: 00007fc15d0f0a39 [ 63.271360][ T5816] RDX: 000000000000275a RSI: 00000000200001c0 RDI: 00000000ffffff9c [ 63.279315][ T5816] RBP: 652e79726f6d656d R08: 0000000000000000 R09: 0000000000000000 [ 63.287265][ T5816] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 openat(AT_FDCWD, "memory.events", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 63.295225][ T5816] R13: 00007ff