./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2116086544 <...> Warning: Permanently added '10.128.0.25' (ED25519) to the list of known hosts. execve("./syz-executor2116086544", ["./syz-executor2116086544"], 0x7ffe70e178c0 /* 10 vars */) = 0 brk(NULL) = 0x555567e2c000 brk(0x555567e2cd00) = 0x555567e2cd00 arch_prctl(ARCH_SET_FS, 0x555567e2c380) = 0 set_tid_address(0x555567e2c650) = 5822 set_robust_list(0x555567e2c660, 24) = 0 rseq(0x555567e2cca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2116086544", 4096) = 28 getrandom("\x24\x17\xf3\x57\xca\x17\xff\xfe", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555567e2cd00 brk(0x555567e4dd00) = 0x555567e4dd00 brk(0x555567e4e000) = 0x555567e4e000 mprotect(0x7f10bcf4e000, 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) = 0x7f10b4a00000 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(0x7f10b4a00000, 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 [ 80.929124][ T5822] loop0: detected capacity change from 0 to 32768 [ 80.942125][ T5822] ======================================================= [ 80.942125][ T5822] WARNING: The mand mount option has been deprecated and [ 80.942125][ T5822] and is ignored by this kernel. Remove the mand [ 80.942125][ T5822] option from the mount to silence this warning. [ 80.942125][ T5822] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,errors=remount-ro,coherency=full,coherency=full,localflocks,intr,noacl,") = 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) [ 80.993343][ T5822] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 81.018658][ T5822] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. openat(AT_FDCWD, "cgroup.controllers", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 81.079591][ T5822] [ 81.081937][ T5822] ====================================================== [ 81.089033][ T5822] WARNING: possible circular locking dependency detected [ 81.096048][ T5822] 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 Not tainted [ 81.103152][ T5822] ------------------------------------------------------ [ 81.110152][ T5822] syz-executor211/5822 is trying to acquire lock: [ 81.116551][ T5822] ffff888076ee5be0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 81.127184][ T5822] [ 81.127184][ T5822] but task is already holding lock: [ 81.134531][ T5822] ffff888076ee5c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 81.145226][ T5822] [ 81.145226][ T5822] which lock already depends on the new lock. [ 81.145226][ T5822] [ 81.155612][ T5822] [ 81.155612][ T5822] the existing dependency chain (in reverse order) is: [ 81.164606][ T5822] [ 81.164606][ T5822] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 81.172415][ T5822] lock_acquire+0x120/0x360 [ 81.177438][ T5822] down_read+0x46/0x2e0 [ 81.182112][ T5822] ocfs2_xattr_get+0xdf/0x220 [ 81.187310][ T5822] __vfs_getxattr+0x3f1/0x430 [ 81.192505][ T5822] smk_fetch+0xb4/0x140 [ 81.197174][ T5822] smack_d_instantiate+0x6f5/0x940 [ 81.202794][ T5822] security_d_instantiate+0x10a/0x200 [ 81.208697][ T5822] d_instantiate+0x55/0xa0 [ 81.213627][ T5822] ocfs2_mknod+0x1899/0x2050 [ 81.218733][ T5822] ocfs2_create+0x1a5/0x440 [ 81.223745][ T5822] path_openat+0x14f1/0x3830 [ 81.228843][ T5822] do_filp_open+0x1fa/0x410 [ 81.233861][ T5822] do_sys_openat2+0x121/0x1c0 [ 81.239063][ T5822] __x64_sys_openat+0x138/0x170 [ 81.244431][ T5822] do_syscall_64+0xf6/0x210 [ 81.249442][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.255849][ T5822] [ 81.255849][ T5822] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 81.263143][ T5822] lock_acquire+0x120/0x360 [ 81.268162][ T5822] start_this_handle+0x1fa7/0x21c0 [ 81.273785][ T5822] jbd2__journal_start+0x2c1/0x5b0 [ 81.279406][ T5822] jbd2_journal_start+0x2a/0x40 [ 81.284770][ T5822] ocfs2_start_trans+0x376/0x6d0 [ 81.290228][ T5822] ocfs2_mknod+0xe93/0x2050 [ 81.295256][ T5822] ocfs2_create+0x1a5/0x440 [ 81.300306][ T5822] path_openat+0x14f1/0x3830 [ 81.305408][ T5822] do_filp_open+0x1fa/0x410 [ 81.310419][ T5822] do_sys_openat2+0x121/0x1c0 [ 81.315628][ T5822] __x64_sys_openat+0x138/0x170 [ 81.320992][ T5822] do_syscall_64+0xf6/0x210 [ 81.326005][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.332416][ T5822] [ 81.332416][ T5822] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 81.340926][ T5822] lock_acquire+0x120/0x360 [ 81.345948][ T5822] down_read+0x46/0x2e0 [ 81.350615][ T5822] ocfs2_start_trans+0x36a/0x6d0 [ 81.356073][ T5822] ocfs2_mknod+0xe93/0x2050 [ 81.361111][ T5822] ocfs2_create+0x1a5/0x440 [ 81.366220][ T5822] path_openat+0x14f1/0x3830 [ 81.371322][ T5822] do_filp_open+0x1fa/0x410 [ 81.376340][ T5822] do_sys_openat2+0x121/0x1c0 [ 81.381530][ T5822] __x64_sys_openat+0x138/0x170 [ 81.386895][ T5822] do_syscall_64+0xf6/0x210 [ 81.391911][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.398316][ T5822] [ 81.398316][ T5822] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 81.405783][ T5822] lock_acquire+0x120/0x360 [ 81.410797][ T5822] ocfs2_start_trans+0x26b/0x6d0 [ 81.416245][ T5822] ocfs2_truncate_file+0x643/0x1420 [ 81.421961][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 81.427236][ T5822] notify_change+0xb33/0xe40 [ 81.432375][ T5822] do_truncate+0x19a/0x220 [ 81.437307][ T5822] path_openat+0x306c/0x3830 [ 81.442407][ T5822] do_filp_open+0x1fa/0x410 [ 81.447420][ T5822] do_sys_openat2+0x121/0x1c0 [ 81.452606][ T5822] __x64_sys_openat+0x138/0x170 [ 81.457976][ T5822] do_syscall_64+0xf6/0x210 [ 81.463076][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.469483][ T5822] [ 81.469483][ T5822] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 81.477294][ T5822] validate_chain+0xb9b/0x2140 [ 81.482574][ T5822] __lock_acquire+0xaac/0xd20 [ 81.487766][ T5822] lock_acquire+0x120/0x360 [ 81.492782][ T5822] down_write+0x96/0x1f0 [ 81.497549][ T5822] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 81.504048][ T5822] ocfs2_truncate_file+0xda0/0x1420 [ 81.509772][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 81.515152][ T5822] notify_change+0xb33/0xe40 [ 81.520259][ T5822] do_truncate+0x19a/0x220 [ 81.525190][ T5822] path_openat+0x306c/0x3830 [ 81.530292][ T5822] do_filp_open+0x1fa/0x410 [ 81.535313][ T5822] do_sys_openat2+0x121/0x1c0 [ 81.540504][ T5822] __x64_sys_openat+0x138/0x170 [ 81.545868][ T5822] do_syscall_64+0xf6/0x210 [ 81.550881][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.557284][ T5822] [ 81.557284][ T5822] other info that might help us debug this: [ 81.557284][ T5822] [ 81.567499][ T5822] Chain exists of: [ 81.567499][ T5822] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 81.567499][ T5822] [ 81.580535][ T5822] Possible unsafe locking scenario: [ 81.580535][ T5822] [ 81.587970][ T5822] CPU0 CPU1 [ 81.593409][ T5822] ---- ---- [ 81.598793][ T5822] lock(&oi->ip_xattr_sem); [ 81.603373][ T5822] lock(jbd2_handle); [ 81.609953][ T5822] lock(&oi->ip_xattr_sem); [ 81.617053][ T5822] lock(&oi->ip_alloc_sem); [ 81.621633][ T5822] [ 81.621633][ T5822] *** DEADLOCK *** [ 81.621633][ T5822] [ 81.629763][ T5822] 3 locks held by syz-executor211/5822: [ 81.635304][ T5822] #0: ffff888034a38420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 81.644444][ T5822] #1: ffff888076ee5f40 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x186/0x220 [ 81.654810][ T5822] #2: ffff888076ee5c78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 81.665862][ T5822] [ 81.665862][ T5822] stack backtrace: [ 81.671756][ T5822] CPU: 1 UID: 0 PID: 5822 Comm: syz-executor211 Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 PREEMPT(full) [ 81.671773][ T5822] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 81.671788][ T5822] Call Trace: [ 81.671796][ T5822] [ 81.671805][ T5822] dump_stack_lvl+0x189/0x250 [ 81.671830][ T5822] ? __pfx_dump_stack_lvl+0x10/0x10 [ 81.671849][ T5822] ? __pfx__printk+0x10/0x10 [ 81.671871][ T5822] ? print_lock_name+0xde/0x100 [ 81.671893][ T5822] print_circular_bug+0x2ee/0x310 [ 81.671916][ T5822] check_noncircular+0x134/0x160 [ 81.671940][ T5822] validate_chain+0xb9b/0x2140 [ 81.671968][ T5822] __lock_acquire+0xaac/0xd20 [ 81.671987][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 81.672008][ T5822] lock_acquire+0x120/0x360 [ 81.672025][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 81.672051][ T5822] down_write+0x96/0x1f0 [ 81.672066][ T5822] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 81.672088][ T5822] ? __pfx_down_write+0x10/0x10 [ 81.672106][ T5822] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 81.672130][ T5822] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 81.672153][ T5822] ? up_write+0x1c4/0x420 [ 81.672166][ T5822] ocfs2_truncate_file+0xda0/0x1420 [ 81.672188][ T5822] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 81.672205][ T5822] ? do_raw_spin_unlock+0x122/0x240 [ 81.672219][ T5822] ? _raw_spin_unlock+0x28/0x50 [ 81.672238][ T5822] ? ocfs2_inode_lock_tracker+0x3ec/0x660 [ 81.672266][ T5822] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 81.672298][ T5822] ? ocfs2_rw_lock+0x13a/0x240 [ 81.672315][ T5822] ? __pfx___dquot_initialize+0x10/0x10 [ 81.672336][ T5822] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 81.672353][ T5822] ? setattr_prepare+0x1e7/0xac0 [ 81.672370][ T5822] ? jbd2_journal_begin_ordered_truncate+0xbb/0x150 [ 81.672389][ T5822] ocfs2_setattr+0x1520/0x1b40 [ 81.672409][ T5822] ? __pfx_ocfs2_setattr+0x10/0x10 [ 81.672427][ T5822] ? smk_tskacc+0x2fc/0x370 [ 81.672446][ T5822] ? smack_inode_setattr+0x17b/0x200 [ 81.672465][ T5822] ? __pfx_smack_inode_setattr+0x10/0x10 [ 81.672486][ T5822] ? current_time+0x222/0x370 [ 81.672499][ T5822] ? evm_inode_setattr+0x1b6/0x7d0 [ 81.672514][ T5822] ? __pfx_current_time+0x10/0x10 [ 81.672528][ T5822] ? try_break_deleg+0x79/0x130 [ 81.672543][ T5822] ? __pfx_ocfs2_setattr+0x10/0x10 [ 81.672560][ T5822] notify_change+0xb33/0xe40 [ 81.672579][ T5822] do_truncate+0x19a/0x220 [ 81.672597][ T5822] ? __pfx_do_truncate+0x10/0x10 [ 81.672621][ T5822] path_openat+0x306c/0x3830 [ 81.672636][ T5822] ? arch_stack_walk+0xfc/0x150 [ 81.672662][ T5822] ? __pfx_path_openat+0x10/0x10 [ 81.672677][ T5822] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.672696][ T5822] do_filp_open+0x1fa/0x410 [ 81.672724][ T5822] ? __pfx_do_filp_open+0x10/0x10 [ 81.672744][ T5822] ? _raw_spin_unlock+0x28/0x50 [ 81.672761][ T5822] ? alloc_fd+0x64c/0x6c0 [ 81.672781][ T5822] do_sys_openat2+0x121/0x1c0 [ 81.672796][ T5822] ? __pfx_do_sys_openat2+0x10/0x10 [ 81.672810][ T5822] ? rcu_is_watching+0x15/0xb0 [ 81.672829][ T5822] __x64_sys_openat+0x138/0x170 [ 81.672844][ T5822] do_syscall_64+0xf6/0x210 [ 81.672858][ T5822] ? clear_bhb_loop+0x45/0xa0 [ 81.672871][ T5822] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.672884][ T5822] RIP: 0033:0x7f10bced7739 [ 81.672899][ T5822] 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 [ 81.672910][ T5822] RSP: 002b:00007ffda6b67088 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 81.672922][ T5822] RAX: ffffffffffffffda RBX: 00007ffda6b67268 RCX: 00007f10bced7739 [ 81.672931][ T5822] RDX: 000000000000275a RSI: 0000200000000080 RDI: 00000000ffffff9c openat(AT_FDCWD, "cgroup.controllers", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 8