general protection fault in bstr_printf

Status: premoderation: reported on 2026/11/10 18:10
Reported-by: syzbot+6a66e7506a2375e0d86b@syzkaller.appspotmail.com
First crash: 8d14h, last: 8d14h
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 general protection fault in bstr_printf 2 1 20d 20d 0/3 upstream: reported on 2026/10/29 16:24
android-5-10 general protection fault in bstr_printf 2 1 109d 109d 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 888d 889d 0/29 auto-obsoleted due to no activity on 2024/09/21 12:47
upstream KMSAN: uninit-value in bstr_printf bpf 7 4 910d 1001d 0/29 closed as dup on 2024/04/09 05:33

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff1a092d038 R14: 00007ff1a092cfa0 R15: 00007fff172171e8
 </TASK>
---[ end trace f0ee0fdfeb233242 ]---
general protection fault, probably for non-canonical address 0xdffffc0280000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000001400000000-0x0000001400000007]
CPU: 1 PID: 2566 Comm: syz.2.710 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:bstr_printf+0x87/0xf10 lib/vsprintf.c:3236
Code: ff df 4b 8d 04 37 4c 39 f8 4c 89 7d a8 49 f7 d7 49 c7 c4 ff ff ff ff 4c 0f 43 e0 4d 0f 43 fe 4c 89 7d 88 48 89 d8 48 c1 e8 03 <0f> b6 04 08 84 c0 0f 85 24 0e 00 00 44 0f b6 33 31 ff 44 89 f6 e8
RSP: 0018:ffffc900012a7998 EFLAGS: 00010206

RAX: 0000000280000000 RBX: 0000001400000000 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000f45 RDI: 000000007fffffff
RBP: ffffc900012a7a10 R08: ffff888130d2517a R09: 1ffff110261a4a2f
R10: dffffc0000000000 R11: ffffed10261a4a30 R12: ffff888130d260c0
R13: ffff888130d260c0 R14: 0000000000000f45 R15: 0000000000000f45
FS:  00007ff19f0fe6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555928d2908 CR3: 00000001362a5000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 seq_buf_bprintf+0x132/0x210 lib/seq_buf.c:122
 trace_seq_bprintf+0xfb/0x250 kernel/trace/trace_seq.c:184
 trace_bprint_print+0xd8/0x120 kernel/trace/trace_output.c:1412
 print_trace_fmt+0x4ed/0x710 kernel/trace/trace.c:4384
 print_trace_line+0x385/0x690 kernel/trace/trace.c:4549
 tracing_read_pipe+0x4fd/0xab0 kernel/trace/trace.c:6835
 vfs_read+0x28c/0xc20 fs/read_write.c:483
 ksys_read+0x14a/0x260 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:631
 x64_sys_call+0x96d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
 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:0x7ff1a06aff19
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:00007ff19f0fe028 EFLAGS: 00000246
 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007ff1a092cfa0 RCX: 00007ff1a06aff19
RDX: 0000000000004000 RSI: 0000200000002900 RDI: 0000000000000006
RBP: 00007ff1a073ef6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff1a092d038 R14: 00007ff1a092cfa0 R15: 00007fff172171e8
 </TASK>
Modules linked in:
---[ end trace f0ee0fdfeb233243 ]---
RIP: 0010:bstr_printf+0x87/0xf10 lib/vsprintf.c:3236
Code: ff df 4b 8d 04 37 4c 39 f8 4c 89 7d a8 49 f7 d7 49 c7 c4 ff ff ff ff 4c 0f 43 e0 4d 0f 43 fe 4c 89 7d 88 48 89 d8 48 c1 e8 03 <0f> b6 04 08 84 c0 0f 85 24 0e 00 00 44 0f b6 33 31 ff 44 89 f6 e8
RSP: 0018:ffffc900012a7998 EFLAGS: 00010206
RAX: 0000000280000000 RBX: 0000001400000000 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000f45 RDI: 000000007fffffff
RBP: ffffc900012a7a10 R08: ffff888130d2517a R09: 1ffff110261a4a2f
R10: dffffc0000000000 R11: ffffed10261a4a30 R12: ffff888130d260c0
R13: ffff888130d260c0 R14: 0000000000000f45 R15: 0000000000000f45
FS:  00007ff19f0fe6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa643dea6b8 CR3: 00000001362a5000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ff                   	lcall  (bad)
   1:	df 4b 8d             	fisttps -0x73(%rbx)
   4:	04 37                	add    $0x37,%al
   6:	4c 39 f8             	cmp    %r15,%rax
   9:	4c 89 7d a8          	mov    %r15,-0x58(%rbp)
   d:	49 f7 d7             	not    %r15
  10:	49 c7 c4 ff ff ff ff 	mov    $0xffffffffffffffff,%r12
  17:	4c 0f 43 e0          	cmovae %rax,%r12
  1b:	4d 0f 43 fe          	cmovae %r14,%r15
  1f:	4c 89 7d 88          	mov    %r15,-0x78(%rbp)
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 24 0e 00 00    	jne    0xe5a
  36:	44 0f b6 33          	movzbl (%rbx),%r14d
  3a:	31 ff                	xor    %edi,%edi
  3c:	44 89 f6             	mov    %r14d,%esi
  3f:	e8                   	.byte 0xe8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/10 18:09 android13-5.15-lts 2316d138a3c3 d3056657 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bstr_printf
* Struck through repros no longer work on HEAD.