general protection fault in bstr_printf

Status: upstream: reported on 2026/10/29 16:24
Reported-by: syzbot+09a0076757b45a2bea95@syzkaller.appspotmail.com
First crash: 8d05h, last: 8d05h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in bstr_printf 2 1 96d 96d 0/2 auto-obsoleted due to no activity on 2026/10/31 03:40
upstream KMSAN: uninit-value in bstr_printf (2) bpf 7 syz, C 5 876d 877d 0/29 auto-obsoleted due to no activity on 2024/09/21 12:47
upstream KMSAN: uninit-value in bstr_printf bpf 7 4 897d 989d 0/29 closed as dup on 2024/04/09 05:33

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5277 Comm: syz.3.250 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:bstr_printf+0x86/0xf10 lib/vsprintf.c:3236
Code: ff df 4a 8d 04 3b 48 39 d8 49 89 dd 49 f7 d5 48 c7 c1 ff ff ff ff 48 0f 43 c8 48 89 4c 24 08 4d 0f 43 ef 48 89 e8 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 24 0e 00 00 44 0f b6 75 00 31 ff 44 89 f6
RSP: 0018:ffffc9000302fab8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88807b19d214 RCX: ffff88807b19e128
RDX: dffffc0000000000 RSI: 0000000000000f14 RDI: 000000007fffffff
RBP: 0000000000000000 R08: ffff88807b19d213 R09: 1ffff1100f633a42
R10: dffffc0000000000 R11: ffffed100f633a43 R12: ffff88807b19d214
R13: 0000000000000f14 R14: ffff88813fe7c060 R15: 0000000000000f14
FS:  00007f9929a666c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c246e98 CR3: 000000007c4ce000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 seq_buf_bprintf+0x11c/0x200 lib/seq_buf.c:122
 trace_seq_bprintf+0xfc/0x250 kernel/trace/trace_seq.c:184
 trace_bprint_print+0xd2/0x110 kernel/trace/trace_output.c:1412
 tracing_read_pipe+0x52f/0xae0 kernel/trace/trace.c:6872
 vfs_read+0x2ff/0xd50 fs/read_write.c:483
 ksys_read+0x153/0x260 fs/read_write.c:623
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f992b80f559
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:00007f9929a66028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f992ba95fa0 RCX: 00007f992b80f559
RDX: 0000000000004000 RSI: 0000200000000b00 RDI: 0000000000000003
RBP: 00007f992b8a6b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f992ba96038 R14: 00007f992ba95fa0 R15: 00007ffe00308188
 </TASK>
Modules linked in:
---[ end trace c381a661ca015fb7 ]---
RIP: 0010:bstr_printf+0x86/0xf10 lib/vsprintf.c:3236
Code: ff df 4a 8d 04 3b 48 39 d8 49 89 dd 49 f7 d5 48 c7 c1 ff ff ff ff 48 0f 43 c8 48 89 4c 24 08 4d 0f 43 ef 48 89 e8 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 24 0e 00 00 44 0f b6 75 00 31 ff 44 89 f6
RSP: 0018:ffffc9000302fab8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88807b19d214 RCX: ffff88807b19e128
RDX: dffffc0000000000 RSI: 0000000000000f14 RDI: 000000007fffffff
RBP: 0000000000000000 R08: ffff88807b19d213 R09: 1ffff1100f633a42
R10: dffffc0000000000 R11: ffffed100f633a43 R12: ffff88807b19d214
R13: 0000000000000f14 R14: ffff88813fe7c060 R15: 0000000000000f14
FS:  00007f9929a666c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f365cbb7286 CR3: 000000007c4ce000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ff                   	lcall  (bad)
   1:	df 4a 8d             	fisttps -0x73(%rdx)
   4:	04 3b                	add    $0x3b,%al
   6:	48 39 d8             	cmp    %rbx,%rax
   9:	49 89 dd             	mov    %rbx,%r13
   c:	49 f7 d5             	not    %r13
   f:	48 c7 c1 ff ff ff ff 	mov    $0xffffffffffffffff,%rcx
  16:	48 0f 43 c8          	cmovae %rax,%rcx
  1a:	48 89 4c 24 08       	mov    %rcx,0x8(%rsp)
  1f:	4d 0f 43 ef          	cmovae %r15,%r13
  23:	48 89 e8             	mov    %rbp,%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 24 0e 00 00    	jne    0xe5a
  36:	44 0f b6 75 00       	movzbl 0x0(%rbp),%r14d
  3b:	31 ff                	xor    %edi,%edi
  3d:	44 89 f6             	mov    %r14d,%esi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/29 16:23 linux-5.15.y 792fbe1537d8 b1d00f76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in bstr_printf
* Struck through repros no longer work on HEAD.