syzbot
general protection fault in try_to_take_rt_mutex
Status:
moderation: reported on 2026/08/29 18:36
Subsystems:
fs
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+917245f59371bf1d27f7@syzkaller.appspotmail.com
First crash: 4d01h, last: 19h11m
Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 UID: 0 PID: 24689 Comm: syz.3.2349 Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:rt_waiter_node_less kernel/locking/rtmutex.c:403 [inline]
RIP: 0010:rt_mutex_steal kernel/locking/rtmutex.c:439 [inline]
RIP: 0010:try_to_take_rt_mutex+0x177/0xac0 kernel/locking/rtmutex.c:1138
Code: 39 ec 74 3b 49 8d 5c 24 18 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 f7 07 00 00 44 8b 33 49 8d 5d 18 48 89 d8 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 04 08 00 00 44 3b 33 0f 8d 89 05 00 00 48
RSP: 0018:ffffc90005007620 EFLAGS: 00010006
RAX: 0000000000000003 RBX: 0000000000000018 RCX: 8000000000000001
RDX: dffffc0000000000 RSI: ffffffff8db39df3 RDI: ffffffff8bcc1880
RBP: 0000000000000000 R08: ffff8880579e5ddb R09: 1ffff1100af3cbbb
R10: dffffc0000000000 R11: ffffed100af3cbbc R12: ffffc90005007780
R13: 0000000000000000 R14: 0000000000000078 R15: ffff8880579e5dc0
FS: 00007f9aafda46c0(0000) GS:ffff888125bd9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1f13d85eb8 CR3: 0000000064fb2000 CR4: 00000000003526f0
Call Trace:
<TASK>
rt_mutex_slowlock_block kernel/locking/rtmutex.c:1642 [inline]
__rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
__rt_mutex_slowlock_locked+0x1fe5/0x25b0 kernel/locking/rtmutex.c:1787
__rwbase_read_lock+0xc3/0x190 kernel/locking/rwbase_rt.c:114
rwbase_read_lock kernel/locking/rwbase_rt.c:147 [inline]
__down_read kernel/locking/rwsem.c:1502 [inline]
down_read+0x132/0x200 kernel/locking/rwsem.c:1576
inode_lock_shared include/linux/fs.h:1039 [inline]
lookup_slow+0x46/0x70 fs/namei.c:1935
walk_component fs/namei.c:2282 [inline]
link_path_walk+0xd2a/0x1910 fs/namei.c:2656
path_openat+0x1ce/0x1d60 fs/namei.c:4996
do_file_open+0x23e/0x4a0 fs/namei.c:5029
do_sys_openat2+0x115/0x200 fs/open.c:1417
do_sys_open fs/open.c:1423 [inline]
__do_sys_openat fs/open.c:1439 [inline]
__se_sys_openat fs/open.c:1434 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1434
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9ab1b8e159
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:00007f9aafda4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f9ab1e16180 RCX: 00007f9ab1b8e159
RDX: 0000000000000002 RSI: 0000200000000020 RDI: ffffffffffffff9c
RBP: 00007f9ab1c25024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9ab1e16218 R14: 00007f9ab1e16180 R15: 00007ffc1f36d268
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rt_waiter_node_less kernel/locking/rtmutex.c:403 [inline]
RIP: 0010:rt_mutex_steal kernel/locking/rtmutex.c:439 [inline]
RIP: 0010:try_to_take_rt_mutex+0x177/0xac0 kernel/locking/rtmutex.c:1138
Code: 39 ec 74 3b 49 8d 5c 24 18 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 f7 07 00 00 44 8b 33 49 8d 5d 18 48 89 d8 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 04 08 00 00 44 3b 33 0f 8d 89 05 00 00 48
RSP: 0018:ffffc90005007620 EFLAGS: 00010006
RAX: 0000000000000003 RBX: 0000000000000018 RCX: 8000000000000001
RDX: dffffc0000000000 RSI: ffffffff8db39df3 RDI: ffffffff8bcc1880
RBP: 0000000000000000 R08: ffff8880579e5ddb R09: 1ffff1100af3cbbb
R10: dffffc0000000000 R11: ffffed100af3cbbc R12: ffffc90005007780
R13: 0000000000000000 R14: 0000000000000078 R15: ffff8880579e5dc0
FS: 00007f9aafda46c0(0000) GS:ffff888125bd9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1f13d85eb8 CR3: 0000000064fb2000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: 39 ec cmp %ebp,%esp
2: 74 3b je 0x3f
4: 49 8d 5c 24 18 lea 0x18(%r12),%rbx
9: 48 89 d8 mov %rbx,%rax
c: 48 c1 e8 03 shr $0x3,%rax
10: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax
14: 84 c0 test %al,%al
16: 0f 85 f7 07 00 00 jne 0x813
1c: 44 8b 33 mov (%rbx),%r14d
1f: 49 8d 5d 18 lea 0x18(%r13),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 04 08 00 00 jne 0x83a
36: 44 3b 33 cmp (%rbx),%r14d
39: 0f 8d 89 05 00 00 jge 0x5c8
3f: 48 rex.W
* Struck through repros no longer work on HEAD.