syzbot
WARNING in filename_mkdirat (2)
Status:
moderation: reported on 2026/06/06 16:43
Subsystems:
fs
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+a3453db58a98d7809020@syzkaller.appspotmail.com
First crash: 68d, last: 4d04h
Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff8880551b9f18, owner = 0x0, curr 0xffff888026f1be00, list not empty
WARNING: kernel/locking/rwsem.c:1412 at __up_write kernel/locking/rwsem.c:1412 [inline], CPU#1: syz.4.123/6347
WARNING: kernel/locking/rwsem.c:1412 at up_write+0x20f/0x5c0 kernel/locking/rwsem.c:1688, CPU#1: syz.4.123/6347
Modules linked in:
CPU: 1 UID: 0 PID: 6347 Comm: syz.4.123 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:__up_write kernel/locking/rwsem.c:1412 [inline]
RIP: 0010:up_write+0x226/0x5c0 kernel/locking/rwsem.c:1688
Code: 3c 02 00 0f 85 3e 03 00 00 48 8b 13 48 8d 3d d1 20 41 0f 41 56 65 4c 8b 0d 9f 49 7f 12 4d 89 f8 4c 89 e1 48 c7 c6 40 e9 cf 8b <67> 48 0f b9 3a e8 70 ca 33 03 59 bf 01 00 00 00 e8 35 80 f0 ff 48
RSP: 0018:ffffc90006f47dc0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880551b9f18 RCX: ffff8880551b9f18
RDX: 0000000000000000 RSI: ffffffff8bcfe940 RDI: ffffffff91264740
RBP: ffff8880551b9f20 R08: 0000000000000000 R09: ffff888026f1be00
R10: ffff8880551b9f1f R11: 0000000000000001 R12: ffff8880551b9f18
R13: ffffffff9122e680 R14: ffffffff8bcfe760 R15: 0000000000000000
FS: 00007fcc5baa96c0(0000) GS:ffff888123ed9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe221f2d300 CR3: 0000000075856000 CR4: 0000000000350ef0
Call Trace:
<TASK>
inode_unlock include/linux/fs.h:1034 [inline]
end_dirop fs/namei.c:2955 [inline]
end_creating include/linux/namei.h:117 [inline]
end_creating_path fs/namei.c:4995 [inline]
filename_mkdirat+0x1d5/0x5e0 fs/namei.c:5314
__do_sys_mkdir fs/namei.c:5336 [inline]
__se_sys_mkdir fs/namei.c:5333 [inline]
__x64_sys_mkdir+0x6b/0x90 fs/namei.c:5333
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcc5ab9e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcc5baa9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fcc5ae25fa0 RCX: 00007fcc5ab9e0d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000000c0
RBP: 00007fcc5ac35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcc5ae26038 R14: 00007fcc5ae25fa0 R15: 00007ffe0dd18ff8
</TASK>
----------------
Code disassembly (best guess):
0: 3c 02 cmp $0x2,%al
2: 00 0f add %cl,(%rdi)
4: 85 3e test %edi,(%rsi)
6: 03 00 add (%rax),%eax
8: 00 48 8b add %cl,-0x75(%rax)
b: 13 48 8d adc -0x73(%rax),%ecx
e: 3d d1 20 41 0f cmp $0xf4120d1,%eax
13: 41 56 push %r14
15: 65 4c 8b 0d 9f 49 7f mov %gs:0x127f499f(%rip),%r9 # 0x127f49bc
1c: 12
1d: 4d 89 f8 mov %r15,%r8
20: 4c 89 e1 mov %r12,%rcx
23: 48 c7 c6 40 e9 cf 8b mov $0xffffffff8bcfe940,%rsi
* 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction
2f: e8 70 ca 33 03 call 0x333caa4
34: 59 pop %rcx
35: bf 01 00 00 00 mov $0x1,%edi
3a: e8 35 80 f0 ff call 0xfff08074
3f: 48 rex.W
* Struck through repros no longer work on HEAD.