syzbot


general protection fault in get_unique_tuple

Status: upstream: reported C repro on 2020/01/20 00:16
Reported-by: syzbot+50f6e139c84dede73ce4@syzkaller.appspotmail.com
First crash: 1607d, last: 1475d
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 get_unique_tuple C done 33 1348d 1609d 1/1 fixed on 2020/11/05 11:24
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/01/17 06:32 13m retest repro linux-4.14.y report log
2023/01/16 22:32 10m retest repro linux-4.14.y report log
2022/09/03 18:27 10m retest repro linux-4.14.y report log
2022/09/03 17:27 12m retest repro linux-4.14.y report log

Sample crash report:
audit: type=1400 audit(1580763650.425:36): avc:  denied  { map } for  pid=7317 comm="syz-executor814" path="/root/syz-executor814252622" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
audit: type=1400 audit(1580763650.425:37): avc:  denied  { create } for  pid=7317 comm="syz-executor814" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1
kasan: CONFIG_KASAN_INLINE enabled
audit: type=1400 audit(1580763650.425:38): avc:  denied  { write } for  pid=7317 comm="syz-executor814" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1
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: 7317 Comm: syz-executor814 Not tainted 4.14.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880831de200 task.stack: ffff8880997b0000
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+0x230/0x19e0 net/netfilter/nf_nat_core.c:313
RSP: 0018:ffff8880997b6ea0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880997b7028 RCX: 1ffffffff11660d8
RDX: 0000000080000000 RSI: ffffffff87f84ee0 RDI: ffffffff88b306c0
RBP: ffff8880997b6fc8 R08: 0000000000000000 R09: ffff8880831deaf0
R10: ffff8880831dead0 R11: ffff8880831de200 R12: 0000000400000002
R13: 00000000000000ec R14: ffff8880997b704e R15: ffff8880997b7078
FS:  0000000001fa0880(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056243a21b180 CR3: 0000000090af3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nf_nat_setup_info+0x1bd/0x7f0 net/netfilter/nf_nat_core.c:407
 __nf_nat_alloc_null_binding+0x13f/0x180 net/netfilter/nf_nat_core.c:466
 nfnetlink_parse_nat_setup+0x34a/0x3b0 net/netfilter/nf_nat_core.c:782
 ctnetlink_parse_nat_setup+0x76/0x4a0 net/netfilter/nf_conntrack_netlink.c:1421
 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1491 [inline]
 ctnetlink_create_conntrack+0x468/0x10c0 net/netfilter/nf_conntrack_netlink.c:1840
 ctnetlink_new_conntrack+0x4af/0xcc0 net/netfilter/nf_conntrack_netlink.c:1964
 nfnetlink_rcv_msg+0xa08/0xc00 net/netfilter/nfnetlink.c:214
 netlink_rcv_skb+0x14f/0x3c0 net/netlink/af_netlink.c:2432
 nfnetlink_rcv+0x1ab/0x1650 net/netfilter/nfnetlink.c:515
 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
 netlink_unicast+0x44d/0x650 net/netlink/af_netlink.c:1312
 netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xce/0x110 net/socket.c:656
 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062
 __sys_sendmsg+0xb9/0x140 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x2d/0x50 net/socket.c:2103
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x440239
RSP: 002b:00007ffcd888a338 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440239
RDX: 0000000000000000 RSI: 0000000020000640 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401ac0
R13: 0000000000401b50 R14: 0000000000000000 R15: 0000000000000000
Code: 48 c1 e9 03 80 3c 11 00 0f 85 91 14 00 00 4a 8b 14 e5 60 ff b2 88 4c 8d 24 c2 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 81 14 00 00 49 8b 04 24 48 89 85 30 ff ff ff 
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff8880997b6ea0
RIP: __nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] RSP: ffff8880997b6ea0
RIP: get_unique_tuple+0x230/0x19e0 net/netfilter/nf_nat_core.c:313 RSP: ffff8880997b6ea0
---[ end trace 7a2b991410e18817 ]---

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/03 21:03 linux-4.14.y 9fa690a2a016 93e5e335 .config console log report syz C ci2-linux-4-14
2020/01/20 00:34 linux-4.14.y c1141b3aab36 0342f8c7 .config console log report syz C ci2-linux-4-14
2020/05/31 07:31 linux-4.14.y 4f68020fef1c 6f3e1c7c .config console log report ci2-linux-4-14
2020/05/16 07:34 linux-4.14.y ab9dfda23248 37bccd4e .config console log report ci2-linux-4-14
2020/05/12 13:42 linux-4.14.y ab9dfda23248 a497a5b4 .config console log report ci2-linux-4-14
2020/05/01 20:04 linux-4.14.y 050272a0423e 143a10e9 .config console log report ci2-linux-4-14
2020/04/15 19:08 linux-4.14.y c10b57a567e4 3f3c5574 .config console log report ci2-linux-4-14
2020/04/12 00:36 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report ci2-linux-4-14
2020/04/11 07:49 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report ci2-linux-4-14
2020/04/09 13:41 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report ci2-linux-4-14
2020/04/09 13:31 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report ci2-linux-4-14
2020/04/07 07:01 linux-4.14.y 4520f06b03ae 99a96044 .config console log report ci2-linux-4-14
2020/03/30 03:58 linux-4.14.y 01364dad1d45 05736b29 .config console log report ci2-linux-4-14
2020/03/14 18:41 linux-4.14.y 12cd844a39ed 749688d2 .config console log report ci2-linux-4-14
2020/03/09 01:47 linux-4.14.y 78d697fc93f9 2e9971bb .config console log report ci2-linux-4-14
2020/03/04 18:08 linux-4.14.y 78d697fc93f9 712198ac .config console log report ci2-linux-4-14
2020/02/24 06:17 linux-4.14.y 98db2bf27b9e d801cb02 .config console log report ci2-linux-4-14
2020/02/18 02:09 linux-4.14.y 98db2bf27b9e 1ce142dc .config console log report ci2-linux-4-14
2020/02/14 11:40 linux-4.14.y e0f8b8a65a47 5d7b90f1 .config console log report ci2-linux-4-14
2020/02/03 22:06 linux-4.14.y 9fa690a2a016 93e5e335 .config console log report ci2-linux-4-14
2020/01/29 16:23 linux-4.14.y 9fa690a2a016 5ed23f9a .config console log report ci2-linux-4-14
2020/01/20 00:16 linux-4.14.y c1141b3aab36 0342f8c7 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.