syzbot


general protection fault in icmp_timeout_obj_to_nlattr

Status: fixed on 2018/11/12 21:25
Subsystems: netfilter
[Documentation on labels]
Fix commit: 8866df9264a3 netfilter: nfnetlink_cttimeout: pass default timeout policy to obj_to_nlattr
First crash: 2024d, last: 2020d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in icmp_timeout_obj_to_nlattr C done 3 1861d 1863d 1/1 fixed on 2019/11/28 09:46

Sample crash report:
netlink: 'syz-executor709': attribute type 3 has an invalid length.
netlink: 'syz-executor709': attribute type 2 has an invalid length.
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
CPU: 0 PID: 5669 Comm: syz-executor709 Not tainted 4.19.0+ #97
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:icmp_timeout_obj_to_nlattr+0x77/0x170 net/netfilter/nf_conntrack_proto_icmp.c:297
Code: b5 41 c7 00 f1 f1 f1 f1 c7 40 04 04 f2 f2 f2 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 60 7a 24 fb 4c 89 e8 48 c1 e8 03 <42> 0f b6 14 38 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffff8801c1ee7220 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff100383dce45 RCX: ffffffff865e07f4
RDX: 0000000000000000 RSI: ffffffff865b1060 RDI: ffff8801d4156000
RBP: ffff8801c1ee72b0 R08: ffff8801d2d8a4c0 R09: ffff8801d367ec68
R10: ffffed003a6cfd8c R11: ffff8801d367ec60 R12: ffff8801d4156000
R13: 0000000000000000 R14: ffff8801c1ee7288 R15: dffffc0000000000
FS:  00000000015eb880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000208a7000 CR3: 00000001d55f2000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 cttimeout_default_fill_info net/netfilter/nfnetlink_cttimeout.c:411 [inline]
 cttimeout_default_get+0x644/0x9e0 net/netfilter/nfnetlink_cttimeout.c:457
 nfnetlink_rcv_msg+0xdd3/0x10c0 net/netfilter/nfnetlink.c:228
 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2477
 nfnetlink_rcv+0x1c0/0x4d0 net/netfilter/nfnetlink.c:560
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x5a5/0x760 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:631
 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2116
 __sys_sendmsg+0x11d/0x280 net/socket.c:2154
 __do_sys_sendmsg net/socket.c:2163 [inline]
 __se_sys_sendmsg net/socket.c:2161 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4400d9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd59e1fa88 EFLAGS: 00000213 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004400d9
RDX: 0000000000000000 RSI: 0000000020dddfc8 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401960
R13: 00000000004019f0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace ca907e504374ecd5 ]---
RIP: 0010:icmp_timeout_obj_to_nlattr+0x77/0x170 net/netfilter/nf_conntrack_proto_icmp.c:297
Code: b5 41 c7 00 f1 f1 f1 f1 c7 40 04 04 f2 f2 f2 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 60 7a 24 fb 4c 89 e8 48 c1 e8 03 <42> 0f b6 14 38 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffff8801c1ee7220 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff100383dce45 RCX: ffffffff865e07f4
RDX: 0000000000000000 RSI: ffffffff865b1060 RDI: ffff8801d4156000
RBP: ffff8801c1ee72b0 R08: ffff8801d2d8a4c0 R09: ffff8801d367ec68
R10: ffffed003a6cfd8c R11: ffff8801d367ec60 R12: ffff8801d4156000
R13: 0000000000000000 R14: ffff8801c1ee7288 R15: dffffc0000000000
FS:  00000000015eb880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000208a7000 CR3: 00000001d55f2000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/11/04 16:04 upstream 71e56028173b 8bd6bd63 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/02 15:31 upstream e468f5c06b5e 1f38e9ae .config console log report syz C ci-upstream-kasan-gce
2018/11/02 06:08 upstream e468f5c06b5e 1f38e9ae .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/10/31 18:02 upstream 310c7585e830 89781090 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/02 11:17 upstream e468f5c06b5e 1f38e9ae .config console log report syz C ci-upstream-kasan-gce-386
2018/10/31 18:24 net-old a6b3a3fa0423 89781090 .config console log report syz C ci-upstream-net-this-kasan-gce
2018/11/01 01:36 net-next-old 4b42745211af 1f38e9ae .config console log report syz C ci-upstream-net-kasan-gce
2018/11/03 00:07 linux-next 25e9471b6a27 8bd6bd63 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/02 11:40 upstream e468f5c06b5e 1f38e9ae .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/02 11:39 upstream e468f5c06b5e 1f38e9ae .config console log report ci-upstream-kasan-gce-root
2018/11/02 11:37 upstream e468f5c06b5e 1f38e9ae .config console log report ci-upstream-kasan-gce
2018/10/31 16:15 upstream 310c7585e830 89781090 .config console log report ci-upstream-kasan-gce-root
2018/11/02 11:38 linux-next 25e9471b6a27 1f38e9ae .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.