syzbot


BUG: unable to handle kernel paging request in get_counters

Status: auto-closed as invalid on 2022/05/13 02:17
Reported-by: syzbot+d99e4c11401825fd7aeb@syzkaller.appspotmail.com
First crash: 1061d, last: 1056d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in get_counters netfilter 5 1202d 1288d 0/28 closed as invalid on 2021/10/06 01:09
upstream BUG: unable to handle kernel paging request in get_counters (2) netfilter 1 1128d 1128d 0/28 closed as invalid on 2022/01/11 13:33

Sample crash report:
BUG: unable to handle kernel paging request at ffffc9000c252008
PGD 13be43067 P4D 13be43067 PUD 23b831067 PMD 9a35b067 PTE 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2742 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:get_counters+0x33f/0x630 net/ipv6/netfilter/ip6_tables.c:783
Code: 49 fa 8b 5c 24 10 48 c1 e3 04 48 03 5c 24 48 48 8d 7b 08 48 89 f8 48 c1 e8 03 42 80 3c 38 00 0f 85 7e 02 00 00 48 8b 44 24 18 <48> 01 43 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 0f 85 37 02 00 00
RSP: 0018:ffff88801efffb30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc9000c252000 RCX: ffffffff8718e019
RDX: 0000000000000000 RSI: ffffffff8718e027 RDI: ffffc9000c252008
RBP: 000000000006d2d2 R08: ffffffff8cd2b298 R09: 000000000006d2d2
R10: 0000000000000004 R11: 0000000000000000 R12: 000000000006d2d2
R13: ffff8880ba02a380 R14: ffff8880001d4290 R15: dffffc0000000000
FS:  0000555555989400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000c252008 CR3: 0000000021720000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_ip6t_get_ctl+0x510/0x910 net/ipv6/netfilter/ip6_tables.c:824
 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline]
 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:122
 ipv6_getsockopt+0x1b6/0x260 net/ipv6/ipv6_sockglue.c:1388
 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:3629
 __sys_getsockopt+0x135/0x210 net/socket.c:2050
 __do_sys_getsockopt net/socket.c:2061 [inline]
 __se_sys_getsockopt net/socket.c:2058 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2058
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd7e43504ba
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:00007ffe681726e8 EFLAGS: 00000216 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000029 RCX: 00007fd7e43504ba
RDX: 0000000000000041 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 00007ffe68172710 R08: 00007ffe6817270c R09: ffffffff00000000
R10: 00007ffe68172770 R11: 0000000000000216 R12: 00007ffe68172770
R13: 0000000000000003 R14: 00007ffe6817270c R15: 00007fd7e4430220
Modules linked in:
CR2: ffffc9000c252008
---[ end trace ef71a6d9e0d1d181 ]---
RIP: 0010:get_counters+0x33f/0x630 net/ipv6/netfilter/ip6_tables.c:783
Code: 49 fa 8b 5c 24 10 48 c1 e3 04 48 03 5c 24 48 48 8d 7b 08 48 89 f8 48 c1 e8 03 42 80 3c 38 00 0f 85 7e 02 00 00 48 8b 44 24 18 <48> 01 43 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 0f 85 37 02 00 00
RSP: 0018:ffff88801efffb30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc9000c252000 RCX: ffffffff8718e019
RDX: 0000000000000000 RSI: ffffffff8718e027 RDI: ffffc9000c252008
RBP: 000000000006d2d2 R08: ffffffff8cd2b298 R09: 000000000006d2d2
R10: 0000000000000004 R11: 0000000000000000 R12: 000000000006d2d2
R13: ffff8880ba02a380 R14: ffff8880001d4290 R15: dffffc0000000000
FS:  0000555555989400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000c252008 CR3: 0000000021720000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	49 fa                	rex.WB cli
   2:	8b 5c 24 10          	mov    0x10(%rsp),%ebx
   6:	48 c1 e3 04          	shl    $0x4,%rbx
   a:	48 03 5c 24 48       	add    0x48(%rsp),%rbx
   f:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  13:	48 89 f8             	mov    %rdi,%rax
  16:	48 c1 e8 03          	shr    $0x3,%rax
  1a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  1f:	0f 85 7e 02 00 00    	jne    0x2a3
  25:	48 8b 44 24 18       	mov    0x18(%rsp),%rax
* 2a:	48 01 43 08          	add    %rax,0x8(%rbx) <-- trapping instruction
  2e:	48 89 d8             	mov    %rbx,%rax
  31:	48 c1 e8 03          	shr    $0x3,%rax
  35:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  3a:	0f 85 37 02 00 00    	jne    0x277

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/08 08:17 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in get_counters
2022/01/13 02:16 linux-4.19.y 3f8a27f9e27b 44d1319a .config console log report info ci2-linux-4-19 general protection fault in get_counters
* Struck through repros no longer work on HEAD.