./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3521096077 <...> Warning: Permanently added '10.128.0.43' (ED25519) to the list of known hosts. execve("./syz-executor3521096077", ["./syz-executor3521096077"], 0x7ffe7a522460 /* 10 vars */) = 0 brk(NULL) = 0x555586695000 brk(0x555586695d00) = 0x555586695d00 arch_prctl(ARCH_SET_FS, 0x555586695380) = 0 set_tid_address(0x555586695650) = 5818 set_robust_list(0x555586695660, 24) = 0 rseq(0x555586695ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3521096077", 4096) = 28 getrandom("\xd4\x15\xa7\x8d\xa5\x13\x9e\x5f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555586695d00 brk(0x5555866b6d00) = 0x5555866b6d00 brk(0x5555866b7000) = 0x5555866b7000 mprotect(0x7f6b8f868000, 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) = 0x7f6b87200000 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(0x7f6b87200000, 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 [ 67.036544][ T5818] loop0: detected capacity change from 0 to 32768 [ 67.054105][ T5818] ======================================================= [ 67.054105][ T5818] WARNING: The mand mount option has been deprecated and [ 67.054105][ T5818] and is ignored by this kernel. Remove the mand [ 67.054105][ T5818] option from the mount to silence this warning. mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "coherency=buffered,heartbeat=none,coherency=full,errors=continue,journal_async_commit,localflocks,in"...) = 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, "cpuset.effective_cpus", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 67.054105][ T5818] ======================================================= [ 67.104709][ T5818] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 67.159640][ T5818] [ 67.162000][ T5818] ====================================================== [ 67.169001][ T5818] WARNING: possible circular locking dependency detected [ 67.176041][ T5818] 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0 Not tainted [ 67.183126][ T5818] ------------------------------------------------------ [ 67.190119][ T5818] syz-executor352/5818 is trying to acquire lock: [ 67.196509][ T5818] ffff8880744b3f60 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 67.207128][ T5818] [ 67.207128][ T5818] but task is already holding lock: [ 67.214476][ T5818] ffff8880744b3ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 67.225066][ T5818] [ 67.225066][ T5818] which lock already depends on the new lock. [ 67.225066][ T5818] [ 67.235467][ T5818] [ 67.235467][ T5818] the existing dependency chain (in reverse order) is: [ 67.244472][ T5818] [ 67.244472][ T5818] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 67.252276][ T5818] lock_acquire+0x1ed/0x550 [ 67.257292][ T5818] down_read+0xb1/0xa40 [ 67.261967][ T5818] ocfs2_init_acl+0x397/0x930 [ 67.267149][ T5818] ocfs2_mknod+0x1c05/0x2b30 [ 67.272259][ T5818] ocfs2_create+0x1ab/0x470 [ 67.277260][ T5818] path_openat+0x1c03/0x3590 [ 67.282368][ T5818] do_filp_open+0x27f/0x4e0 [ 67.287376][ T5818] do_sys_openat2+0x13e/0x1d0 [ 67.292553][ T5818] __x64_sys_openat+0x247/0x2a0 [ 67.297901][ T5818] do_syscall_64+0xf3/0x230 [ 67.302912][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.309311][ T5818] [ 67.309311][ T5818] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 67.316589][ T5818] lock_acquire+0x1ed/0x550 [ 67.321613][ T5818] start_this_handle+0x1eb4/0x2110 [ 67.327230][ T5818] jbd2__journal_start+0x2da/0x5d0 [ 67.332855][ T5818] jbd2_journal_start+0x29/0x40 [ 67.338225][ T5818] ocfs2_start_trans+0x3c9/0x700 [ 67.343675][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 67.350743][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 67.357670][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 67.362768][ T5818] ocfs2_create+0x1ab/0x470 [ 67.367779][ T5818] path_openat+0x1c03/0x3590 [ 67.372877][ T5818] do_filp_open+0x27f/0x4e0 [ 67.377909][ T5818] do_sys_openat2+0x13e/0x1d0 [ 67.383120][ T5818] __x64_sys_openat+0x247/0x2a0 [ 67.388484][ T5818] do_syscall_64+0xf3/0x230 [ 67.393678][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.400082][ T5818] [ 67.400082][ T5818] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 67.408588][ T5818] lock_acquire+0x1ed/0x550 [ 67.413603][ T5818] down_read+0xb1/0xa40 [ 67.418279][ T5818] ocfs2_start_trans+0x3be/0x700 [ 67.423725][ T5818] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 67.430212][ T5818] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 67.437051][ T5818] ocfs2_mknod+0x143a/0x2b30 [ 67.442156][ T5818] ocfs2_create+0x1ab/0x470 [ 67.447170][ T5818] path_openat+0x1c03/0x3590 [ 67.452298][ T5818] do_filp_open+0x27f/0x4e0 [ 67.457309][ T5818] do_sys_openat2+0x13e/0x1d0 [ 67.462491][ T5818] __x64_sys_openat+0x247/0x2a0 [ 67.467849][ T5818] do_syscall_64+0xf3/0x230 [ 67.472865][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.479274][ T5818] [ 67.479274][ T5818] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 67.486741][ T5818] lock_acquire+0x1ed/0x550 [ 67.491772][ T5818] ocfs2_start_trans+0x2b9/0x700 [ 67.497267][ T5818] ocfs2_truncate_file+0x69a/0x1560 [ 67.503080][ T5818] ocfs2_setattr+0x1890/0x1ef0 [ 67.508361][ T5818] notify_change+0xbca/0xe90 [ 67.513469][ T5818] do_truncate+0x220/0x310 [ 67.518396][ T5818] path_openat+0x2e1e/0x3590 [ 67.523496][ T5818] do_filp_open+0x27f/0x4e0 [ 67.528508][ T5818] do_sys_openat2+0x13e/0x1d0 [ 67.533693][ T5818] __x64_sys_openat+0x247/0x2a0 [ 67.539066][ T5818] do_syscall_64+0xf3/0x230 [ 67.544084][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.550507][ T5818] [ 67.550507][ T5818] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 67.558337][ T5818] validate_chain+0x18ef/0x5920 [ 67.563713][ T5818] __lock_acquire+0x1397/0x2100 [ 67.569077][ T5818] lock_acquire+0x1ed/0x550 [ 67.574091][ T5818] down_write+0x99/0x220 [ 67.578853][ T5818] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 67.585344][ T5818] ocfs2_truncate_file+0xe1b/0x1560 [ 67.591061][ T5818] ocfs2_setattr+0x1890/0x1ef0 [ 67.596334][ T5818] notify_change+0xbca/0xe90 [ 67.601439][ T5818] do_truncate+0x220/0x310 [ 67.606376][ T5818] path_openat+0x2e1e/0x3590 [ 67.611480][ T5818] do_filp_open+0x27f/0x4e0 [ 67.616494][ T5818] do_sys_openat2+0x13e/0x1d0 [ 67.621689][ T5818] __x64_sys_openat+0x247/0x2a0 [ 67.627044][ T5818] do_syscall_64+0xf3/0x230 [ 67.632060][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.638481][ T5818] [ 67.638481][ T5818] other info that might help us debug this: [ 67.638481][ T5818] [ 67.648712][ T5818] Chain exists of: [ 67.648712][ T5818] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 67.648712][ T5818] [ 67.661751][ T5818] Possible unsafe locking scenario: [ 67.661751][ T5818] [ 67.669188][ T5818] CPU0 CPU1 [ 67.674538][ T5818] ---- ---- [ 67.680413][ T5818] lock(&oi->ip_xattr_sem); [ 67.685084][ T5818] lock(jbd2_handle); [ 67.691699][ T5818] lock(&oi->ip_xattr_sem); [ 67.698817][ T5818] lock(&oi->ip_alloc_sem); [ 67.703398][ T5818] [ 67.703398][ T5818] *** DEADLOCK *** [ 67.703398][ T5818] [ 67.711537][ T5818] 3 locks held by syz-executor352/5818: [ 67.717064][ T5818] #0: ffff88807d650420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 67.726467][ T5818] #1: ffff8880744b42c0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 67.736823][ T5818] #2: ffff8880744b3ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 67.747880][ T5818] [ 67.747880][ T5818] stack backtrace: [ 67.753772][ T5818] CPU: 1 UID: 0 PID: 5818 Comm: syz-executor352 Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0 [ 67.764878][ T5818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 67.774929][ T5818] Call Trace: [ 67.778203][ T5818] [ 67.781130][ T5818] dump_stack_lvl+0x241/0x360 [ 67.785802][ T5818] ? __pfx_dump_stack_lvl+0x10/0x10 [ 67.790992][ T5818] ? __pfx__printk+0x10/0x10 [ 67.795577][ T5818] print_circular_bug+0x13a/0x1b0 [ 67.800598][ T5818] check_noncircular+0x36a/0x4a0 [ 67.805536][ T5818] ? __pfx_check_noncircular+0x10/0x10 [ 67.810989][ T5818] ? lockdep_lock+0x123/0x2b0 [ 67.815657][ T5818] validate_chain+0x18ef/0x5920 [ 67.820504][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 67.825697][ T5818] ? do_sys_openat2+0x13e/0x1d0 [ 67.830540][ T5818] ? do_syscall_64+0xf3/0x230 [ 67.835210][ T5818] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 67.841294][ T5818] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 67.847354][ T5818] ? mark_lock+0x9a/0x360 [ 67.851677][ T5818] __lock_acquire+0x1397/0x2100 [ 67.856530][ T5818] lock_acquire+0x1ed/0x550 [ 67.861026][ T5818] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 67.867179][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 67.872282][ T5818] ? __pfx___might_resched+0x10/0x10 [ 67.877562][ T5818] ? ocfs2_truncate_file+0xd45/0x1560 [ 67.882926][ T5818] ? __pfx_lock_release+0x10/0x10 [ 67.887938][ T5818] down_write+0x99/0x220 [ 67.892173][ T5818] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 67.898315][ T5818] ? __pfx_down_write+0x10/0x10 [ 67.903161][ T5818] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 67.909132][ T5818] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 67.915712][ T5818] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 67.921764][ T5818] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 67.927472][ T5818] ocfs2_truncate_file+0xe1b/0x1560 [ 67.932665][ T5818] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 67.938382][ T5818] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 67.944006][ T5818] ? do_raw_spin_unlock+0x13c/0x8b0 [ 67.949198][ T5818] ? __asan_memset+0x23/0x50 [ 67.953781][ T5818] ? _raw_spin_unlock+0x28/0x50 [ 67.958621][ T5818] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 67.964332][ T5818] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 67.970395][ T5818] ? ocfs2_rw_lock+0x13e/0x260 [ 67.975147][ T5818] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 67.980250][ T5818] ? setattr_prepare+0x1f5/0xb20 [ 67.985180][ T5818] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 67.991764][ T5818] ocfs2_setattr+0x1890/0x1ef0 [ 67.996519][ T5818] ? __pfx_ocfs2_setattr+0x10/0x10 [ 68.001629][ T5818] ? __pfx_smack_inode_setattr+0x10/0x10 [ 68.007258][ T5818] ? current_time+0x282/0x3c0 [ 68.011923][ T5818] ? evm_inode_setattr+0x1b2/0x7d0 [ 68.017025][ T5818] ? security_inode_setattr+0xdb/0x350 [ 68.022473][ T5818] ? __pfx_ocfs2_setattr+0x10/0x10 [ 68.027571][ T5818] notify_change+0xbca/0xe90 [ 68.032163][ T5818] do_truncate+0x220/0x310 [ 68.036577][ T5818] ? __pfx_do_truncate+0x10/0x10 [ 68.041508][ T5818] path_openat+0x2e1e/0x3590 [ 68.046097][ T5818] ? __pfx_path_openat+0x10/0x10 [ 68.051039][ T5818] do_filp_open+0x27f/0x4e0 [ 68.055540][ T5818] ? __pfx_do_filp_open+0x10/0x10 [ 68.060554][ T5818] ? do_raw_spin_lock+0x14f/0x370 [ 68.065580][ T5818] do_sys_openat2+0x13e/0x1d0 [ 68.070267][ T5818] ? __pfx_do_sys_openat2+0x10/0x10 [ 68.075475][ T5818] ? lockdep_hardirqs_on+0x99/0x150 [ 68.080684][ T5818] ? _raw_spin_unlock_irq+0x2e/0x50 [ 68.085873][ T5818] ? ptrace_notify+0x279/0x380 [ 68.090631][ T5818] __x64_sys_openat+0x247/0x2a0 [ 68.095472][ T5818] ? __pfx___x64_sys_openat+0x10/0x10 [ 68.100846][ T5818] ? do_syscall_64+0x100/0x230 [ 68.105607][ T5818] do_syscall_64+0xf3/0x230 [ 68.110103][ T5818] ? clear_bhb_loop+0x35/0x90 [ 68.114777][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 68.120666][ T5818] RIP: 0033:0x7f6b8f7f1a39 [ 68.125440][ T5818] 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 [ 68.145037][ T5818] RSP: 002b:00007ffc59a27a68 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 68.153452][ T5818] RAX: ffffffffffffffda RBX: 00737570635f6576 RCX: 00007f6b8f7f1a39 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 +++ [ 68.161538][ T5818] RDX: