syzbot


BUG: unable to handle kernel paging request in __gnet_stats_copy_basic

Status: premoderation: reported on 2025/04/27 07:44
Reported-by: syzbot+da358f7f059e375f3f9e@syzkaller.appspotmail.com
First crash: 67d, last: 67d

Sample crash report:
BUG: unable to handle page fault for address: fffff91fffdc05ee
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffe7067 P4D 23ffe7067 PUD 101db0067 PMD 12d57f067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1228 Comm: syz.6.206 Not tainted 5.10.236-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__gnet_stats_copy_basic_cpu net/core/gen_stats.c:130 [inline]
RIP: 0010:__gnet_stats_copy_basic+0x102/0x420 net/core/gen_stats.c:148
Code: c5 b0 c6 9b 85 4c 89 e8 48 c1 e8 03 42 80 3c 30 00 74 08 4c 89 ef e8 5d c5 0a fe 4d 8b 6d 00 4c 03 6d c8 4c 89 e8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ef e8 3f c5 0a fe 49 8b 5d 00 49 83 c5
RSP: 0018:ffffc90000170be0 EFLAGS: 00010a06
RAX: 1ffffd1fffdc05ee RBX: ffffc90000170d08 RCX: ffff88810ae7bb40
RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000008
RBP: ffffc90000170c50 R08: dffffc0000000000 R09: ffffc90000170d00
R10: fffff5200002e1a2 R11: 1ffff9200002e1a0 R12: ffffc90000170d00
R13: ffffe8fffee02f70 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fb3d38bc6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffff91fffdc05ee CR3: 0000000112fc8000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 est_fetch_counters net/core/gen_estimator.c:69 [inline]
 est_timer+0x143/0x5a0 net/core/gen_estimator.c:82
 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
 expire_timers kernel/time/timer.c:1495 [inline]
 __run_timers+0x639/0x9a0 kernel/time/timer.c:1789
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
 __do_softirq+0x255/0x563 kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__sanitizer_cov_trace_pc+0x3b/0x60 kernel/kcov.c:200
Code: 8b 15 35 e2 9e 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 dc 0a 00 00 00 74 2c 8b 91 b8 0a 00 00 83 fa 02 75 21 <48> 8b 91 c0 0a 00 00 48 8b 32 48 8d 7e 01 8b 89 bc 0a 00 00 48 39
RSP: 0018:ffffc90000dcf770 EFLAGS: 00000246
RAX: ffffffff83ec9b94 RBX: 0000000000000000 RCX: ffff88810ae7bb40
RDX: 0000000000000002 RSI: 7fffffffffffffff RDI: 0000000000000000
RBP: ffffc90000dcf770 R08: dffffc0000000000 R09: ffffed10215cf769
R10: ffffed10215cf769 R11: 1ffff110215cf768 R12: 1ffff920001b9f0c
R13: ffff888126abe300 R14: ffff8881087bb8c0 R15: dffffc0000000000
 unix_dgram_sendmsg+0xa94/0x17d0 net/unix/af_unix.c:1745
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x5a2/0x8c0 net/socket.c:2376
 ___sys_sendmsg+0x1f0/0x260 net/socket.c:2430
 __sys_sendmmsg+0x273/0x450 net/socket.c:2516
 __do_sys_sendmmsg net/socket.c:2545 [inline]
 __se_sys_sendmmsg net/socket.c:2542 [inline]
 __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2542
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fb3d5253969
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb3d38bc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007fb3d547afa0 RCX: 00007fb3d5253969
RDX: 0000000000000651 RSI: 0000200000000000 RDI: 0000000000000008
RBP: 00007fb3d52d5ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb3d547afa0 R15: 00007ffc9e559d98
Modules linked in:
CR2: fffff91fffdc05ee
---[ end trace a3219aeb6da4daa8 ]---
RIP: 0010:__gnet_stats_copy_basic_cpu net/core/gen_stats.c:130 [inline]
RIP: 0010:__gnet_stats_copy_basic+0x102/0x420 net/core/gen_stats.c:148
Code: c5 b0 c6 9b 85 4c 89 e8 48 c1 e8 03 42 80 3c 30 00 74 08 4c 89 ef e8 5d c5 0a fe 4d 8b 6d 00 4c 03 6d c8 4c 89 e8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ef e8 3f c5 0a fe 49 8b 5d 00 49 83 c5
RSP: 0018:ffffc90000170be0 EFLAGS: 00010a06
RAX: 1ffffd1fffdc05ee RBX: ffffc90000170d08 RCX: ffff88810ae7bb40
RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000008
RBP: ffffc90000170c50 R08: dffffc0000000000 R09: ffffc90000170d00
R10: fffff5200002e1a2 R11: 1ffff9200002e1a0 R12: ffffc90000170d00
R13: ffffe8fffee02f70 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fb3d38bc6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffff91fffdc05ee CR3: 0000000112fc8000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c5 b0 c6 9b 85 4c 89 	vshufps $0x48,-0x1776b37b(%rbx),%xmm9,%xmm3
   7:	e8 48
   9:	c1 e8 03             	shr    $0x3,%eax
   c:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  11:	74 08                	je     0x1b
  13:	4c 89 ef             	mov    %r13,%rdi
  16:	e8 5d c5 0a fe       	call   0xfe0ac578
  1b:	4d 8b 6d 00          	mov    0x0(%r13),%r13
  1f:	4c 03 6d c8          	add    -0x38(%rbp),%r13
  23:	4c 89 e8             	mov    %r13,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 3f c5 0a fe       	call   0xfe0ac578
  39:	49 8b 5d 00          	mov    0x0(%r13),%rbx
  3d:	49                   	rex.WB
  3e:	83                   	.byte 0x83
  3f:	c5                   	.byte 0xc5

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/27 07:43 android13-5.10-lts ba8b8b193394 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: unable to handle kernel paging request in __gnet_stats_copy_basic
* Struck through repros no longer work on HEAD.