syzbot
general protection fault in nfnetlink_parse_nat_setup
Status:
upstream: reported C repro on 2020/01/17 17:27
Reported-by: syzbot+9b4048a361a7fb331306@syzkaller.appspotmail.com
First crash: 2409d, last: 2155d
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (2)
Sample crash report:
audit: type=1400 audit(1597529211.270:8): avc: denied { execmem } for pid=6359 comm="syz-executor276" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 6359 Comm: syz-executor276 Not tainted 4.14.193-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a609c380 task.stack: ffff888081e60000
RIP: 0010:nfnetlink_parse_nat net/netfilter/nf_nat_core.c:747 [inline]
RIP: 0010:nfnetlink_parse_nat_setup+0x1df/0x560 net/netfilter/nf_nat_core.c:784
RSP: 0018:ffff888081e67230 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffff888081e672f0 RCX: 0000000000000000
RDX: 0000000000000007 RSI: 0000000000000000 RDI: 000000000000003e
RBP: ffff88808e18adc0 R08: 0000000000000001 R09: ffff888081e672f0
R10: ffff888081e6731f R11: ffff8880a609c380 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000006 R15: ffff888081e672a0
FS: 0000000000783880(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a186a902d0 CR3: 000000008a128000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ctnetlink_parse_nat_setup+0x70/0x490 net/netfilter/nf_conntrack_netlink.c:1421
ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1491 [inline]
ctnetlink_create_conntrack+0x43b/0x1050 net/netfilter/nf_conntrack_netlink.c:1840
ctnetlink_new_conntrack+0x457/0xbf0 net/netfilter/nf_conntrack_netlink.c:1964
nfnetlink_rcv_msg+0x9bb/0xc00 net/netfilter/nfnetlink.c:214
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
nfnetlink_rcv+0x1ab/0x1da0 net/netfilter/nfnetlink.c:515
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x440359
RSP: 002b:00007fff3a038258 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440359
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b60
R13: 0000000000401bf0 R14: 0000000000000000 R15: 0000000000000000
Code: df 83 e9 04 e8 23 f5 d9 fd 85 c0 0f 88 26 02 00 00 e8 26 ac 20 fc 49 8d 7e 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 28 03 00 00 4c 89 fe 48 89 df 41 ff 56 38 85
RIP: nfnetlink_parse_nat net/netfilter/nf_nat_core.c:747 [inline] RSP: ffff888081e67230
RIP: nfnetlink_parse_nat_setup+0x1df/0x560 net/netfilter/nf_nat_core.c:784 RSP: ffff888081e67230
---[ end trace b0a2f2ee09194c3b ]---
* Struck through repros no longer work on HEAD.