syzbot


general protection fault in nf_tables_dump_rules

Status: auto-closed as invalid on 2022/01/18 02:15
Reported-by: syzbot+bd637e7821f7afda67c4@syzkaller.appspotmail.com
First crash: 444d, last: 437d

Sample crash report:
general protection fault, probably for non-canonical address 0xfbd59c000000005a: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0xdead0000000002d0-0xdead0000000002d7]
CPU: 1 PID: 8793 Comm: syz-executor.1 Not tainted 5.15.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nf_tables_dump_rules+0x52f/0xbc0 net/netfilter/nf_tables_api.c:3015
Code: 4c 8b 28 4d 85 ed 0f 84 65 01 00 00 e8 0a 09 07 fa 49 8d bc 24 d0 01 00 00 48 be 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <80> 3c 30 00 0f 85 d2 05 00 00 49 8b b4 24 d0 01 00 00 4c 89 ef e8
RSP: 0018:ffffc9000af8f148 EFLAGS: 00010a06
RAX: 1bd5a0000000005a RBX: ffff88807057b180 RCX: ffffc900063b9000
RDX: 0000000000040000 RSI: dffffc0000000000 RDI: dead0000000002d0
RBP: ffff888036b68550 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff876f0122 R11: 0000000000000000 R12: dead000000000100
R13: ffff888145c5c4b0 R14: ffff88801bd77a00 R15: ffff888036b685d0
FS:  00007fd10fdf2700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd112980030 CR3: 0000000038de8000 CR4: 00000000001506e0
Call Trace:
 netlink_dump+0x4b9/0xb70 net/netlink/af_netlink.c:2278
 __netlink_dump_start+0x642/0x900 net/netlink/af_netlink.c:2383
 netlink_dump_start include/linux/netlink.h:258 [inline]
 nft_netlink_dump_start_rcu+0x83/0x1c0 net/netfilter/nf_tables_api.c:859
 nf_tables_getrule+0x76b/0x8d0 net/netfilter/nf_tables_api.c:3119
 nfnetlink_rcv_msg+0x659/0x13f0 net/netfilter/nfnetlink.c:285
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 nfnetlink_rcv+0x1ac/0x420 net/netfilter/nfnetlink.c:654
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492
 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:0x7fd11287b739
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd10fdf2188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd11297ff80 RCX: 00007fd11287b739
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007fd1128d5cc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd11297ff80
R13: 00007fd112eb3b1f R14: 00007fd10fdf2300 R15: 0000000000022000
Modules linked in:
---[ end trace 89892a997ff018d8 ]---
RIP: 0010:nf_tables_dump_rules+0x52f/0xbc0 net/netfilter/nf_tables_api.c:3015
Code: 4c 8b 28 4d 85 ed 0f 84 65 01 00 00 e8 0a 09 07 fa 49 8d bc 24 d0 01 00 00 48 be 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 <80> 3c 30 00 0f 85 d2 05 00 00 49 8b b4 24 d0 01 00 00 4c 89 ef e8
RSP: 0018:ffffc9000af8f148 EFLAGS: 00010a06
RAX: 1bd5a0000000005a RBX: ffff88807057b180 RCX: ffffc900063b9000
RDX: 0000000000040000 RSI: dffffc0000000000 RDI: dead0000000002d0
RBP: ffff888036b68550 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff876f0122 R11: 0000000000000000 R12: dead000000000100
R13: ffff888145c5c4b0 R14: ffff88801bd77a00 R15: ffff888036b685d0
FS:  00007fd10fdf2700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555722f708 CR3: 0000000038de8000 CR4: 00000000001506e0
----------------
Code disassembly (best guess):
   0:	4c 8b 28             	mov    (%rax),%r13
   3:	4d 85 ed             	test   %r13,%r13
   6:	0f 84 65 01 00 00    	je     0x171
   c:	e8 0a 09 07 fa       	callq  0xfa07091b
  11:	49 8d bc 24 d0 01 00 	lea    0x1d0(%r12),%rdi
  18:	00
  19:	48 be 00 00 00 00 00 	movabs $0xdffffc0000000000,%rsi
  20:	fc ff df
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 30 00          	cmpb   $0x0,(%rax,%rsi,1) <-- trapping instruction
  2e:	0f 85 d2 05 00 00    	jne    0x606
  34:	49 8b b4 24 d0 01 00 	mov    0x1d0(%r12),%rsi
  3b:	00
  3c:	4c 89 ef             	mov    %r13,%rdi
  3f:	e8                   	.byte 0xe8

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/09/20 02:14 upstream d4d016caa4b8 70b76c1d .config log report info general protection fault in nf_tables_dump_rules
ci-upstream-kasan-gce 2021/09/12 20:40 upstream 78e709522d2c 5ae8508a .config log report info general protection fault in nf_tables_dump_rules
* Struck through repros no longer work on HEAD.