syzbot


BUG: unable to handle kernel paging request in get_counters (2)

Status: closed as invalid on 2022/01/11 13:33
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 396d, last: 396d
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 329d 0/1 auto-closed as invalid on 2022/05/13 02:17
upstream BUG: unable to handle kernel paging request in get_counters 5 470d 556d 0/24 closed as invalid on 2021/10/06 01:09

Sample crash report:
BUG: unable to handle page fault for address: ffffe8ffffaff008
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 10c3f067 P4D 10c3f067 PUD 12fb4067 PMD 7b4e3067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6509 Comm: syz-executor.3 Not tainted 5.15.0-rc7-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:760
Code: 06 84 c0 74 db 3c 03 7f d7 4c 89 e7 e8 79 4c f9 f9 eb cd e8 02 d7 b1 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:ffffc90002cbfb30 EFLAGS: 00010246
RAX: ffffe8ffffaff000 RBX: 00000000000720bc RCX: 0000000000000000
RDX: ffff88802458d580 RSI: ffffffff87c5139e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8fd11a67
R10: ffffffff87c51378 R11: 0000000000000001 R12: ffff8880b9c30b20
R13: ffff888045bf2840 R14: ffffed1017386164 R15: dffffc0000000000
FS:  0000555556ebe400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffffaff008 CR3: 000000004f3e5000 CR4: 00000000003506f0
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:806
 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116
 ip_getsockopt net/ipv4/ip_sockglue.c:1786 [inline]
 ip_getsockopt+0x164/0x1c0 net/ipv4/ip_sockglue.c:1765
 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4232
 __sys_getsockopt+0x21f/0x5f0 net/socket.c:2220
 __do_sys_getsockopt net/socket.c:2235 [inline]
 __se_sys_getsockopt net/socket.c:2232 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2232
 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:0x7f1120bd510a
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:00007ffeb3af0568 EFLAGS: 00000216 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1120bd510a
RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffeb3af0590 R08: 00007ffeb3af058c R09: ffffffffffff0000
R10: 00007ffeb3af05f0 R11: 0000000000000216 R12: 00007ffeb3af05f0
R13: 0000000000000003 R14: 00007ffeb3af058c R15: 00007f1120cb6d20
Modules linked in:
CR2: ffffe8ffffaff008
---[ end trace e2753e40ee3030f8 ]---
RIP: 0010:get_counters+0x280/0x5c0 net/ipv4/netfilter/ip_tables.c:760
Code: 06 84 c0 74 db 3c 03 7f d7 4c 89 e7 e8 79 4c f9 f9 eb cd e8 02 d7 b1 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:ffffc90002cbfb30 EFLAGS: 00010246
RAX: ffffe8ffffaff000 RBX: 00000000000720bc RCX: 0000000000000000
RDX: ffff88802458d580 RSI: ffffffff87c5139e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8fd11a67
R10: ffffffff87c51378 R11: 0000000000000001 R12: ffff8880b9c30b20
R13: ffff888045bf2840 R14: ffffed1017386164 R15: dffffc0000000000
FS:  0000555556ebe400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffffaff008 CR3: 000000004f3e5000 CR4: 00000000003506f0
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 79 4c f9 f9       	callq  0xf9f94c89
  10:	eb cd                	jmp    0xffffffdf
  12:	e8 02 d7 b1 f9       	callq  0xf9b1d719
  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 (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2021/11/02 04:27 net-next 047304d0bfa5 098b5d53 .config log report info BUG: unable to handle kernel paging request in get_counters
* Struck through repros no longer work on HEAD.