syzkaller login: [ 108.548107][ T1350] cfg80211: failed to load regulatory.db Warning: Permanently added '[localhost]:29605' (ED25519) to the list of known hosts. executing program [ 114.152688][ T5315] loop0: detected capacity change from 0 to 32768 [ 114.175273][ T5315] ======================================================= [ 114.175273][ T5315] WARNING: The mand mount option has been deprecated and [ 114.175273][ T5315] and is ignored by this kernel. Remove the mand [ 114.175273][ T5315] option from the mount to silence this warning. [ 114.175273][ T5315] ======================================================= [ 114.236767][ T5315] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 114.250725][ T5315] [ 114.251835][ T5315] ====================================================== [ 114.254843][ T5315] WARNING: possible circular locking dependency detected [ 114.257995][ T5315] 6.14.0-rc7-syzkaller-00186-gd07de43e3f05 #0 Not tainted [ 114.263479][ T5315] ------------------------------------------------------ [ 114.267342][ T5315] syz-executor404/5315 is trying to acquire lock: [ 114.270954][ T5315] ffff888045a93f60 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 114.276090][ T5315] [ 114.276090][ T5315] but task is already holding lock: [ 114.279482][ T5315] ffff888045a93ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 114.284304][ T5315] [ 114.284304][ T5315] which lock already depends on the new lock. [ 114.284304][ T5315] [ 114.290561][ T5315] [ 114.290561][ T5315] the existing dependency chain (in reverse order) is: [ 114.294477][ T5315] [ 114.294477][ T5315] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 114.298324][ T5315] lock_acquire+0x1ed/0x550 [ 114.301315][ T5315] down_read+0xb1/0xa40 [ 114.303445][ T5315] ocfs2_init_acl+0x397/0x930 [ 114.305787][ T5315] ocfs2_mknod+0x1c05/0x2b30 [ 114.308127][ T5315] ocfs2_create+0x1ab/0x470 [ 114.310327][ T5315] path_openat+0x193c/0x3590 [ 114.312546][ T5315] do_filp_open+0x27f/0x4e0 [ 114.314770][ T5315] do_sys_openat2+0x13e/0x1d0 [ 114.317982][ T5315] __x64_sys_openat+0x247/0x2a0 [ 114.320562][ T5315] do_syscall_64+0xf3/0x230 [ 114.323169][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 114.326760][ T5315] [ 114.326760][ T5315] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 114.330454][ T5315] lock_acquire+0x1ed/0x550 [ 114.332574][ T5315] start_this_handle+0x1eb4/0x2110 [ 114.334980][ T5315] jbd2__journal_start+0x2da/0x5d0 [ 114.337390][ T5315] jbd2_journal_start+0x29/0x40 [ 114.339644][ T5315] ocfs2_start_trans+0x3c9/0x700 [ 114.341930][ T5315] ocfs2_mknod+0x150c/0x2b30 [ 114.344056][ T5315] ocfs2_create+0x1ab/0x470 [ 114.370961][ T5315] path_openat+0x193c/0x3590 [ 114.373166][ T5315] do_filp_open+0x27f/0x4e0 [ 114.375393][ T5315] do_sys_openat2+0x13e/0x1d0 [ 114.378071][ T5315] __x64_sys_openat+0x247/0x2a0 [ 114.380498][ T5315] do_syscall_64+0xf3/0x230 [ 114.383040][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 114.386268][ T5315] [ 114.386268][ T5315] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 114.390228][ T5315] lock_acquire+0x1ed/0x550 [ 114.392632][ T5315] down_read+0xb1/0xa40 [ 114.394946][ T5315] ocfs2_start_trans+0x3be/0x700 [ 114.413187][ T5315] ocfs2_mknod+0x150c/0x2b30 [ 114.415419][ T5315] ocfs2_create+0x1ab/0x470 [ 114.418822][ T5315] path_openat+0x193c/0x3590 [ 114.421797][ T5315] do_filp_open+0x27f/0x4e0 [ 114.427496][ T5315] do_sys_openat2+0x13e/0x1d0 [ 114.430008][ T5315] __x64_sys_openat+0x247/0x2a0 [ 114.432302][ T5315] do_syscall_64+0xf3/0x230 [ 114.434484][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 114.437232][ T5315] [ 114.437232][ T5315] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 114.440413][ T5315] lock_acquire+0x1ed/0x550 [ 114.442602][ T5315] ocfs2_start_trans+0x2b9/0x700 [ 114.444952][ T5315] ocfs2_truncate_file+0x69a/0x1560 [ 114.447415][ T5315] ocfs2_setattr+0x1890/0x1ef0 [ 114.450602][ T5315] notify_change+0xbca/0xe90 [ 114.453551][ T5315] do_truncate+0x220/0x310 [ 114.456050][ T5315] path_openat+0x2e1b/0x3590 [ 114.458541][ T5315] do_filp_open+0x27f/0x4e0 [ 114.460961][ T5315] do_sys_openat2+0x13e/0x1d0 [ 114.463607][ T5315] __x64_sys_openat+0x247/0x2a0 [ 114.466534][ T5315] do_syscall_64+0xf3/0x230 [ 114.469743][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 114.473562][ T5315] [ 114.473562][ T5315] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 114.478492][ T5315] validate_chain+0x18ef/0x5920 [ 114.481245][ T5315] __lock_acquire+0x1397/0x2100 [ 114.484758][ T5315] lock_acquire+0x1ed/0x550 [ 114.489304][ T5315] down_write+0x99/0x220 [ 114.494802][ T5315] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 114.498655][ T5315] ocfs2_truncate_file+0xe1b/0x1560 [ 114.506623][ T5315] ocfs2_setattr+0x1890/0x1ef0 [ 114.509698][ T5315] notify_change+0xbca/0xe90 [ 114.512524][ T5315] do_truncate+0x220/0x310 [ 114.515615][ T5315] path_openat+0x2e1b/0x3590 [ 114.521015][ T5315] do_filp_open+0x27f/0x4e0 [ 114.526105][ T5315] do_sys_openat2+0x13e/0x1d0 [ 114.529532][ T5315] __x64_sys_openat+0x247/0x2a0 [ 114.533595][ T5315] do_syscall_64+0xf3/0x230 [ 114.537926][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 114.542095][ T5315] [ 114.542095][ T5315] other info that might help us debug this: [ 114.542095][ T5315] [ 114.548093][ T5315] Chain exists of: [ 114.548093][ T5315] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 114.548093][ T5315] [ 114.554527][ T5315] Possible unsafe locking scenario: [ 114.554527][ T5315] [ 114.559527][ T5315] CPU0 CPU1 [ 114.565751][ T5315] ---- ---- [ 114.569225][ T5315] lock(&oi->ip_xattr_sem); [ 114.571371][ T5315] lock(jbd2_handle); [ 114.575726][ T5315] lock(&oi->ip_xattr_sem); [ 114.580191][ T5315] lock(&oi->ip_alloc_sem); [ 114.582806][ T5315] [ 114.582806][ T5315] *** DEADLOCK *** [ 114.582806][ T5315] [ 114.586931][ T5315] 3 locks held by syz-executor404/5315: [ 114.589580][ T5315] #0: ffff888033f7e420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 114.595291][ T5315] #1: ffff888045a942c0 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 114.601149][ T5315] #2: ffff888045a93ff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 114.606841][ T5315] [ 114.606841][ T5315] stack backtrace: [ 114.610135][ T5315] CPU: 0 UID: 0 PID: 5315 Comm: syz-executor404 Not tainted 6.14.0-rc7-syzkaller-00186-gd07de43e3f05 #0 [ 114.610152][ T5315] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 114.610159][ T5315] Call Trace: [ 114.610166][ T5315] [ 114.610172][ T5315] dump_stack_lvl+0x241/0x360 [ 114.610190][ T5315] ? __pfx_dump_stack_lvl+0x10/0x10 [ 114.610201][ T5315] ? __pfx__printk+0x10/0x10 [ 114.610212][ T5315] print_circular_bug+0x13a/0x1b0 [ 114.610226][ T5315] check_noncircular+0x36a/0x4a0 [ 114.610238][ T5315] ? __pfx_check_noncircular+0x10/0x10 [ 114.610250][ T5315] ? lockdep_lock+0x123/0x2b0 [ 114.610265][ T5315] validate_chain+0x18ef/0x5920 [ 114.610281][ T5315] ? __pfx_validate_chain+0x10/0x10 [ 114.610291][ T5315] ? stack_trace_save+0x118/0x1d0 [ 114.610305][ T5315] ? __pfx_stack_trace_save+0x10/0x10 [ 114.610320][ T5315] ? lockdep_unlock+0x16a/0x300 [ 114.610335][ T5315] ? mark_lock+0x9a/0x360 [ 114.610344][ T5315] __lock_acquire+0x1397/0x2100 [ 114.610363][ T5315] lock_acquire+0x1ed/0x550 [ 114.610378][ T5315] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 114.610396][ T5315] ? __pfx_lock_acquire+0x10/0x10 [ 114.610411][ T5315] ? __pfx___might_resched+0x10/0x10 [ 114.610425][ T5315] ? ocfs2_truncate_file+0xd45/0x1560 [ 114.610437][ T5315] ? __pfx_lock_release+0x10/0x10 [ 114.610451][ T5315] down_write+0x99/0x220 [ 114.610463][ T5315] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 114.610478][ T5315] ? __pfx_down_write+0x10/0x10 [ 114.610489][ T5315] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 114.610505][ T5315] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 114.610520][ T5315] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 114.610535][ T5315] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 114.610549][ T5315] ocfs2_truncate_file+0xe1b/0x1560 [ 114.610562][ T5315] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 114.610581][ T5315] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 114.610592][ T5315] ? do_raw_spin_unlock+0x58/0x8b0 [ 114.610605][ T5315] ? __asan_memset+0x23/0x50 [ 114.610617][ T5315] ? _raw_spin_unlock+0x28/0x50 [ 114.610630][ T5315] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 114.610645][ T5315] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 114.610658][ T5315] ? ocfs2_rw_lock+0x13e/0x260 [ 114.610672][ T5315] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 114.610683][ T5315] ? setattr_prepare+0x1f5/0xb20 [ 114.610696][ T5315] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 114.610714][ T5315] ocfs2_setattr+0x1890/0x1ef0 [ 114.610729][ T5315] ? __pfx_ocfs2_setattr+0x10/0x10 [ 114.610739][ T5315] ? seqcount_lockdep_reader_access+0x1d7/0x220 [ 114.610752][ T5315] ? __pfx_seqcount_lockdep_reader_access+0x10/0x10 [ 114.610769][ T5315] ? ktime_get_coarse_real_ts64_mg+0x20c/0x220 [ 114.610784][ T5315] ? current_time+0x279/0x3a0 [ 114.610795][ T5315] ? evm_inode_setattr+0x1b2/0x7d0 [ 114.610807][ T5315] ? security_inode_setattr+0xdb/0x350 [ 114.610820][ T5315] ? __pfx_ocfs2_setattr+0x10/0x10 [ 114.610833][ T5315] notify_change+0xbca/0xe90 [ 114.610846][ T5315] do_truncate+0x220/0x310 [ 114.610857][ T5315] ? __pfx_do_truncate+0x10/0x10 [ 114.610866][ T5315] ? apparmor_file_truncate+0x297/0x350 [ 114.610883][ T5315] path_openat+0x2e1b/0x3590 [ 114.610900][ T5315] ? __pfx_path_openat+0x10/0x10 [ 114.610913][ T5315] do_filp_open+0x27f/0x4e0 [ 114.610923][ T5315] ? __pfx_do_filp_open+0x10/0x10 [ 114.610933][ T5315] ? do_raw_spin_lock+0x14f/0x370 [ 114.610952][ T5315] do_sys_openat2+0x13e/0x1d0 [ 114.610967][ T5315] ? __might_fault+0xaa/0x120 [ 114.610978][ T5315] ? __pfx_do_sys_openat2+0x10/0x10 [ 114.610990][ T5315] ? rcu_is_watching+0x15/0xb0 [ 114.611002][ T5315] ? __rseq_handle_notify_resume+0x34d/0x14e0 [ 114.611021][ T5315] __x64_sys_openat+0x247/0x2a0 [ 114.611036][ T5315] ? __pfx___x64_sys_openat+0x10/0x10 [ 114.611051][ T5315] ? do_syscall_64+0x100/0x230 [ 114.611067][ T5315] ? do_syscall_64+0xb6/0x230 [ 114.611092][ T5315] do_syscall_64+0xf3/0x230 [ 114.611107][ T5315] ? clear_bhb_loop+0x35/0x90 [ 114.611123][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 114.611138][ T5315] RIP: 0033:0x7f28c592cb19 [ 114.611150][ T5315] 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 [ 114.611157][ T5315] RSP: 002b:00007ffc1da37c18 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 114.611170][ T5315] RAX: ffffffffffffffda RBX: 0000200000000280 RCX: 00007f28c592cb19 [ 114.611178][ T5315] RDX: 000000000000275a RSI: 0000200000000280 RDI: 00000000ffffff9c [ 114.611185][ T5315] RBP: 00007f28c59a45f0 R08: 000055555fca74c0 R09: 000055555fca74c0 [ 114.611190][ T5315] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc1da37c40 [ 114.611197][ T5315] R13: 00007ffc1da37e68 R14: 431bde82d7b634db R15: 000020000000028f [ 114.611206][ T5315] 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: 23:37:12 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000032 RBX=ffffffff9a99a100 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000340e330 R8 =ffffffff85845fab R9 =1ffff11003e76046 R10=dffffc0000000000 R11=ffffffff85845f60 R12=dffffc0000000000 R13=0000000000000032 R14=0000000000000032 R15=00000000000003f8 RIP=ffffffff85845fde 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 000055555fca6380 ffffffff 00c00000 GS =0000 ffff88801fc00000 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=000055aad92b8000 CR3=0000000034252000 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=0000000000000020 Opmask01=0000000000000000 Opmask02=000000000000001f Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 656c6c6f72746e6f 632e70756f726763 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc1da37210 00007ffc1da371f0 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc1da37350 00007ffc1da371d0 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f28c5995744 00007f28c59a9240 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc1da37210 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc1da37350 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc1da37350 00007ffc1da371d0 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc1da37210 00007ffc1da371f0 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 6f722d746e756f6d 65723d73726f7272 652c736b636f6c66 6c61636f6c2c6c6c ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 49e7f85bc8be8cca df9a7fde0d1a8979 e3d298b643218504 b5a9002c6c63612c ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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