general protection fault in hist_field_s32

Status: premoderation: reported on 2026/10/21 06:03
Reported-by: syzbot+eef911f3bcb56d2abeee@syzkaller.appspotmail.com
First crash: 10d, last: 1d21h

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 1 PID: 7958 Comm: syz.2.14291 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:hist_field_s32+0x58/0xa0 kernel/trace/trace_events_hist.c:385
Code: f7 e8 3c 82 31 00 4d 8b 36 49 83 c6 24 4c 89 f0 48 c1 e8 03 42 0f b6 04 38 84 c0 75 20 49 63 06 48 01 c3 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 21 48 63 03 5b 41 5e 41 5f 5d c3 44 89 f1
RSP: 0018:ffffc90001bf6fb8 EFLAGS: 00010002
RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000080000
RDX: ffffc9000b71b000 RSI: 0000000000054b76 RDI: 0000000000054b77
RBP: ffffc90001bf6fd0 R08: ffffc90001bf7207 R09: ffffc90001bf7200
R10: dffffc0000000000 R11: fffff5200037ee41 R12: ffff88811104b208
R13: dffffc0000000000 R14: ffff88810011e864 R15: dffffc0000000000
FS:  00007ff6543746c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e1cff8 CR3: 00000001443ed000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 event_hist_trigger+0x377/0x1630 kernel/trace/trace_events_hist.c:4921
 event_triggers_call+0x1c1/0x2a0 kernel/trace/trace_events_trigger.c:-1
 trace_trigger_soft_disabled include/linux/trace_events.h:613 [inline]
 trace_event_raw_event_sched_switch+0xe5/0x470 include/trace/events/sched.h:222
 __traceiter_sched_switch+0x85/0xc0 include/trace/events/sched.h:222
 trace_sched_switch include/trace/events/sched.h:222 [inline]
 __schedule+0x1198/0x13e0 kernel/sched/core.c:4803
 preempt_schedule_irq+0xaa/0x120 kernel/sched/core.c:5067
 irqentry_exit_cond_resched kernel/entry/common.c:368 [inline]
 irqentry_exit+0x56/0x60 kernel/entry/common.c:398
 sysvec_reschedule_ipi+0x69/0x70 arch/x86/kernel/smp.c:225
 asm_sysvec_reschedule_ipi+0x12/0x20 arch/x86/include/asm/idtentry.h:640
RIP: 0010:event_command_post_trigger kernel/trace/trace.h:1979 [inline]
RIP: 0010:update_cond_flag+0x91/0x100 kernel/trace/trace_events_trigger.c:514
Code: d8 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 72 4e 33 00 4d 8b 3f 49 83 c7 1c 4c 89 f8 48 c1 e8 03 42 0f b6 04 20 <84> c0 75 0d 41 f6 07 03 75 3f e8 70 c0 f8 ff eb 84 44 89 f9 80 e1
RSP: 0018:ffffc90001bf7850 EFLAGS: 00000a07
RAX: 0000000000000000 RBX: ffff88810011d528 RCX: 0000000000080000
RDX: ffffc9000b71b000 RSI: 0000000000054b4f RDI: 0000000000054b50
RBP: ffffc90001bf7878 R08: ffff888112cdc7cf R09: 1ffff1102259b8f9
R10: dffffc0000000000 R11: ffffed102259b8fa R12: dffffc0000000000
R13: ffff88810011d560 R14: ffff88810995a640 R15: ffffffff865d6b1c
 hist_trigger_enable+0x108/0x230 kernel/trace/trace_events_hist.c:5886
 event_hist_trigger_func+0x3fb9/0x4c60 kernel/trace/trace_events_hist.c:6185
 trigger_process_regex+0x1ce/0x260 kernel/trace/trace_events_trigger.c:235
 event_trigger_regex_write kernel/trace/trace_events_trigger.c:272 [inline]
 event_trigger_write+0xf5/0x180 kernel/trace/trace_events_trigger.c:301
 vfs_write+0x344/0xd70 fs/read_write.c:603
 ksys_write+0x14a/0x260 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:667
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7ff65595e559
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:00007ff654374028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ff655be5180 RCX: 00007ff65595e559
RDX: 0000000000000012 RSI: 0000200000000680 RDI: 0000000000000007
RBP: 00007ff6559f5b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff655be5218 R14: 00007ff655be5180 R15: 00007fff312fd258
Modules linked in:
---[ end trace 4b136c2fe1349fe1 ]---
RIP: 0010:hist_field_s32+0x58/0xa0 kernel/trace/trace_events_hist.c:385
Code: f7 e8 3c 82 31 00 4d 8b 36 49 83 c6 24 4c 89 f0 48 c1 e8 03 42 0f b6 04 38 84 c0 75 20 49 63 06 48 01 c3 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 21 48 63 03 5b 41 5e 41 5f 5d c3 44 89 f1
RSP: 0018:ffffc90001bf6fb8 EFLAGS: 00010002
RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000080000
RDX: ffffc9000b71b000 RSI: 0000000000054b76 RDI: 0000000000054b77
RBP: ffffc90001bf6fd0 R08: ffffc90001bf7207 R09: ffffc90001bf7200
R10: dffffc0000000000 R11: fffff5200037ee41 R12: ffff88811104b208
R13: dffffc0000000000 R14: ffff88810011e864 R15: dffffc0000000000
FS:  00007ff6543746c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e1cff8 CR3: 00000001443ed000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f7 e8                	imul   %eax
   2:	3c 82                	cmp    $0x82,%al
   4:	31 00                	xor    %eax,(%rax)
   6:	4d 8b 36             	mov    (%r14),%r14
   9:	49 83 c6 24          	add    $0x24,%r14
   d:	4c 89 f0             	mov    %r14,%rax
  10:	48 c1 e8 03          	shr    $0x3,%rax
  14:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax
  19:	84 c0                	test   %al,%al
  1b:	75 20                	jne    0x3d
  1d:	49 63 06             	movslq (%r14),%rax
  20:	48 01 c3             	add    %rax,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	75 21                	jne    0x54
  33:	48 63 03             	movslq (%rbx),%rax
  36:	5b                   	pop    %rbx
  37:	41 5e                	pop    %r14
  39:	41 5f                	pop    %r15
  3b:	5d                   	pop    %rbp
  3c:	c3                   	ret
  3d:	44 89 f1             	mov    %r14d,%ecx

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/29 18:46 android13-5.10-lts f61a392235e0 b498adee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/28 06:49 android13-5.10-lts f61a392235e0 96923c60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/28 06:36 android13-5.10-lts f61a392235e0 96923c60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/28 03:14 android13-5.10-lts f61a392235e0 96923c60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/26 18:19 android13-5.10-lts f61a392235e0 168cb7a2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/26 07:38 android13-5.10-lts f61a392235e0 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/24 01:54 android13-5.10-lts d3231d350eb8 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/23 11:40 android13-5.10-lts d3231d350eb8 d566bfda .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/21 06:10 android13-5.10-lts 30b93835619a 61c200c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
2026/10/21 06:02 android13-5.10-lts 30b93835619a 61c200c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in hist_field_s32
* Struck through repros no longer work on HEAD.