syzbot
general protection fault in vsscanf
Status:
premoderation: reported C repro on 2026/08/18 03:15
Reported-by: syzbot+0a666fde98d6a4837097@syzkaller.appspotmail.com
First crash: 2d19h, last: 1d10h
Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 312 Comm: syz-executor613 Not tainted syzkaller #0 e678fb639bf2314ecbc0d819b692701f82417ebd
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:vsscanf+0x18c/0x24b0 lib/vsprintf.c:3444
Code: 48 c7 c6 b0 b5 e3 87 e8 22 43 e6 fb 41 83 fe 25 74 4d 45 85 f6 0f 84 a4 21 00 00 48 ff c3 48 89 5c 24 58 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 8e 1b 00 00 41 0f b6 1f 45 0f b6 f6 44
RSP: 0018:ffffc900011df5a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff86364b61 RCX: 0000000000000001
RDX: ffffffff85a1341e RSI: ffffffff87e3b5b0 RDI: 0000000000000030
RBP: ffffc900011df6b0 R08: ffff88812fb02600 R09: 0000000000000002
R10: 0000000000000025 R11: 0000000000000000 R12: ffffffff86364b60
R13: dffffc0000000000 R14: 0000000000000030 R15: 0000000000000000
FS: 000055555ba6b3c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000103790000 CR4: 00000000003526b0
Call Trace:
<TASK>
sscanf+0xe3/0x150 lib/vsprintf.c:3700
split_huge_pages_write+0x3c7/0x1220 mm/huge_memory.c:4134
full_proxy_write+0x125/0x1e0 fs/debugfs/file.c:328
vfs_write+0x3c1/0xfd0 fs/read_write.c:682
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f75bf330ef9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc39f98468 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000200000000300 RCX: 00007f75bf330ef9
RDX: 000000000000002f RSI: 0000000000000000 RDI: 000000000000002e
RBP: 0000200000000000 R08: 0000000000000008 R09: 00007ffc39f985a8
R10: 0000000000000008 R11: 0000000000000246 R12: 0067756265642f2e
R13: 0000000000000002 R14: 00007f75bf3c1ca0 R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vsscanf+0x18c/0x24b0 lib/vsprintf.c:3444
Code: 48 c7 c6 b0 b5 e3 87 e8 22 43 e6 fb 41 83 fe 25 74 4d 45 85 f6 0f 84 a4 21 00 00 48 ff c3 48 89 5c 24 58 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 8e 1b 00 00 41 0f b6 1f 45 0f b6 f6 44
RSP: 0018:ffffc900011df5a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff86364b61 RCX: 0000000000000001
RDX: ffffffff85a1341e RSI: ffffffff87e3b5b0 RDI: 0000000000000030
RBP: ffffc900011df6b0 R08: ffff88812fb02600 R09: 0000000000000002
R10: 0000000000000025 R11: 0000000000000000 R12: ffffffff86364b60
R13: dffffc0000000000 R14: 0000000000000030 R15: 0000000000000000
FS: 000055555ba6b3c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000103790000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: 48 c7 c6 b0 b5 e3 87 mov $0xffffffff87e3b5b0,%rsi
7: e8 22 43 e6 fb call 0xfbe6432e
c: 41 83 fe 25 cmp $0x25,%r14d
10: 74 4d je 0x5f
12: 45 85 f6 test %r14d,%r14d
15: 0f 84 a4 21 00 00 je 0x21bf
1b: 48 ff c3 inc %rbx
1e: 48 89 5c 24 58 mov %rbx,0x58(%rsp)
23: 4c 89 f8 mov %r15,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 8e 1b 00 00 jne 0x1bc5
37: 41 0f b6 1f movzbl (%r15),%ebx
3b: 45 0f b6 f6 movzbl %r14b,%r14d
3f: 44 rex.R
* Struck through repros no longer work on HEAD.