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: 1560d, last: 1305d
Fix bisection the fix commit could be any of (bisect log):
  9fa690a2a016 Linux 4.14.169
  4139fb08c05f Linux 4.14.187
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in nfnetlink_parse_nat_setup C error 64 1320d 1559d 0/1 upstream: reported C repro on 2020/01/18 12:24
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/02/04 02:32 10m retest repro linux-4.14.y report log
2023/02/04 01:32 15m retest repro linux-4.14.y report log
2023/02/04 00:32 10m retest repro linux-4.14.y report log
2023/02/03 23:32 9m retest repro linux-4.14.y report log
2023/02/03 22:32 11m retest repro linux-4.14.y report log
2023/02/03 21:32 12m retest repro linux-4.14.y report log
2022/09/13 14:27 9m retest repro linux-4.14.y report log
2022/09/13 13:27 9m retest repro linux-4.14.y report log
2022/09/13 12:27 9m retest repro linux-4.14.y report log
2022/09/13 11:27 8m retest repro linux-4.14.y report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2020/06/25 17:53 30m (4) bisect fix linux-4.14.y job log (2)
2020/05/26 17:29 24m bisect fix linux-4.14.y job log (0) log

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 ]---

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/15 22:08 linux-4.14.y 14b58326976d 5ce13532 .config console log report syz C ci2-linux-4-14
2020/01/31 00:32 linux-4.14.y 9fa690a2a016 5ed23f9a .config console log report syz C ci2-linux-4-14
2020/01/31 00:10 linux-4.14.y 9fa690a2a016 5ed23f9a .config console log report syz C ci2-linux-4-14
2020/01/21 03:41 linux-4.14.y c1141b3aab36 8eda0b95 .config console log report syz C ci2-linux-4-14
2020/01/21 03:01 linux-4.14.y c1141b3aab36 8eda0b95 .config console log report syz C ci2-linux-4-14
2020/01/17 17:42 linux-4.14.y c04fc6fa5c96 3de7aabb .config console log report syz C ci2-linux-4-14
2020/09/28 04:51 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config console log report info ci2-linux-4-14
2020/09/03 04:42 linux-4.14.y d7e78d08fa77 abf9ba4f .config console log report ci2-linux-4-14
2020/09/02 21:34 linux-4.14.y d7e78d08fa77 abf9ba4f .config console log report ci2-linux-4-14
2020/08/26 05:45 linux-4.14.y 6a24ca2506d6 344da168 .config console log report ci2-linux-4-14
2020/08/26 03:48 linux-4.14.y 6a24ca2506d6 344da168 .config console log report ci2-linux-4-14
2020/08/21 02:08 linux-4.14.y 14b58326976d 70160577 .config console log report ci2-linux-4-14
2020/08/03 19:56 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/03 07:13 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/07/07 00:27 linux-4.14.y b850307b279c ef278c73 .config console log report ci2-linux-4-14
2020/04/26 17:28 linux-4.14.y 050272a0423e 0ce7569e .config console log report ci2-linux-4-14
2020/03/29 23:11 linux-4.14.y 01364dad1d45 05736b29 .config console log report ci2-linux-4-14
2020/03/28 14:35 linux-4.14.y 01364dad1d45 f1ebdfba .config console log report ci2-linux-4-14
2020/03/05 08:36 linux-4.14.y 78d697fc93f9 576fb9bc .config console log report ci2-linux-4-14
2020/02/18 15:53 linux-4.14.y 98db2bf27b9e 012fbc32 .config console log report ci2-linux-4-14
2020/02/13 04:32 linux-4.14.y e0f8b8a65a47 84f4fc8a .config console log report ci2-linux-4-14
2020/02/13 04:19 linux-4.14.y e0f8b8a65a47 84f4fc8a .config console log report ci2-linux-4-14
2020/01/18 11:57 linux-4.14.y c1141b3aab36 3de7aabb .config console log report ci2-linux-4-14
2020/01/17 17:26 linux-4.14.y c04fc6fa5c96 3de7aabb .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.