./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3848519570 <...> Warning: Permanently added '10.128.1.132' (ED25519) to the list of known hosts. execve("./syz-executor3848519570", ["./syz-executor3848519570"], 0x7ffc7c5770e0 /* 10 vars */) = 0 brk(NULL) = 0x555580794000 brk(0x555580794d00) = 0x555580794d00 arch_prctl(ARCH_SET_FS, 0x555580794380) = 0 set_tid_address(0x555580794650) = 5825 set_robust_list(0x555580794660, 24) = 0 rseq(0x555580794ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3848519570", 4096) = 28 getrandom("\x62\x58\xdf\x32\x1d\xd9\x83\xb6", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555580794d00 brk(0x5555807b5d00) = 0x5555807b5d00 brk(0x5555807b6000) = 0x5555807b6000 mprotect(0x7f50909d7000, 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) = 0x7f5088400000 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(0x7f5088400000, 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 [ 83.983424][ T5825] loop0: detected capacity change from 0 to 32768 [ 84.027636][ T5825] ======================================================= [ 84.027636][ T5825] WARNING: The mand mount option has been deprecated and [ 84.027636][ T5825] and is ignored by this kernel. Remove the mand [ 84.027636][ T5825] option from the mount to silence this warning. [ 84.027636][ T5825] ======================================================= mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,dir_resv_level=00000000000000000003,coherency=full,coherency=full,localflocks,coh"...) = 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) [ 84.081286][ T5825] JBD2: Ignoring recovery information on journal [ 84.119405][ T5825] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NOCTTY|O_NONBLOCK|O_NOATIME, 000) = 4 [ 84.165475][ T5825] [ 84.167891][ T5825] ====================================================== [ 84.175023][ T5825] WARNING: possible circular locking dependency detected [ 84.182240][ T5825] 6.13.0-syzkaller-01005-gb9d8a295ed6b #0 Not tainted [ 84.189128][ T5825] ------------------------------------------------------ [ 84.196165][ T5825] syz-executor384/5825 is trying to acquire lock: [ 84.202777][ T5825] ffff88807281bf60 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 84.213903][ T5825] [ 84.213903][ T5825] but task is already holding lock: [ 84.221479][ T5825] ffff88807281bff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 84.232321][ T5825] [ 84.232321][ T5825] which lock already depends on the new lock. [ 84.232321][ T5825] [ 84.242922][ T5825] [ 84.242922][ T5825] the existing dependency chain (in reverse order) is: [ 84.253530][ T5825] [ 84.253530][ T5825] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 84.262064][ T5825] lock_acquire+0x1ed/0x550 [ 84.267418][ T5825] down_read+0xb1/0xa40 [ 84.273528][ T5825] ocfs2_init_acl+0x397/0x930 [ 84.278853][ T5825] ocfs2_mknod+0x1c05/0x2b30 [ 84.284375][ T5825] ocfs2_create+0x1ab/0x470 [ 84.289789][ T5825] path_openat+0x1c03/0x3590 [ 84.295311][ T5825] do_filp_open+0x27f/0x4e0 [ 84.301127][ T5825] do_sys_openat2+0x13e/0x1d0 [ 84.306479][ T5825] __x64_sys_openat+0x247/0x2a0 [ 84.311997][ T5825] do_syscall_64+0xf3/0x230 [ 84.317057][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.323521][ T5825] [ 84.323521][ T5825] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 84.330871][ T5825] lock_acquire+0x1ed/0x550 [ 84.336015][ T5825] start_this_handle+0x1eb4/0x2110 [ 84.341887][ T5825] jbd2__journal_start+0x2da/0x5d0 [ 84.347563][ T5825] jbd2_journal_start+0x29/0x40 [ 84.353152][ T5825] ocfs2_start_trans+0x3c9/0x700 [ 84.358727][ T5825] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 84.365407][ T5825] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 84.372403][ T5825] ocfs2_mknod+0x143a/0x2b30 [ 84.378153][ T5825] ocfs2_create+0x1ab/0x470 [ 84.383263][ T5825] path_openat+0x1c03/0x3590 [ 84.388389][ T5825] do_filp_open+0x27f/0x4e0 [ 84.393436][ T5825] do_sys_openat2+0x13e/0x1d0 [ 84.398761][ T5825] __x64_sys_openat+0x247/0x2a0 [ 84.404147][ T5825] do_syscall_64+0xf3/0x230 [ 84.409302][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.416175][ T5825] [ 84.416175][ T5825] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 84.424805][ T5825] lock_acquire+0x1ed/0x550 [ 84.429948][ T5825] down_read+0xb1/0xa40 [ 84.434667][ T5825] ocfs2_start_trans+0x3be/0x700 [ 84.440227][ T5825] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 84.446881][ T5825] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 84.453771][ T5825] ocfs2_mknod+0x143a/0x2b30 [ 84.459030][ T5825] ocfs2_create+0x1ab/0x470 [ 84.464150][ T5825] path_openat+0x1c03/0x3590 [ 84.469302][ T5825] do_filp_open+0x27f/0x4e0 [ 84.474365][ T5825] do_sys_openat2+0x13e/0x1d0 [ 84.479575][ T5825] __x64_sys_openat+0x247/0x2a0 [ 84.484951][ T5825] do_syscall_64+0xf3/0x230 [ 84.489976][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.496443][ T5825] [ 84.496443][ T5825] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 84.503952][ T5825] lock_acquire+0x1ed/0x550 [ 84.508990][ T5825] ocfs2_start_trans+0x2b9/0x700 [ 84.514469][ T5825] ocfs2_truncate_file+0x69a/0x1560 [ 84.520293][ T5825] ocfs2_setattr+0x1890/0x1ef0 [ 84.525610][ T5825] notify_change+0xbca/0xe90 [ 84.530768][ T5825] do_truncate+0x220/0x310 [ 84.535729][ T5825] path_openat+0x2e1e/0x3590 [ 84.541211][ T5825] do_filp_open+0x27f/0x4e0 [ 84.546814][ T5825] do_sys_openat2+0x13e/0x1d0 [ 84.552141][ T5825] __x64_sys_openat+0x247/0x2a0 [ 84.557692][ T5825] do_syscall_64+0xf3/0x230 [ 84.562911][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.569434][ T5825] [ 84.569434][ T5825] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 84.577294][ T5825] validate_chain+0x18ef/0x5920 [ 84.582711][ T5825] __lock_acquire+0x1397/0x2100 [ 84.588137][ T5825] lock_acquire+0x1ed/0x550 [ 84.593202][ T5825] down_write+0x99/0x220 [ 84.598078][ T5825] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 84.604688][ T5825] ocfs2_truncate_file+0xe1b/0x1560 [ 84.610537][ T5825] ocfs2_setattr+0x1890/0x1ef0 [ 84.615840][ T5825] notify_change+0xbca/0xe90 [ 84.621189][ T5825] do_truncate+0x220/0x310 [ 84.626149][ T5825] path_openat+0x2e1e/0x3590 [ 84.631275][ T5825] do_filp_open+0x27f/0x4e0 [ 84.636520][ T5825] do_sys_openat2+0x13e/0x1d0 [ 84.641937][ T5825] __x64_sys_openat+0x247/0x2a0 [ 84.647799][ T5825] do_syscall_64+0xf3/0x230 [ 84.652840][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.659295][ T5825] [ 84.659295][ T5825] other info that might help us debug this: [ 84.659295][ T5825] [ 84.669782][ T5825] Chain exists of: [ 84.669782][ T5825] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 84.669782][ T5825] [ 84.683208][ T5825] Possible unsafe locking scenario: [ 84.683208][ T5825] [ 84.690670][ T5825] CPU0 CPU1 [ 84.696150][ T5825] ---- ---- [ 84.701538][ T5825] lock(&oi->ip_xattr_sem); [ 84.706163][ T5825] lock(jbd2_handle); [ 84.712768][ T5825] lock(&oi->ip_xattr_sem); [ 84.719984][ T5825] lock(&oi->ip_alloc_sem); [ 84.724696][ T5825] [ 84.724696][ T5825] *** DEADLOCK *** [ 84.724696][ T5825] [ 84.732841][ T5825] 3 locks held by syz-executor384/5825: [ 84.738379][ T5825] #0: ffff8880123e2420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 84.747994][ T5825] #1: ffff88807281c2c0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 84.758554][ T5825] #2: ffff88807281bff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 84.769881][ T5825] [ 84.769881][ T5825] stack backtrace: [ 84.775805][ T5825] CPU: 0 UID: 0 PID: 5825 Comm: syz-executor384 Not tainted 6.13.0-syzkaller-01005-gb9d8a295ed6b #0 [ 84.786747][ T5825] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 84.796806][ T5825] Call Trace: [ 84.800120][ T5825] [ 84.803146][ T5825] dump_stack_lvl+0x241/0x360 [ 84.807945][ T5825] ? __pfx_dump_stack_lvl+0x10/0x10 [ 84.813193][ T5825] ? __pfx__printk+0x10/0x10 [ 84.817991][ T5825] print_circular_bug+0x13a/0x1b0 [ 84.823145][ T5825] check_noncircular+0x36a/0x4a0 [ 84.828240][ T5825] ? __pfx_check_noncircular+0x10/0x10 [ 84.833857][ T5825] ? lockdep_lock+0x123/0x2b0 [ 84.838658][ T5825] validate_chain+0x18ef/0x5920 [ 84.843823][ T5825] ? __pfx_validate_chain+0x10/0x10 [ 84.849337][ T5825] ? do_sys_openat2+0x13e/0x1d0 [ 84.854793][ T5825] ? do_syscall_64+0xf3/0x230 [ 84.859753][ T5825] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.866125][ T5825] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 84.872344][ T5825] ? mark_lock+0x9a/0x360 [ 84.876781][ T5825] __lock_acquire+0x1397/0x2100 [ 84.881883][ T5825] lock_acquire+0x1ed/0x550 [ 84.886880][ T5825] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 84.893869][ T5825] ? __pfx_lock_acquire+0x10/0x10 [ 84.899719][ T5825] ? __pfx___might_resched+0x10/0x10 [ 84.905316][ T5825] ? ocfs2_truncate_file+0xd45/0x1560 [ 84.911426][ T5825] ? __pfx_lock_release+0x10/0x10 [ 84.916836][ T5825] down_write+0x99/0x220 [ 84.921471][ T5825] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 84.927686][ T5825] ? __pfx_down_write+0x10/0x10 [ 84.933168][ T5825] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 84.939680][ T5825] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 84.946569][ T5825] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 84.952756][ T5825] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 84.958590][ T5825] ocfs2_truncate_file+0xe1b/0x1560 [ 84.964182][ T5825] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 84.970052][ T5825] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 84.976484][ T5825] ? do_raw_spin_unlock+0x13c/0x8b0 [ 84.981748][ T5825] ? __asan_memset+0x23/0x50 [ 84.986480][ T5825] ? _raw_spin_unlock+0x28/0x50 [ 84.991888][ T5825] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 84.998382][ T5825] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 85.004579][ T5825] ? ocfs2_rw_lock+0x13e/0x260 [ 85.009382][ T5825] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 85.014538][ T5825] ? setattr_prepare+0x1f5/0xb20 [ 85.019511][ T5825] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 85.026135][ T5825] ocfs2_setattr+0x1890/0x1ef0 [ 85.030963][ T5825] ? __pfx_ocfs2_setattr+0x10/0x10 [ 85.036237][ T5825] ? __pfx_smack_inode_setattr+0x10/0x10 [ 85.042525][ T5825] ? current_time+0x282/0x3c0 [ 85.047897][ T5825] ? evm_inode_setattr+0x1b2/0x7d0 [ 85.053148][ T5825] ? security_inode_setattr+0xdb/0x350 [ 85.058817][ T5825] ? __pfx_ocfs2_setattr+0x10/0x10 [ 85.064016][ T5825] notify_change+0xbca/0xe90 [ 85.068754][ T5825] do_truncate+0x220/0x310 [ 85.073288][ T5825] ? __pfx_do_truncate+0x10/0x10 [ 85.078259][ T5825] path_openat+0x2e1e/0x3590 [ 85.082964][ T5825] ? __pfx_path_openat+0x10/0x10 [ 85.088017][ T5825] do_filp_open+0x27f/0x4e0 [ 85.092538][ T5825] ? __pfx_do_filp_open+0x10/0x10 [ 85.097632][ T5825] ? do_raw_spin_lock+0x14f/0x370 [ 85.102771][ T5825] do_sys_openat2+0x13e/0x1d0 [ 85.107579][ T5825] ? __pfx_do_sys_openat2+0x10/0x10 [ 85.112791][ T5825] ? lockdep_hardirqs_on+0x99/0x150 [ 85.118024][ T5825] ? _raw_spin_unlock_irq+0x2e/0x50 [ 85.123341][ T5825] ? ptrace_notify+0x279/0x380 [ 85.128145][ T5825] __x64_sys_openat+0x247/0x2a0 [ 85.133006][ T5825] ? __pfx___x64_sys_openat+0x10/0x10 [ 85.138405][ T5825] ? do_syscall_64+0x100/0x230 [ 85.145298][ T5825] do_syscall_64+0xf3/0x230 [ 85.151304][ T5825] ? clear_bhb_loop+0x35/0x90 [ 85.156505][ T5825] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 85.163627][ T5825] RIP: 0033:0x7f50909609f9 [ 85.168350][ T5825] 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 [ 85.190456][ T5825] RSP: 002b:00007ffcbd533218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 85.199110][ T5825] RAX: ffffffffffffffda RBX: 00007ffcbd5333f8 RCX: 00007f50909609f9 [ 85.207339][ T5825] RDX: 0000000000000a81 RSI: 0000000020004400 RDI: 00000000ffffff9c openat(AT_FDCWD, "./bus", O_WRONLY|O_EXCL|O_TRUNC|O_NONBLOCK) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 85.215434][ T5825] RBP: 00007f50909d7610 R08: 000000