Warning: Permanently added '[localhost]:31064' (ED25519) to the list of known hosts. executing program syzkaller login: [ 79.959648][ T5311] loop0: detected capacity change from 0 to 32768 [ 79.972746][ T5311] ======================================================= [ 79.972746][ T5311] WARNING: The mand mount option has been deprecated and [ 79.972746][ T5311] and is ignored by this kernel. Remove the mand [ 79.972746][ T5311] option from the mount to silence this warning. [ 79.972746][ T5311] ======================================================= [ 80.035768][ T5311] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 80.058160][ T5311] [ 80.059301][ T5311] ====================================================== [ 80.062290][ T5311] WARNING: possible circular locking dependency detected [ 80.065485][ T5311] 6.15.0-syzkaller-08486-gf66bc387efbe #0 Not tainted [ 80.069124][ T5311] ------------------------------------------------------ [ 80.072183][ T5311] syz-executor398/5311 is trying to acquire lock: [ 80.074882][ T5311] ffff888045dfbf60 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 80.079481][ T5311] [ 80.079481][ T5311] but task is already holding lock: [ 80.082687][ T5311] ffff888045dfbff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 80.087328][ T5311] [ 80.087328][ T5311] which lock already depends on the new lock. [ 80.087328][ T5311] [ 80.091783][ T5311] [ 80.091783][ T5311] the existing dependency chain (in reverse order) is: [ 80.095791][ T5311] [ 80.095791][ T5311] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 80.099189][ T5311] lock_acquire+0x120/0x360 [ 80.101369][ T5311] down_read+0x46/0x2e0 [ 80.103722][ T5311] ocfs2_init_acl+0x2f9/0x720 [ 80.106121][ T5311] ocfs2_mknod+0x1321/0x2050 [ 80.108445][ T5311] ocfs2_create+0x1a5/0x440 [ 80.111077][ T5311] path_openat+0x14f4/0x3830 [ 80.113575][ T5311] do_filp_open+0x1fa/0x410 [ 80.115901][ T5311] do_sys_openat2+0x121/0x1c0 [ 80.118215][ T5311] __x64_sys_creat+0x8f/0xc0 [ 80.120552][ T5311] do_syscall_64+0xfa/0x3b0 [ 80.122788][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.125823][ T5311] [ 80.125823][ T5311] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 80.129040][ T5311] lock_acquire+0x120/0x360 [ 80.131234][ T5311] start_this_handle+0x1fa7/0x21c0 [ 80.133848][ T5311] jbd2__journal_start+0x2c1/0x5b0 [ 80.136267][ T5311] jbd2_journal_start+0x2a/0x40 [ 80.138641][ T5311] ocfs2_start_trans+0x376/0x6d0 [ 80.141103][ T5311] ocfs2_mknod+0xe93/0x2050 [ 80.143512][ T5311] ocfs2_create+0x1a5/0x440 [ 80.145849][ T5311] path_openat+0x14f4/0x3830 [ 80.148256][ T5311] do_filp_open+0x1fa/0x410 [ 80.150305][ T5311] do_sys_openat2+0x121/0x1c0 [ 80.152684][ T5311] __x64_sys_creat+0x8f/0xc0 [ 80.155045][ T5311] do_syscall_64+0xfa/0x3b0 [ 80.157231][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.160125][ T5311] [ 80.160125][ T5311] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 80.163742][ T5311] lock_acquire+0x120/0x360 [ 80.166109][ T5311] down_read+0x46/0x2e0 [ 80.168266][ T5311] ocfs2_start_trans+0x36a/0x6d0 [ 80.170789][ T5311] ocfs2_mknod+0xe93/0x2050 [ 80.173089][ T5311] ocfs2_create+0x1a5/0x440 [ 80.175426][ T5311] path_openat+0x14f4/0x3830 [ 80.177840][ T5311] do_filp_open+0x1fa/0x410 [ 80.180057][ T5311] do_sys_openat2+0x121/0x1c0 [ 80.182387][ T5311] __x64_sys_creat+0x8f/0xc0 [ 80.184627][ T5311] do_syscall_64+0xfa/0x3b0 [ 80.186841][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.189670][ T5311] [ 80.189670][ T5311] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 80.193216][ T5311] lock_acquire+0x120/0x360 [ 80.195424][ T5311] ocfs2_start_trans+0x26b/0x6d0 [ 80.198513][ T5311] ocfs2_truncate_file+0x643/0x1420 [ 80.201036][ T5311] ocfs2_setattr+0x1520/0x1b40 [ 80.203255][ T5311] notify_change+0xb36/0xe40 [ 80.205353][ T5311] do_truncate+0x1a4/0x220 [ 80.207575][ T5311] path_openat+0x306c/0x3830 [ 80.209847][ T5311] do_filp_open+0x1fa/0x410 [ 80.212101][ T5311] do_sys_openat2+0x121/0x1c0 [ 80.214302][ T5311] __x64_sys_creat+0x8f/0xc0 [ 80.216512][ T5311] do_syscall_64+0xfa/0x3b0 [ 80.218741][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.221584][ T5311] [ 80.221584][ T5311] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 80.225157][ T5311] validate_chain+0xb9b/0x2140 [ 80.227502][ T5311] __lock_acquire+0xab9/0xd20 [ 80.229882][ T5311] lock_acquire+0x120/0x360 [ 80.232064][ T5311] down_write+0x96/0x1f0 [ 80.234188][ T5311] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 80.236861][ T5311] ocfs2_truncate_file+0xda0/0x1420 [ 80.239237][ T5311] ocfs2_setattr+0x1520/0x1b40 [ 80.241601][ T5311] notify_change+0xb36/0xe40 [ 80.243855][ T5311] do_truncate+0x1a4/0x220 [ 80.246013][ T5311] path_openat+0x306c/0x3830 [ 80.248319][ T5311] do_filp_open+0x1fa/0x410 [ 80.250546][ T5311] do_sys_openat2+0x121/0x1c0 [ 80.252818][ T5311] __x64_sys_creat+0x8f/0xc0 [ 80.255872][ T5311] do_syscall_64+0xfa/0x3b0 [ 80.258104][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.260995][ T5311] [ 80.260995][ T5311] other info that might help us debug this: [ 80.260995][ T5311] [ 80.265428][ T5311] Chain exists of: [ 80.265428][ T5311] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 80.265428][ T5311] [ 80.271186][ T5311] Possible unsafe locking scenario: [ 80.271186][ T5311] [ 80.274567][ T5311] CPU0 CPU1 [ 80.277371][ T5311] ---- ---- [ 80.279795][ T5311] lock(&oi->ip_xattr_sem); [ 80.281819][ T5311] lock(jbd2_handle); [ 80.284725][ T5311] lock(&oi->ip_xattr_sem); [ 80.287676][ T5311] lock(&oi->ip_alloc_sem); [ 80.289734][ T5311] [ 80.289734][ T5311] *** DEADLOCK *** [ 80.289734][ T5311] [ 80.293401][ T5311] 3 locks held by syz-executor398/5311: [ 80.295877][ T5311] #0: ffff888042fc0428 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 80.299852][ T5311] #1: ffff888045dfc2c0 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: do_truncate+0x171/0x220 [ 80.304474][ T5311] #2: ffff888045dfbff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa4/0x320 [ 80.309172][ T5311] [ 80.309172][ T5311] stack backtrace: [ 80.311735][ T5311] CPU: 0 UID: 0 PID: 5311 Comm: syz-executor398 Not tainted 6.15.0-syzkaller-08486-gf66bc387efbe #0 PREEMPT(full) [ 80.311746][ T5311] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 80.311751][ T5311] Call Trace: [ 80.311757][ T5311] [ 80.311762][ T5311] dump_stack_lvl+0x189/0x250 [ 80.311782][ T5311] ? __pfx_dump_stack_lvl+0x10/0x10 [ 80.311797][ T5311] ? __pfx__printk+0x10/0x10 [ 80.311809][ T5311] ? print_lock_name+0xde/0x100 [ 80.311820][ T5311] print_circular_bug+0x2ee/0x310 [ 80.311843][ T5311] check_noncircular+0x134/0x160 [ 80.311858][ T5311] validate_chain+0xb9b/0x2140 [ 80.311875][ T5311] __lock_acquire+0xab9/0xd20 [ 80.311888][ T5311] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 80.311903][ T5311] lock_acquire+0x120/0x360 [ 80.311913][ T5311] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 80.311931][ T5311] down_write+0x96/0x1f0 [ 80.311945][ T5311] ? ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 80.311960][ T5311] ? __pfx_down_write+0x10/0x10 [ 80.311975][ T5311] ocfs2_try_remove_refcount_tree+0xb6/0x320 [ 80.311988][ T5311] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 80.311999][ T5311] ? up_write+0x1c4/0x420 [ 80.312012][ T5311] ocfs2_truncate_file+0xda0/0x1420 [ 80.312026][ T5311] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 80.312038][ T5311] ? do_raw_spin_unlock+0x4d/0x240 [ 80.312053][ T5311] ? _raw_spin_unlock+0x28/0x50 [ 80.312062][ T5311] ? ocfs2_inode_lock_tracker+0x3ec/0x660 [ 80.312078][ T5311] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 80.312091][ T5311] ? ocfs2_rw_lock+0x13a/0x240 [ 80.312103][ T5311] ? __pfx___dquot_initialize+0x10/0x10 [ 80.312117][ T5311] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 80.312129][ T5311] ? setattr_prepare+0x1e7/0xac0 [ 80.312141][ T5311] ? jbd2_journal_begin_ordered_truncate+0xbb/0x150 [ 80.312155][ T5311] ocfs2_setattr+0x1520/0x1b40 [ 80.312170][ T5311] ? __pfx_ocfs2_setattr+0x10/0x10 [ 80.312181][ T5311] ? ktime_get_coarse_real_ts64_mg+0x52/0x1e0 [ 80.312192][ T5311] ? seqcount_lockdep_reader_access+0x175/0x1c0 [ 80.312207][ T5311] ? ns_to_timespec64+0x21/0xb0 [ 80.312214][ T5311] ? ktime_get_coarse_real_ts64_mg+0x175/0x1e0 [ 80.312220][ T5311] ? current_time+0x222/0x370 [ 80.312230][ T5311] ? evm_inode_setattr+0x1b6/0x7d0 [ 80.312243][ T5311] ? __pfx_current_time+0x10/0x10 [ 80.312258][ T5311] ? try_break_deleg+0x79/0x130 [ 80.312268][ T5311] ? __pfx_ocfs2_setattr+0x10/0x10 [ 80.312310][ T5311] notify_change+0xb36/0xe40 [ 80.312325][ T5311] do_truncate+0x1a4/0x220 [ 80.312338][ T5311] ? __pfx_do_truncate+0x10/0x10 [ 80.312349][ T5311] ? apparmor_file_truncate+0x23e/0x2d0 [ 80.312367][ T5311] path_openat+0x306c/0x3830 [ 80.312378][ T5311] ? arch_stack_walk+0xfc/0x150 [ 80.312400][ T5311] ? __pfx_path_openat+0x10/0x10 [ 80.312410][ T5311] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.312424][ T5311] do_filp_open+0x1fa/0x410 [ 80.312431][ T5311] ? __lock_acquire+0xab9/0xd20 [ 80.312442][ T5311] ? __pfx_do_filp_open+0x10/0x10 [ 80.312455][ T5311] ? _raw_spin_unlock+0x28/0x50 [ 80.312464][ T5311] ? alloc_fd+0x64c/0x6c0 [ 80.312479][ T5311] do_sys_openat2+0x121/0x1c0 [ 80.312494][ T5311] ? __pfx_do_sys_openat2+0x10/0x10 [ 80.312510][ T5311] ? rcu_is_watching+0x15/0xb0 [ 80.312525][ T5311] __x64_sys_creat+0x8f/0xc0 [ 80.312536][ T5311] do_syscall_64+0xfa/0x3b0 [ 80.312548][ T5311] ? lockdep_hardirqs_on+0x9c/0x150 [ 80.312559][ T5311] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.312567][ T5311] ? clear_bhb_loop+0x60/0xb0 [ 80.312575][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.312584][ T5311] RIP: 0033:0x7f27ff7baad9 [ 80.312592][ T5311] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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 [ 80.312599][ T5311] RSP: 002b:00007ffed5d4e4d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 80.312607][ T5311] RAX: ffffffffffffffda RBX: 00002000000002c0 RCX: 00007f27ff7baad9 [ 80.312612][ T5311] RDX: 00007f27ff7baad9 RSI: 0000000000000000 RDI: 00002000000002c0 [ 80.312617][ T5311] RBP: 0030656c69662f2e R08: 0000555561d454c0 R09: 0000555561d454c0 [ 80.312622][ T5311] R10: 002c74696d6d6f63 R11: 0000000000000246 R12: 00007ffed5d4e500 [ 80.312628][ T5311] R13: 00007ffed5d4e728 R14: 431bde82d7b634db R15: 00007f27ff80303b [ 80.312638][ T5311] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program VM DIAGNOSIS: 11:49:41 Registers: info registers vcpu 0 CPU#0 RAX=000000000000006b RBX=000000000000006b RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=00000000000003f8 RSP=ffffc9000d24e850 R8 =ffff888033950237 R9 =1ffff1100672a046 R10=dffffc0000000000 R11=ffffffff8545e3b0 R12=dffffc0000000000 R13=ffffffff99ab2922 R14=ffffffff99db7d20 R15=0000000000000000 RIP=ffffffff8545e42c RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 ffffffff 00c00000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 ffffffff 00c00000 FS =0000 0000555561d44380 ffffffff 00c00000 GS =0000 ffff88808d263000 ffffffff 00c00000 LDT=0000 0000000000000000 ffffffff 00c00000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007ffe7a93ad1c CR3=000000003f159000 CR4=00352ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000fffe0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 Opmask00=0000000000000200 Opmask01=0000000000000000 Opmask02=000000000000001f Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffed5d4dad0 00007ffed5d4dab0 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffed5d4dc10 00007ffed5d4da90 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f27ff823784 00007f27ff837240 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffed5d4dad0 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffed5d4dc10 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffed5d4dc10 00007ffed5d4da90 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffed5d4dad0 00007ffed5d4dab0 ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM16=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM17=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 000000327366636f ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 5cf3945eb98408b4 4938eecd7e6e9eec 1360034e5d53002c 74696d6d6f635f63 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 3030303030303030 30303d7265697272 61622c7274746178 5f726573752c6575 ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 3030303030303d6c 6576656c5f767365 725f7269642c3531 3136323030303030 ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM25=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM26=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM27=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM28=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM29=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM30=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM31=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000