./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1330686628 <...> Warning: Permanently added '10.128.1.94' (ED25519) to the list of known hosts. execve("./syz-executor1330686628", ["./syz-executor1330686628"], 0x7ffd1eef5f50 /* 10 vars */) = 0 brk(NULL) = 0x55558b207000 brk(0x55558b207d00) = 0x55558b207d00 arch_prctl(ARCH_SET_FS, 0x55558b207380) = 0 set_tid_address(0x55558b207650) = 5819 set_robust_list(0x55558b207660, 24) = 0 rseq(0x55558b207ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1330686628", 4096) = 28 getrandom("\xc1\x28\xb5\xfc\x8d\xa7\xae\xd6", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558b207d00 brk(0x55558b228d00) = 0x55558b228d00 brk(0x55558b229000) = 0x55558b229000 mprotect(0x7f7a4c894000, 16384, PROT_READ) = 0 mmap(0x3ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3ffffffff000 mmap(0x400000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000000000 mmap(0x400001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400001000000 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) = 0x7f7a44200000 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(0x7f7a44200000, 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 [ 61.833358][ T5819] loop0: detected capacity change from 0 to 32768 mount("/dev/loop0", "./file1", "ocfs2", 0, "acl,heartbeat=none,errors=remount-ro,coherency=full,coherency=full,localflocks,errors=remount-ro,acl"...) = 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 [ 61.890554][ T5819] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 61.907834][ T5819] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 61.931633][ T5819] [ 61.933989][ T5819] ====================================================== [ 61.940994][ T5819] WARNING: possible circular locking dependency detected [ 61.948016][ T5819] 6.14.0-rc1-syzkaller-00187-g8f6629c004b1 #0 Not tainted [ 61.955102][ T5819] ------------------------------------------------------ [ 61.962094][ T5819] syz-executor133/5819 is trying to acquire lock: [ 61.968482][ T5819] ffff888078fdb120 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 61.979122][ T5819] [ 61.979122][ T5819] but task is already holding lock: [ 61.986474][ T5819] ffff888078fdb1b8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 61.997081][ T5819] [ 61.997081][ T5819] which lock already depends on the new lock. [ 61.997081][ T5819] [ 62.007467][ T5819] [ 62.007467][ T5819] the existing dependency chain (in reverse order) is: [ 62.016467][ T5819] [ 62.016467][ T5819] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 62.024362][ T5819] lock_acquire+0x1ed/0x550 [ 62.029377][ T5819] down_read+0xb1/0xa40 [ 62.034056][ T5819] ocfs2_init_acl+0x397/0x930 [ 62.039244][ T5819] ocfs2_mknod+0x1c05/0x2b30 [ 62.044344][ T5819] ocfs2_create+0x1ab/0x470 [ 62.049356][ T5819] path_openat+0x193c/0x3590 [ 62.054461][ T5819] do_filp_open+0x27f/0x4e0 [ 62.059475][ T5819] do_sys_openat2+0x13e/0x1d0 [ 62.064665][ T5819] __x64_sys_openat+0x247/0x2a0 [ 62.070024][ T5819] do_syscall_64+0xf3/0x230 [ 62.075036][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.081474][ T5819] [ 62.081474][ T5819] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 62.088768][ T5819] lock_acquire+0x1ed/0x550 [ 62.093785][ T5819] start_this_handle+0x1eb4/0x2110 [ 62.099408][ T5819] jbd2__journal_start+0x2da/0x5d0 [ 62.105028][ T5819] jbd2_journal_start+0x29/0x40 [ 62.110393][ T5819] ocfs2_start_trans+0x3c9/0x700 [ 62.115846][ T5819] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.122248][ T5819] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.129082][ T5819] ocfs2_mknod+0x143a/0x2b30 [ 62.134181][ T5819] ocfs2_create+0x1ab/0x470 [ 62.139192][ T5819] path_openat+0x193c/0x3590 [ 62.144296][ T5819] do_filp_open+0x27f/0x4e0 [ 62.149307][ T5819] do_sys_openat2+0x13e/0x1d0 [ 62.154502][ T5819] __x64_sys_openat+0x247/0x2a0 [ 62.159862][ T5819] do_syscall_64+0xf3/0x230 [ 62.164885][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.171290][ T5819] [ 62.171290][ T5819] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 62.179797][ T5819] lock_acquire+0x1ed/0x550 [ 62.184811][ T5819] down_read+0xb1/0xa40 [ 62.189478][ T5819] ocfs2_start_trans+0x3be/0x700 [ 62.194926][ T5819] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 62.201414][ T5819] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 62.208251][ T5819] ocfs2_mknod+0x143a/0x2b30 [ 62.213354][ T5819] ocfs2_create+0x1ab/0x470 [ 62.218365][ T5819] path_openat+0x193c/0x3590 [ 62.223476][ T5819] do_filp_open+0x27f/0x4e0 [ 62.228498][ T5819] do_sys_openat2+0x13e/0x1d0 [ 62.233777][ T5819] __x64_sys_openat+0x247/0x2a0 [ 62.239144][ T5819] do_syscall_64+0xf3/0x230 [ 62.244161][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.250566][ T5819] [ 62.250566][ T5819] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 62.258039][ T5819] lock_acquire+0x1ed/0x550 [ 62.263060][ T5819] ocfs2_start_trans+0x2b9/0x700 [ 62.268513][ T5819] ocfs2_truncate_file+0x69a/0x1560 [ 62.274230][ T5819] ocfs2_setattr+0x1890/0x1ef0 [ 62.279501][ T5819] notify_change+0xbca/0xe90 [ 62.284606][ T5819] do_truncate+0x220/0x310 [ 62.289534][ T5819] path_openat+0x2e1b/0x3590 [ 62.294638][ T5819] do_filp_open+0x27f/0x4e0 [ 62.299653][ T5819] do_sys_openat2+0x13e/0x1d0 [ 62.304844][ T5819] __x64_sys_openat+0x247/0x2a0 [ 62.310205][ T5819] do_syscall_64+0xf3/0x230 [ 62.315222][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.321627][ T5819] [ 62.321627][ T5819] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 62.329440][ T5819] validate_chain+0x18ef/0x5920 [ 62.334805][ T5819] __lock_acquire+0x1397/0x2100 [ 62.340163][ T5819] lock_acquire+0x1ed/0x550 [ 62.345176][ T5819] down_write+0x99/0x220 [ 62.349928][ T5819] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.356418][ T5819] ocfs2_truncate_file+0xe1b/0x1560 [ 62.362124][ T5819] ocfs2_setattr+0x1890/0x1ef0 [ 62.367394][ T5819] notify_change+0xbca/0xe90 [ 62.372492][ T5819] do_truncate+0x220/0x310 [ 62.377512][ T5819] path_openat+0x2e1b/0x3590 [ 62.382638][ T5819] do_filp_open+0x27f/0x4e0 [ 62.387663][ T5819] do_sys_openat2+0x13e/0x1d0 [ 62.392853][ T5819] __x64_sys_openat+0x247/0x2a0 [ 62.398393][ T5819] do_syscall_64+0xf3/0x230 [ 62.403409][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.409826][ T5819] [ 62.409826][ T5819] other info that might help us debug this: [ 62.409826][ T5819] [ 62.420037][ T5819] Chain exists of: [ 62.420037][ T5819] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 62.420037][ T5819] [ 62.433066][ T5819] Possible unsafe locking scenario: [ 62.433066][ T5819] [ 62.440503][ T5819] CPU0 CPU1 [ 62.445851][ T5819] ---- ---- [ 62.451197][ T5819] lock(&oi->ip_xattr_sem); [ 62.455775][ T5819] lock(jbd2_handle); [ 62.462372][ T5819] lock(&oi->ip_xattr_sem); [ 62.469481][ T5819] lock(&oi->ip_alloc_sem); [ 62.474063][ T5819] [ 62.474063][ T5819] *** DEADLOCK *** [ 62.474063][ T5819] [ 62.482207][ T5819] 3 locks held by syz-executor133/5819: [ 62.487739][ T5819] #0: ffff88807d7b8420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 62.496896][ T5819] #1: ffff888078fdb480 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 62.507249][ T5819] #2: ffff888078fdb1b8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 62.518294][ T5819] [ 62.518294][ T5819] stack backtrace: [ 62.524181][ T5819] CPU: 0 UID: 0 PID: 5819 Comm: syz-executor133 Not tainted 6.14.0-rc1-syzkaller-00187-g8f6629c004b1 #0 [ 62.524196][ T5819] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 62.524207][ T5819] Call Trace: [ 62.524215][ T5819] [ 62.524221][ T5819] dump_stack_lvl+0x241/0x360 [ 62.524246][ T5819] ? __pfx_dump_stack_lvl+0x10/0x10 [ 62.524263][ T5819] ? __pfx__printk+0x10/0x10 [ 62.524284][ T5819] print_circular_bug+0x13a/0x1b0 [ 62.524303][ T5819] check_noncircular+0x36a/0x4a0 [ 62.524321][ T5819] ? __pfx_check_noncircular+0x10/0x10 [ 62.524338][ T5819] ? lockdep_lock+0x123/0x2b0 [ 62.524356][ T5819] validate_chain+0x18ef/0x5920 [ 62.524379][ T5819] ? __pfx_validate_chain+0x10/0x10 [ 62.524395][ T5819] ? do_sys_openat2+0x13e/0x1d0 [ 62.524410][ T5819] ? do_syscall_64+0xf3/0x230 [ 62.524427][ T5819] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.524449][ T5819] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 62.524468][ T5819] ? mark_lock+0x9a/0x360 [ 62.524484][ T5819] __lock_acquire+0x1397/0x2100 [ 62.524503][ T5819] lock_acquire+0x1ed/0x550 [ 62.524518][ T5819] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.524536][ T5819] ? __pfx_lock_acquire+0x10/0x10 [ 62.524551][ T5819] ? __pfx___might_resched+0x10/0x10 [ 62.524566][ T5819] ? ocfs2_truncate_file+0xd45/0x1560 [ 62.524578][ T5819] ? __pfx_lock_release+0x10/0x10 [ 62.524593][ T5819] down_write+0x99/0x220 [ 62.524610][ T5819] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.524625][ T5819] ? __pfx_down_write+0x10/0x10 [ 62.524644][ T5819] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 62.524661][ T5819] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 62.524677][ T5819] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 62.524691][ T5819] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 62.524707][ T5819] ocfs2_truncate_file+0xe1b/0x1560 [ 62.524720][ T5819] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 62.524738][ T5819] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 62.524755][ T5819] ? do_raw_spin_unlock+0x13c/0x8b0 [ 62.524767][ T5819] ? __asan_memset+0x23/0x50 [ 62.524786][ T5819] ? _raw_spin_unlock+0x28/0x50 [ 62.524798][ T5819] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 62.524814][ T5819] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 62.524829][ T5819] ? ocfs2_rw_lock+0x13e/0x260 [ 62.524842][ T5819] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 62.524854][ T5819] ? setattr_prepare+0x1f5/0xb20 [ 62.524868][ T5819] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 62.524885][ T5819] ocfs2_setattr+0x1890/0x1ef0 [ 62.524902][ T5819] ? __pfx_ocfs2_setattr+0x10/0x10 [ 62.524918][ T5819] ? __pfx_smack_inode_setattr+0x10/0x10 [ 62.524935][ T5819] ? current_time+0x279/0x3a0 [ 62.524952][ T5819] ? evm_inode_setattr+0x1b2/0x7d0 [ 62.524971][ T5819] ? security_inode_setattr+0xdb/0x350 [ 62.524985][ T5819] ? __pfx_ocfs2_setattr+0x10/0x10 [ 62.524998][ T5819] notify_change+0xbca/0xe90 [ 62.525014][ T5819] do_truncate+0x220/0x310 [ 62.525026][ T5819] ? __pfx_do_truncate+0x10/0x10 [ 62.525042][ T5819] path_openat+0x2e1b/0x3590 [ 62.525069][ T5819] ? __pfx_path_openat+0x10/0x10 [ 62.525091][ T5819] do_filp_open+0x27f/0x4e0 [ 62.525108][ T5819] ? __pfx_do_filp_open+0x10/0x10 [ 62.525125][ T5819] ? do_raw_spin_lock+0x14f/0x370 [ 62.525147][ T5819] do_sys_openat2+0x13e/0x1d0 [ 62.525162][ T5819] ? __pfx_do_sys_openat2+0x10/0x10 [ 62.525178][ T5819] ? lockdep_hardirqs_on+0x99/0x150 [ 62.525193][ T5819] ? _raw_spin_unlock_irq+0x2e/0x50 [ 62.525205][ T5819] ? ptrace_notify+0x279/0x380 [ 62.525223][ T5819] __x64_sys_openat+0x247/0x2a0 [ 62.525239][ T5819] ? __pfx___x64_sys_openat+0x10/0x10 [ 62.525255][ T5819] ? do_syscall_64+0x100/0x230 [ 62.525273][ T5819] do_syscall_64+0xf3/0x230 [ 62.525288][ T5819] ? clear_bhb_loop+0x35/0x90 [ 62.525304][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.525320][ T5819] RIP: 0033:0x7f7a4c81d6f9 [ 62.525336][ T5819] 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 [ 62.525345][ T5819] RSP: 002b:00007ffffd554058 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 62.525359][ T5819] RAX: ffffffffffffffda RBX: 00004000000001c0 RCX: 00007f7a4c81d6f9 [ 62.525368][ T5819] RDX: 0000000000007a05 RSI: 00004000000001c0 RDI: 00000000ffffff9c openat(AT_FDCWD, "memory.events", O_WRONLY|O_TRUNC|O_NONBLOCK|O_DSYNC|O_DIRECT|FASYNC|0x4) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 62.525376][ T5819] RBP: 0073746e6576652e R08: 0000000000000000 R09: 000