syzbot


BUG: unable to handle kernel paging request in get_counters

Status: closed as invalid on 2021/10/06 01:09
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 556d, last: 470d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: unable to handle kernel paging request in get_counters 2 324d 328d 0/1 auto-closed as invalid on 2022/05/13 02:17
upstream BUG: unable to handle kernel paging request in get_counters (2) 1 396d 396d 0/24 closed as invalid on 2022/01/11 13:33

Sample crash report:
BUG: unable to handle page fault for address: ffffe8ffff602008
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 1083f067 P4D 1083f067 PUD 18b92067 PMD 29751067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8486 Comm: syz-executor.2 Not tainted 5.14.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:get_counters+0x280/0x5c0 net/ipv4/netfilter/ip_tables.c:759
Code: 06 84 c0 74 db 3c 03 7f d7 4c 89 e7 e8 d9 8d ff f9 eb cd e8 22 52 b9 f9 48 8b 44 24 20 80 38 00 0f 85 6d 02 00 00 48 8b 04 24 <48> 8b 48 08 48 c1 e8 03 42 80 3c 38 00 48 89 4c 24 10 0f 85 43 02
RSP: 0018:ffffc9000179fb30 EFLAGS: 00010246
RAX: ffffe8ffff602000 RBX: 000000000021cd2a RCX: 0000000000000000
RDX: ffff8880206a3880 RSI: ffffffff87bc559e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8fcd5967
R10: ffffffff87bc5578 R11: 0000000000000001 R12: ffff8880b9c50b60
R13: ffff88802f824840 R14: ffffed101738a16c R15: dffffc0000000000
FS:  0000000001964400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffff602008 CR3: 000000005aeaa000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_ipt_get_ctl+0x634/0x9d0 net/ipv4/netfilter/ip_tables.c:805
 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116
 ip_getsockopt net/ipv4/ip_sockglue.c:1777 [inline]
 ip_getsockopt+0x164/0x1c0 net/ipv4/ip_sockglue.c:1756
 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4253
 __sys_getsockopt+0x21f/0x5f0 net/socket.c:2203
 __do_sys_getsockopt net/socket.c:2218 [inline]
 __se_sys_getsockopt net/socket.c:2215 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2215
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x467bfa
Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffed17282b8 EFLAGS: 00000216 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000467bfa
RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffed17282e0 R08: 00007ffed17282dc R09: 00007ffed1728370
R10: 00007ffed1728340 R11: 0000000000000216 R12: 00007ffed1728340
R13: 0000000000000003 R14: 00007ffed17282dc R15: 0000000000543d00
Modules linked in:
CR2: ffffe8ffff602008
---[ end trace 0621312c716ecc72 ]---
RIP: 0010:get_counters+0x280/0x5c0 net/ipv4/netfilter/ip_tables.c:759
Code: 06 84 c0 74 db 3c 03 7f d7 4c 89 e7 e8 d9 8d ff f9 eb cd e8 22 52 b9 f9 48 8b 44 24 20 80 38 00 0f 85 6d 02 00 00 48 8b 04 24 <48> 8b 48 08 48 c1 e8 03 42 80 3c 38 00 48 89 4c 24 10 0f 85 43 02
RSP: 0018:ffffc9000179fb30 EFLAGS: 00010246
RAX: ffffe8ffff602000 RBX: 000000000021cd2a RCX: 0000000000000000
RDX: ffff8880206a3880 RSI: ffffffff87bc559e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8fcd5967
R10: ffffffff87bc5578 R11: 0000000000000001 R12: ffff8880b9c50b60
R13: ffff88802f824840 R14: ffffed101738a16c R15: dffffc0000000000
FS:  0000000001964400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffff602008 CR3: 000000005aeaa000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	84 c0                	test   %al,%al
   2:	74 db                	je     0xffffffdf
   4:	3c 03                	cmp    $0x3,%al
   6:	7f d7                	jg     0xffffffdf
   8:	4c 89 e7             	mov    %r12,%rdi
   b:	e8 d9 8d ff f9       	callq  0xf9ff8de9
  10:	eb cd                	jmp    0xffffffdf
  12:	e8 22 52 b9 f9       	callq  0xf9b95239
  17:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
  1c:	80 38 00             	cmpb   $0x0,(%rax)
  1f:	0f 85 6d 02 00 00    	jne    0x292
  25:	48 8b 04 24          	mov    (%rsp),%rax
* 29:	48 8b 48 08          	mov    0x8(%rax),%rcx <-- trapping instruction
  2d:	48 c1 e8 03          	shr    $0x3,%rax
  31:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  36:	48 89 4c 24 10       	mov    %rcx,0x10(%rsp)
  3b:	0f                   	.byte 0xf
  3c:	85 43 02             	test   %eax,0x2(%rbx)

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-kasan-gce 2021/08/20 02:19 bpf 316749009fdf b599f2fc .config log report info BUG: unable to handle kernel paging request in get_counters
ci-upstream-bpf-next-kasan-gce 2021/07/26 05:54 bpf-next 2b7e9f25e590 4d1b57d4 .config log report info BUG: unable to handle kernel paging request in get_counters
ci-upstream-bpf-next-kasan-gce 2021/07/02 18:32 bpf-next dbe69e433722 55aa55c2 .config log report info BUG: unable to handle kernel paging request in get_counters
ci-upstream-bpf-next-kasan-gce 2021/06/30 22:43 bpf-next 84fe73996c2e 38a885d1 .config log report info BUG: unable to handle kernel paging request in get_counters
ci-upstream-bpf-next-kasan-gce 2021/05/25 20:40 bpf-next a720a2a0ad6c 93d3a9f6 .config log report info BUG: unable to handle kernel paging request in get_counters
* Struck through repros no longer work on HEAD.