syzkaller login: [ 91.864847][ T788] cfg80211: failed to load regulatory.db Warning: Permanently added '[localhost]:32858' (ED25519) to the list of known hosts. executing program [ 198.771714][ T5121] loop0: detected capacity change from 0 to 32768 [ 198.826811][ T5121] JBD2: Ignoring recovery information on journal [ 198.876880][ T5121] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 198.899679][ T5121] [ 198.900825][ T5121] ====================================================== [ 198.903633][ T5121] WARNING: possible circular locking dependency detected [ 198.906469][ T5121] 6.11.0-rc4-syzkaller-00011-g521b1e7f4cf0 #0 Not tainted [ 198.910095][ T5121] ------------------------------------------------------ [ 198.912620][ T5121] syz-executor232/5121 is trying to acquire lock: [ 198.915090][ T5121] ffff888012142610 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_setattr+0xcb1/0x1f50 [ 198.918858][ T5121] [ 198.918858][ T5121] but task is already holding lock: [ 198.921671][ T5121] ffff88803c5c4da0 (&oi->ip_alloc_sem){+.+.}-{3:3}, at: ocfs2_setattr+0xc9f/0x1f50 [ 198.924940][ T5121] [ 198.924940][ T5121] which lock already depends on the new lock. [ 198.924940][ T5121] [ 198.928560][ T5121] [ 198.928560][ T5121] the existing dependency chain (in reverse order) is: [ 198.931833][ T5121] [ 198.931833][ T5121] -> #4 (&oi->ip_alloc_sem){+.+.}-{3:3}: [ 198.934761][ T5121] lock_acquire+0x1ed/0x550 [ 198.936619][ T5121] down_write+0x99/0x220 [ 198.938461][ T5121] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 198.940843][ T5121] ocfs2_xattr_set+0xa4f/0x1930 [ 198.942744][ T5121] ocfs2_set_acl+0x4cb/0x580 [ 198.944790][ T5121] ocfs2_iop_set_acl+0x24a/0x3c0 [ 198.946684][ T5121] vfs_set_acl+0x7fd/0xa60 [ 198.948510][ T5121] path_setxattr+0x3bd/0x4d0 [ 198.950329][ T5121] __x64_sys_setxattr+0xbb/0xd0 [ 198.952147][ T5121] do_syscall_64+0xf3/0x230 [ 198.954094][ T5121] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 198.956362][ T5121] [ 198.956362][ T5121] -> #3 (&oi->ip_xattr_sem){++++}-{3:3}: [ 198.959122][ T5121] lock_acquire+0x1ed/0x550 [ 198.961108][ T5121] down_read+0xb1/0xa40 [ 198.963097][ T5121] ocfs2_init_acl+0x397/0x930 [ 198.965102][ T5121] ocfs2_mknod+0x1c05/0x2b40 [ 198.966992][ T5121] ocfs2_create+0x1ab/0x480 [ 198.968833][ T5121] vfs_create+0x23c/0x3d0 [ 198.970595][ T5121] do_mknodat+0x447/0x5b0 [ 198.972369][ T5121] __x64_sys_mknodat+0xa7/0xc0 [ 198.974176][ T5121] do_syscall_64+0xf3/0x230 [ 198.976053][ T5121] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 198.978491][ T5121] [ 198.978491][ T5121] -> #2 (jbd2_handle){.+.+}-{0:0}: [ 198.981479][ T5121] lock_acquire+0x1ed/0x550 [ 198.983841][ T5121] start_this_handle+0x1eb4/0x2110 [ 198.986480][ T5121] jbd2__journal_start+0x2da/0x5d0 [ 198.988643][ T5121] jbd2_journal_start+0x29/0x40 [ 198.990828][ T5121] ocfs2_start_trans+0x3c9/0x700 [ 198.992870][ T5121] ocfs2_mknod+0x150c/0x2b40 [ 198.994641][ T5121] ocfs2_create+0x1ab/0x480 [ 198.996372][ T5121] vfs_create+0x23c/0x3d0 [ 198.997808][ T5121] do_mknodat+0x447/0x5b0 [ 198.999582][ T5121] __x64_sys_mknodat+0xa7/0xc0 [ 199.001568][ T5121] do_syscall_64+0xf3/0x230 [ 199.003469][ T5121] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 199.005828][ T5121] [ 199.005828][ T5121] -> #1 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 199.008970][ T5121] lock_acquire+0x1ed/0x550 [ 199.011191][ T5121] down_read+0xb1/0xa40 [ 199.013438][ T5121] ocfs2_start_trans+0x3be/0x700 [ 199.015698][ T5121] ocfs2_mknod+0x150c/0x2b40 [ 199.017527][ T5121] ocfs2_create+0x1ab/0x480 [ 199.019418][ T5121] vfs_create+0x23c/0x3d0 [ 199.021151][ T5121] do_mknodat+0x447/0x5b0 [ 199.022874][ T5121] __x64_sys_mknodat+0xa7/0xc0 [ 199.024951][ T5121] do_syscall_64+0xf3/0x230 [ 199.026885][ T5121] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 199.029226][ T5121] [ 199.029226][ T5121] -> #0 (sb_internal#2){.+.+}-{0:0}: [ 199.032038][ T5121] validate_chain+0x18e0/0x5900 [ 199.033985][ T5121] __lock_acquire+0x137a/0x2040 [ 199.035957][ T5121] lock_acquire+0x1ed/0x550 [ 199.037822][ T5121] ocfs2_start_trans+0x2b9/0x700 [ 199.039814][ T5121] ocfs2_setattr+0xcb1/0x1f50 [ 199.041821][ T5121] notify_change+0xb9d/0xe70 [ 199.043775][ T5121] chmod_common+0x2ab/0x4c0 [ 199.045614][ T5121] __x64_sys_fchmodat+0x11d/0x1c0 [ 199.047565][ T5121] do_syscall_64+0xf3/0x230 [ 199.049392][ T5121] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 199.051854][ T5121] [ 199.051854][ T5121] other info that might help us debug this: [ 199.051854][ T5121] [ 199.055589][ T5121] Chain exists of: [ 199.055589][ T5121] sb_internal#2 --> &oi->ip_xattr_sem --> &oi->ip_alloc_sem [ 199.055589][ T5121] [ 199.060384][ T5121] Possible unsafe locking scenario: [ 199.060384][ T5121] [ 199.063111][ T5121] CPU0 CPU1 [ 199.065010][ T5121] ---- ---- [ 199.066929][ T5121] lock(&oi->ip_alloc_sem); [ 199.068633][ T5121] lock(&oi->ip_xattr_sem); [ 199.071178][ T5121] lock(&oi->ip_alloc_sem); [ 199.073773][ T5121] rlock(sb_internal#2); [ 199.075535][ T5121] [ 199.075535][ T5121] *** DEADLOCK *** [ 199.075535][ T5121] [ 199.078559][ T5121] 3 locks held by syz-executor232/5121: [ 199.080691][ T5121] #0: ffff888012142420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 199.084067][ T5121] #1: ffff88803c5c5100 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: chmod_common+0x1bb/0x4c0 [ 199.087756][ T5121] #2: ffff88803c5c4da0 (&oi->ip_alloc_sem){+.+.}-{3:3}, at: ocfs2_setattr+0xc9f/0x1f50 [ 199.091035][ T5121] [ 199.091035][ T5121] stack backtrace: [ 199.093042][ T5121] CPU: 0 UID: 0 PID: 5121 Comm: syz-executor232 Not tainted 6.11.0-rc4-syzkaller-00011-g521b1e7f4cf0 #0 [ 199.097514][ T5121] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 199.102094][ T5121] Call Trace: [ 199.103419][ T5121] [ 199.104564][ T5121] dump_stack_lvl+0x241/0x360 [ 199.106407][ T5121] ? __pfx_dump_stack_lvl+0x10/0x10 [ 199.108361][ T5121] ? print_circular_bug+0x130/0x1a0 [ 199.110399][ T5121] check_noncircular+0x36a/0x4a0 [ 199.112437][ T5121] ? __pfx_check_noncircular+0x10/0x10 [ 199.114643][ T5121] ? lockdep_lock+0x123/0x2b0 [ 199.116484][ T5121] ? add_lock_to_list+0x1de/0x2e0 [ 199.118570][ T5121] validate_chain+0x18e0/0x5900 [ 199.120628][ T5121] ? __pfx_validate_chain+0x10/0x10 [ 199.122810][ T5121] ? __pfx_validate_chain+0x10/0x10 [ 199.124935][ T5121] ? register_lock_class+0x102/0x980 [ 199.126952][ T5121] ? mark_lock+0x9a/0x350 [ 199.128518][ T5121] __lock_acquire+0x137a/0x2040 [ 199.130211][ T5121] lock_acquire+0x1ed/0x550 [ 199.131837][ T5121] ? ocfs2_setattr+0xcb1/0x1f50 [ 199.133616][ T5121] ? __pfx_lock_acquire+0x10/0x10 [ 199.135634][ T5121] ? __pfx_lock_release+0x10/0x10 [ 199.137598][ T5121] ? __pfx___might_resched+0x10/0x10 [ 199.139545][ T5121] ? do_raw_spin_unlock+0x58/0x8b0 [ 199.141380][ T5121] ? _raw_spin_unlock+0x28/0x50 [ 199.143108][ T5121] ocfs2_start_trans+0x2b9/0x700 [ 199.144863][ T5121] ? ocfs2_setattr+0xcb1/0x1f50 [ 199.146694][ T5121] ? __pfx_ocfs2_start_trans+0x10/0x10 [ 199.148924][ T5121] ocfs2_setattr+0xcb1/0x1f50 [ 199.151069][ T5121] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 199.153631][ T5121] ? __pfx_ocfs2_setattr+0x10/0x10 [ 199.155912][ T5121] ? seqcount_lockdep_reader_access+0x1d7/0x220 [ 199.158675][ T5121] ? ktime_get_coarse_real_ts64+0x10b/0x120 [ 199.161332][ T5121] ? current_time+0x1be/0x2b0 [ 199.163506][ T5121] ? common_perm+0x18d/0x1f0 [ 199.165885][ T5121] ? evm_inode_setattr+0x1b9/0x7d0 [ 199.168187][ T5121] ? security_inode_setattr+0xd7/0x120 [ 199.170540][ T5121] ? __pfx_ocfs2_setattr+0x10/0x10 [ 199.172432][ T5121] notify_change+0xb9d/0xe70 [ 199.174204][ T5121] chmod_common+0x2ab/0x4c0 [ 199.175892][ T5121] ? __pfx_chmod_common+0x10/0x10 [ 199.177728][ T5121] ? kasan_quarantine_put+0xdc/0x230 [ 199.179711][ T5121] ? user_path_at+0x44/0x60 [ 199.181415][ T5121] ? kmem_cache_free+0x145/0x350 [ 199.183109][ T5121] __x64_sys_fchmodat+0x11d/0x1c0 [ 199.184917][ T5121] ? __pfx___x64_sys_fchmodat+0x10/0x10 [ 199.186838][ T5121] ? exc_page_fault+0x590/0x8c0 [ 199.188769][ T5121] ? do_syscall_64+0xb6/0x230 [ 199.190469][ T5121] do_syscall_64+0xf3/0x230 [ 199.192238][ T5121] ? clear_bhb_loop+0x35/0x90 [ 199.194064][ T5121] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 199.196408][ T5121] RIP: 0033:0x7f0196005659 [ 199.198230][ T5121] 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 [ 199.205181][ T5121] RSP: 002b:00007ffcc0d2a5c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010c [ 199.208148][ T5121] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0196005659 [ 199.211084][ T5121] RDX: 00000000000001ff RSI: 0000000020000440 RDI: 00000000ffffff9c [ 199.214305][ T5121] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffcc0d2a600 [ 199.217337][ T5121] R10: 00007ffcc0d2a5d0 R11: 0000000000000246 R12: 00007ffcc0d2a600 [ 199.220358][ T5121] R13: 00007ffcc0d2a888 R14: 431bde82d7b634db R15: 00007f019604e03b [ 199.223293][ T5121] 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: 03:09:14 Registers: info registers vcpu 0 CPU#0 RAX=000000000000007a RBX=ffffffff95258d40 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000affea50 R8 =ffffffff853f11fb R9 =1ffff110031b0046 R10=dffffc0000000000 R11=ffffffff853f11b0 R12=dffffc0000000000 R13=000000000000007a R14=000000000000007a R15=00000000000003f8 RIP=ffffffff853f122e 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 0000555561cde480 ffffffff 00c00000 GS =0000 ffff888020800000 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=0000000000000000 CR3=0000000037d2c000 CR4=00350ef0 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=0000000000000000 Opmask01=0000000000000000 Opmask02=0000000000000000 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 0000000000000000 0000000000000000 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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 0000000000000000 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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