./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3337724963 <...> Warning: Permanently added '10.128.10.18' (ED25519) to the list of known hosts. execve("./syz-executor3337724963", ["./syz-executor3337724963"], 0x7fff10173e00 /* 10 vars */) = 0 brk(NULL) = 0x5555598af000 brk(0x5555598afd00) = 0x5555598afd00 arch_prctl(ARCH_SET_FS, 0x5555598af380) = 0 set_tid_address(0x5555598af650) = 5829 set_robust_list(0x5555598af660, 24) = 0 rseq(0x5555598afca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3337724963", 4096) = 28 getrandom("\xc2\xc9\x86\x19\xaf\xc7\x0d\xcb", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555598afd00 brk(0x5555598d0d00) = 0x5555598d0d00 brk(0x5555598d1000) = 0x5555598d1000 mprotect(0x7fe8e3649000, 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 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) = 0x7fe8db000000 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(0x7fe8db000000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file3", 0777) = 0 [ 59.702091][ T5829] loop0: detected capacity change from 0 to 32768 [ 59.744300][ T5829] ======================================================= [ 59.744300][ T5829] WARNING: The mand mount option has been deprecated and [ 59.744300][ T5829] and is ignored by this kernel. Remove the mand [ 59.744300][ T5829] option from the mount to silence this warning. [ 59.744300][ T5829] ======================================================= mount("/dev/loop0", "./file3", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,heartbeat=none,coherency=full,coherency=full,coherency=buffered,errors=continue,u"...) = 0 openat(AT_FDCWD, "./file3", O_RDONLY|O_DIRECTORY) = 3 chdir("./file3") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) creat("./bus", 000) = 4 [ 59.795827][ T5829] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 59.816386][ T5829] [ 59.818716][ T5829] ====================================================== [ 59.825714][ T5829] WARNING: possible circular locking dependency detected [ 59.832724][ T5829] 6.13.0-rc1-next-20241204-syzkaller #0 Not tainted [ 59.839283][ T5829] ------------------------------------------------------ [ 59.846279][ T5829] syz-executor333/5829 is trying to acquire lock: [ 59.852669][ T5829] ffff88807357dbe0 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 59.863283][ T5829] [ 59.863283][ T5829] but task is already holding lock: [ 59.870629][ T5829] ffff88807357dc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 59.881218][ T5829] [ 59.881218][ T5829] which lock already depends on the new lock. [ 59.881218][ T5829] [ 59.891598][ T5829] [ 59.891598][ T5829] the existing dependency chain (in reverse order) is: [ 59.900587][ T5829] [ 59.900587][ T5829] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 59.908384][ T5829] lock_acquire+0x1ed/0x550 [ 59.913394][ T5829] down_read+0xb1/0xa40 [ 59.918060][ T5829] ocfs2_init_acl+0x397/0x930 [ 59.923258][ T5829] ocfs2_mknod+0x1c05/0x2b30 [ 59.928374][ T5829] ocfs2_create+0x1ab/0x470 [ 59.933381][ T5829] path_openat+0x1c03/0x3590 [ 59.938473][ T5829] do_filp_open+0x27f/0x4e0 [ 59.943493][ T5829] do_sys_openat2+0x13e/0x1d0 [ 59.948682][ T5829] __x64_sys_creat+0x123/0x170 [ 59.953950][ T5829] do_syscall_64+0xf3/0x230 [ 59.958958][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.965360][ T5829] [ 59.965360][ T5829] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 59.972654][ T5829] lock_acquire+0x1ed/0x550 [ 59.977664][ T5829] start_this_handle+0x1eb4/0x2110 [ 59.983276][ T5829] jbd2__journal_start+0x2da/0x5d0 [ 59.988886][ T5829] jbd2_journal_start+0x29/0x40 [ 59.994236][ T5829] ocfs2_start_trans+0x3c9/0x700 [ 59.999675][ T5829] ocfs2_mknod+0x150c/0x2b30 [ 60.004792][ T5829] ocfs2_create+0x1ab/0x470 [ 60.009796][ T5829] path_openat+0x1c03/0x3590 [ 60.014892][ T5829] do_filp_open+0x27f/0x4e0 [ 60.019897][ T5829] do_sys_openat2+0x13e/0x1d0 [ 60.025081][ T5829] __x64_sys_creat+0x123/0x170 [ 60.030346][ T5829] do_syscall_64+0xf3/0x230 [ 60.035351][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.041746][ T5829] [ 60.041746][ T5829] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 60.050238][ T5829] lock_acquire+0x1ed/0x550 [ 60.055242][ T5829] down_read+0xb1/0xa40 [ 60.059902][ T5829] ocfs2_start_trans+0x3be/0x700 [ 60.065340][ T5829] ocfs2_mknod+0x150c/0x2b30 [ 60.070436][ T5829] ocfs2_create+0x1ab/0x470 [ 60.075442][ T5829] path_openat+0x1c03/0x3590 [ 60.080535][ T5829] do_filp_open+0x27f/0x4e0 [ 60.085545][ T5829] do_sys_openat2+0x13e/0x1d0 [ 60.090722][ T5829] __x64_sys_creat+0x123/0x170 [ 60.095988][ T5829] do_syscall_64+0xf3/0x230 [ 60.100990][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.107385][ T5829] [ 60.107385][ T5829] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 60.114914][ T5829] lock_acquire+0x1ed/0x550 [ 60.119933][ T5829] ocfs2_start_trans+0x2b9/0x700 [ 60.125379][ T5829] ocfs2_truncate_file+0x69a/0x1560 [ 60.131082][ T5829] ocfs2_setattr+0x1890/0x1ef0 [ 60.136348][ T5829] notify_change+0xbca/0xe90 [ 60.141440][ T5829] do_truncate+0x220/0x310 [ 60.146367][ T5829] path_openat+0x2e1e/0x3590 [ 60.151468][ T5829] do_filp_open+0x27f/0x4e0 [ 60.156484][ T5829] do_sys_openat2+0x13e/0x1d0 [ 60.161669][ T5829] __x64_sys_open+0x225/0x270 [ 60.166849][ T5829] do_syscall_64+0xf3/0x230 [ 60.171856][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.178252][ T5829] [ 60.178252][ T5829] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 60.186049][ T5829] validate_chain+0x18ef/0x5920 [ 60.191406][ T5829] __lock_acquire+0x1397/0x2100 [ 60.196757][ T5829] lock_acquire+0x1ed/0x550 [ 60.201763][ T5829] down_write+0x99/0x220 [ 60.206505][ T5829] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 60.212988][ T5829] ocfs2_truncate_file+0xe1b/0x1560 [ 60.218689][ T5829] ocfs2_setattr+0x1890/0x1ef0 [ 60.223955][ T5829] notify_change+0xbca/0xe90 [ 60.229045][ T5829] do_truncate+0x220/0x310 [ 60.233965][ T5829] path_openat+0x2e1e/0x3590 [ 60.239060][ T5829] do_filp_open+0x27f/0x4e0 [ 60.244089][ T5829] do_sys_openat2+0x13e/0x1d0 [ 60.249295][ T5829] __x64_sys_open+0x225/0x270 [ 60.254490][ T5829] do_syscall_64+0xf3/0x230 [ 60.259506][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.265906][ T5829] [ 60.265906][ T5829] other info that might help us debug this: [ 60.265906][ T5829] [ 60.276126][ T5829] Chain exists of: [ 60.276126][ T5829] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 60.276126][ T5829] [ 60.289197][ T5829] Possible unsafe locking scenario: [ 60.289197][ T5829] [ 60.296637][ T5829] CPU0 CPU1 [ 60.301989][ T5829] ---- ---- [ 60.307342][ T5829] lock(&oi->ip_xattr_sem); [ 60.311922][ T5829] lock(jbd2_handle); [ 60.318491][ T5829] lock(&oi->ip_xattr_sem); [ 60.325598][ T5829] lock(&oi->ip_alloc_sem); [ 60.330169][ T5829] [ 60.330169][ T5829] *** DEADLOCK *** [ 60.330169][ T5829] [ 60.338290][ T5829] 3 locks held by syz-executor333/5829: [ 60.343812][ T5829] #0: ffff8880355be420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 60.352934][ T5829] #1: ffff88807357df40 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 60.363274][ T5829] #2: ffff88807357dc78 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 60.374297][ T5829] [ 60.374297][ T5829] stack backtrace: [ 60.380179][ T5829] CPU: 0 UID: 0 PID: 5829 Comm: syz-executor333 Not tainted 6.13.0-rc1-next-20241204-syzkaller #0 [ 60.390747][ T5829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 60.400794][ T5829] Call Trace: [ 60.404067][ T5829] [ 60.406986][ T5829] dump_stack_lvl+0x241/0x360 [ 60.411650][ T5829] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.416830][ T5829] ? __pfx__printk+0x10/0x10 [ 60.421406][ T5829] print_circular_bug+0x13a/0x1b0 [ 60.426417][ T5829] check_noncircular+0x36a/0x4a0 [ 60.431339][ T5829] ? __pfx_check_noncircular+0x10/0x10 [ 60.436778][ T5829] ? lockdep_lock+0x123/0x2b0 [ 60.441438][ T5829] validate_chain+0x18ef/0x5920 [ 60.446277][ T5829] ? __pfx_validate_chain+0x10/0x10 [ 60.451457][ T5829] ? stack_trace_save+0x118/0x1d0 [ 60.456464][ T5829] ? __pfx_stack_trace_save+0x10/0x10 [ 60.461838][ T5829] ? lockdep_unlock+0x16a/0x300 [ 60.466669][ T5829] ? mark_lock+0x9a/0x360 [ 60.470978][ T5829] __lock_acquire+0x1397/0x2100 [ 60.475810][ T5829] lock_acquire+0x1ed/0x550 [ 60.480292][ T5829] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 60.486449][ T5829] ? __pfx_lock_acquire+0x10/0x10 [ 60.491452][ T5829] ? __pfx___might_resched+0x10/0x10 [ 60.496722][ T5829] ? ocfs2_truncate_file+0xd45/0x1560 [ 60.502077][ T5829] ? __pfx_lock_release+0x10/0x10 [ 60.507080][ T5829] down_write+0x99/0x220 [ 60.511304][ T5829] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 60.517436][ T5829] ? __pfx_down_write+0x10/0x10 [ 60.522285][ T5829] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 60.528247][ T5829] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 60.534818][ T5829] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 60.540868][ T5829] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 60.546565][ T5829] ocfs2_truncate_file+0xe1b/0x1560 [ 60.551744][ T5829] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 60.557442][ T5829] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 60.563059][ T5829] ? do_raw_spin_unlock+0x13c/0x8b0 [ 60.568245][ T5829] ? __asan_memset+0x23/0x50 [ 60.572822][ T5829] ? _raw_spin_unlock+0x28/0x50 [ 60.577662][ T5829] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 60.583362][ T5829] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 60.589409][ T5829] ? ocfs2_rw_lock+0x13e/0x260 [ 60.594163][ T5829] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 60.599257][ T5829] ? setattr_prepare+0x1f5/0xb20 [ 60.604175][ T5829] ? inode_newsize_ok+0x11a/0x1c0 [ 60.609177][ T5829] ocfs2_setattr+0x1890/0x1ef0 [ 60.613929][ T5829] ? __pfx_ocfs2_setattr+0x10/0x10 [ 60.619020][ T5829] ? seqcount_lockdep_reader_access+0x1d7/0x220 [ 60.625251][ T5829] ? __pfx_seqcount_lockdep_reader_access+0x10/0x10 [ 60.631825][ T5829] ? ktime_get_coarse_real_ts64_mg+0x20c/0x220 [ 60.637967][ T5829] ? current_time+0x279/0x3a0 [ 60.642627][ T5829] ? evm_inode_setattr+0x1b2/0x7d0 [ 60.647722][ T5829] ? security_inode_setattr+0xdb/0x350 [ 60.653158][ T5829] ? __pfx_ocfs2_setattr+0x10/0x10 [ 60.658252][ T5829] notify_change+0xbca/0xe90 [ 60.662826][ T5829] do_truncate+0x220/0x310 [ 60.667225][ T5829] ? __pfx_do_truncate+0x10/0x10 [ 60.672144][ T5829] ? apparmor_file_truncate+0x297/0x350 [ 60.677675][ T5829] path_openat+0x2e1e/0x3590 [ 60.682271][ T5829] ? __pfx_path_openat+0x10/0x10 [ 60.687195][ T5829] do_filp_open+0x27f/0x4e0 [ 60.691681][ T5829] ? __pfx_do_filp_open+0x10/0x10 [ 60.696688][ T5829] ? do_raw_spin_lock+0x14f/0x370 [ 60.701702][ T5829] do_sys_openat2+0x13e/0x1d0 [ 60.706363][ T5829] ? __pfx_do_sys_openat2+0x10/0x10 [ 60.711541][ T5829] ? lockdep_hardirqs_on+0x99/0x150 [ 60.716724][ T5829] ? _raw_spin_unlock_irq+0x2e/0x50 [ 60.721907][ T5829] ? ptrace_notify+0x279/0x380 [ 60.726652][ T5829] __x64_sys_open+0x225/0x270 [ 60.731311][ T5829] ? __pfx___x64_sys_open+0x10/0x10 [ 60.736490][ T5829] ? do_syscall_64+0x100/0x230 [ 60.741238][ T5829] do_syscall_64+0xf3/0x230 [ 60.745719][ T5829] ? clear_bhb_loop+0x35/0x90 [ 60.750377][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.756254][ T5829] RIP: 0033:0x7fe8e35d2a79 [ 60.760656][ T5829] 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 [ 60.780258][ T5829] RSP: 002b:00007ffe7b6b28a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 60.788652][ T5829] RAX: ffffffffffffffda RBX: 00007ffe7b6b2a88 RCX: 00007fe8e35d2a79 open("./bus", O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 60.796605][ T5829] RDX: 0000000000000000 R