syzbot


BUG: unable to handle kernel paging request in ipt_do_table

Status: auto-closed as invalid on 2021/10/17 23:06
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+be45962c3f935d1e2e06@syzkaller.appspotmail.com
First crash: 982d, last: 982d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in ipt_do_table 1 1089d 1089d 0/1 auto-closed as invalid on 2021/08/01 14:21
upstream KASAN: use-after-free Read in ipt_do_table netfilter syz error error 16 557d 705d 0/26 closed as invalid on 2022/11/17 17:58

Sample crash report:
BUG: unable to handle page fault for address: ffffe8ffff714020
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 1083f067 P4D 1083f067 PUD 18f23067 PMD 17a09067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 23221 Comm: syz-executor.4 Not tainted 5.14.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ipt_do_table+0xf3a/0x1970 net/ipv4/netfilter/ip_tables.c:299
Code: e8 03 42 80 3c 38 00 0f 85 b5 08 00 00 48 03 1c ed 80 38 31 8b 48 89 d8 48 89 dd 48 c1 e8 03 42 80 3c 38 00 0f 85 8b 08 00 00 <48> 8b 5d 00 e9 3d fb ff ff e8 18 41 b9 f9 89 de bf fb ff ff ff e8
RSP: 0018:ffffc90001a1efd8 EFLAGS: 00010246
RAX: 1ffffd1fffee2804 RBX: ffffe8ffff714020 RCX: ffffc9001217e000
RDX: 0000000000040000 RSI: 0000000000000200 RDI: ffffffff8b313888
RBP: ffffe8ffff714020 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffff87bc43c1 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888083a62970 R14: 0000000000000002 R15: dffffc0000000000
FS:  00007f4c86ada700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffff714020 CR3: 0000000029dd2000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0xc5/0x1e0 net/netfilter/core.c:589
 nf_hook+0x1cb/0x5b0 include/linux/netfilter.h:262
 __ip_local_out+0x26e/0x530 net/ipv4/ip_output.c:115
 ip_local_out net/ipv4/ip_output.c:124 [inline]
 __ip_queue_xmit+0x848/0x1a30 net/ipv4/ip_output.c:533
 __tcp_transmit_skb+0x1891/0x3900 net/ipv4/tcp_output.c:1405
 tcp_transmit_skb net/ipv4/tcp_output.c:1423 [inline]
 tcp_send_syn_data net/ipv4/tcp_output.c:3813 [inline]
 tcp_connect+0x204e/0x4190 net/ipv4/tcp_output.c:3852
 tcp_v4_connect+0x1550/0x1c80 net/ipv4/tcp_ipv4.c:312
 __inet_stream_connect+0x8cf/0xed0 net/ipv4/af_inet.c:664
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1190 [inline]
 tcp_sendmsg_locked+0x209e/0x2f10 net/ipv4/tcp.c:1232
 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1461
 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:821
 sock_sendmsg_nosec net/socket.c:703 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:723
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2392
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2446
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2475
 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:0x4665e9
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:00007f4c86ada188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9
RDX: 00000000200408c4 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffdff861b1f R14: 00007f4c86ada300 R15: 0000000000022000
Modules linked in:
CR2: ffffe8ffff714020
---[ end trace bce5223c5088f98e ]---
RIP: 0010:ipt_do_table+0xf3a/0x1970 net/ipv4/netfilter/ip_tables.c:299
Code: e8 03 42 80 3c 38 00 0f 85 b5 08 00 00 48 03 1c ed 80 38 31 8b 48 89 d8 48 89 dd 48 c1 e8 03 42 80 3c 38 00 0f 85 8b 08 00 00 <48> 8b 5d 00 e9 3d fb ff ff e8 18 41 b9 f9 89 de bf fb ff ff ff e8
RSP: 0018:ffffc90001a1efd8 EFLAGS: 00010246
RAX: 1ffffd1fffee2804 RBX: ffffe8ffff714020 RCX: ffffc9001217e000
RDX: 0000000000040000 RSI: 0000000000000200 RDI: ffffffff8b313888
RBP: ffffe8ffff714020 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffff87bc43c1 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888083a62970 R14: 0000000000000002 R15: dffffc0000000000
FS:  00007f4c86ada700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffff714020 CR3: 0000000029dd2000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/19 23:05 bpf-next 78e4a955928e bc48c9ab .config console log report info ci-upstream-bpf-next-kasan-gce BUG: unable to handle kernel paging request in ipt_do_table
* Struck through repros no longer work on HEAD.