general protection fault in bstr_printf

Status: premoderation: reported on 2026/08/02 03:38
Reported-by: syzbot+3e96980b15144dea27d8@syzkaller.appspotmail.com
First crash: 10d, last: 10d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in bstr_printf (2) bpf 7 syz, C 5 790d 791d 0/29 auto-obsoleted due to no activity on 2024/09/21 12:47
upstream KMSAN: uninit-value in bstr_printf bpf 7 4 811d 903d 0/29 closed as dup on 2024/04/09 05:33

Sample crash report:
RBP: 00007fb17cddb00c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb17cfcc038 R14: 00007fb17cfcbfa0 R15: 00007ffe6fda6188
---[ end trace c9f28e5a6c9ddc5c ]---
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: 14839 Comm: syz.3.4160 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:bstr_printf+0x87/0xf10 lib/vsprintf.c:3114
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:ffffc90000d179b8 EFLAGS: 00010206
RAX: 0000000280000000 RBX: 0000001400000000 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000e7f RDI: 000000007fffffff
RBP: ffffc90000d17a30 R08: ffff88811d7e5230 R09: 1ffff11023afca46
R10: dffffc0000000000 R11: ffffed1023afca47 R12: ffff88811d7e60b0
R13: ffff88811d7e60b0 R14: 0000000000000e7f R15: 0000000000000e7f
FS:  00007fb17b79d6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f23a63b3700 CR3: 0000000118eb8000 CR4: 00000000003526a0
DR0: 0000000000000008 DR1: 0000000000000007 DR2: 0000000000000004
DR3: 0000000000000008 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 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:1269
 print_trace_fmt+0x4ed/0x710 kernel/trace/trace.c:4005
 print_trace_line+0x385/0x690 kernel/trace/trace.c:4170
 tracing_read_pipe+0x4fd/0xab0 kernel/trace/trace.c:6414
 vfs_read+0x209/0xa50 fs/read_write.c:494
 ksys_read+0x14a/0x260 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:642
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fb17cd44019
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:00007fb17b79d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fb17cfcbfa0 RCX: 00007fb17cd44019
RDX: 0000000000001000 RSI: 0000200000000300 RDI: 0000000000000005
RBP: 00007fb17cddb00c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb17cfcc038 R14: 00007fb17cfcbfa0 R15: 00007ffe6fda6188
Modules linked in:
---[ end trace c9f28e5a6c9ddc5d ]---
RIP: 0010:bstr_printf+0x87/0xf10 lib/vsprintf.c:3114
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:ffffc90000d179b8 EFLAGS: 00010206
RAX: 0000000280000000 RBX: 0000001400000000 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000e7f RDI: 000000007fffffff
RBP: ffffc90000d17a30 R08: ffff88811d7e5230 R09: 1ffff11023afca46
R10: dffffc0000000000 R11: ffffed1023afca47 R12: ffff88811d7e60b0
R13: ffff88811d7e60b0 R14: 0000000000000e7f R15: 0000000000000e7f
FS:  00007fb17b79d6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f23a65b72f8 CR3: 0000000118eb8000 CR4: 00000000003506b0
DR0: 0000000000000008 DR1: 0000000000000007 DR2: 0000000000000004
DR3: 0000000000000008 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/08/02 03:37 android13-5.10-lts 50b3a256e550 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in bstr_printf
* Struck through repros no longer work on HEAD.