syzbot


general protection fault in nf_nat_setup_info

Status: upstream: reported C repro on 2020/07/28 11:16
Reported-by: syzbot+e941eb36e7b3488fda6f@syzkaller.appspotmail.com
First crash: 1427d, last: 1382d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in nf_nat_setup_info C done 22 1363d 1454d 1/1 fixed on 2020/10/31 10:09
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/02/01 09:32 9m (2) retest repro linux-4.14.y report log
2023/02/01 08:32 9m retest repro linux-4.14.y report log
2022/09/11 07:27 8m retest repro linux-4.14.y report log
2022/09/11 06:27 8m retest repro linux-4.14.y report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2020/10/12 03:06 5m bisect fix linux-4.14.y error job log (0)
2020/09/12 02:37 29m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1400 audit(1597286153.538:8): avc:  denied  { execmem } for  pid=6361 comm="syz-executor381" 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: 1 PID: 6361 Comm: syz-executor381 Not tainted 4.14.193-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888097cfe500 task.stack: ffff888097a58000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:__nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline]
RIP: 0010:get_unique_tuple net/netfilter/nf_nat_core.c:313 [inline]
RIP: 0010:nf_nat_setup_info+0x28c/0x1a80 net/netfilter/nf_nat_core.c:407
RSP: 0018:ffff888097a5efa8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff88939d20
RBP: ffff888097a5f168 R08: ffffffff853ace4a R09: 0000000000020012
R10: ffff888097cfedd8 R11: ffff888097cfe500 R12: ffff888097a5f048
R13: 0000000000000018 R14: 0000000000000000 R15: ffff8880a35f6dc0
FS:  0000000001ca5880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3d6a583000 CR3: 00000000a8a2c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __nf_nat_alloc_null_binding+0x13f/0x180 net/netfilter/nf_nat_core.c:466
 nfnetlink_parse_nat_setup+0x483/0x560 net/netfilter/nf_nat_core.c:782
 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:0x440629
RSP: 002b:00007ffc8cb1bf58 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440629
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000008 R09: 00000000004002c8
R10: 0000000000000014 R11: 0000000000000246 R12: 0000000000401e30
R13: 0000000000401ec0 R14: 0000000000000000 R15: 0000000000000000
Code: 48 c1 ea 03 80 3c 02 00 0f 85 cd 15 00 00 4a 8b 04 ed 60 9c 93 88 48 8d 1c d8 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 ca 15 00 00 48 8b 03 48 89 85 78 fe ff ff e8 
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff888097a5efa8
RIP: __nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] RSP: ffff888097a5efa8
RIP: get_unique_tuple net/netfilter/nf_nat_core.c:313 [inline] RSP: ffff888097a5efa8
RIP: nf_nat_setup_info+0x28c/0x1a80 net/netfilter/nf_nat_core.c:407 RSP: ffff888097a5efa8
---[ end trace 814fe820b021f656 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/13 02:37 linux-4.14.y 14b58326976d bc15f7db .config console log report syz C ci2-linux-4-14
2020/07/28 11:31 linux-4.14.y 69b94dd6dcd1 cb93dc6a .config console log report syz C ci2-linux-4-14
2020/07/28 11:15 linux-4.14.y 69b94dd6dcd1 cb93dc6a .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.