syzbot


general protection fault in gre_timeout_obj_to_nlattr

Status: fixed on 2019/11/28 21:57
Reported-by: syzbot+32c925ee7bd74cf5cb75@syzkaller.appspotmail.com
Fix commit: ab69a2304210 Revert "tipc: fix modprobe tipc failed after switch order of device registration"
First crash: 2051d, last: 2046d
Fix bisection: fixed by (bisect log) :
commit ab69a230421065b48ef93d3e6daf332e71c931dc
Author: David S. Miller <davem@davemloft.net>
Date: Fri May 17 19:15:05 2019 +0000

  Revert "tipc: fix modprobe tipc failed after switch order of device registration"

  

Sample crash report:
netlink: 'syz-executor403': attribute type 2 has an invalid length.
audit: type=1400 audit(1554944050.307:38): avc:  denied  { write } for  pid=7936 comm="syz-executor403" 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
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7936 Comm: syz-executor403 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:gre_timeout_obj_to_nlattr+0x77/0x1a0 net/netfilter/nf_conntrack_proto_gre.c:322
Code: 97 85 c7 00 f1 f1 f1 f1 c7 40 04 04 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 b0 96 d3 fb 48 89 d8 48 c1 e8 03 <42> 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffff8880995573d0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8599425b
RDX: 0000000000000000 RSI: ffffffff8597a090 RDI: ffff88808bbf22c0
RBP: ffff888099557460 R08: ffff888098dc0500 R09: ffff888080872aa8
R10: ffffed101010e554 R11: ffff888080872aa0 R12: 1ffff110132aae7b
R13: ffff88808bbf22c0 R14: ffff888099557438 R15: dffffc0000000000
FS:  00000000015e5880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b922d4a190 CR3: 000000009f7ad000 CR4: 00000000001406e0
Call Trace:
 cttimeout_default_fill_info net/netfilter/nfnetlink_cttimeout.c:424 [inline]
 cttimeout_default_get+0x69a/0xa80 net/netfilter/nfnetlink_cttimeout.c:471
 nfnetlink_rcv_msg+0xd12/0xfe0 net/netfilter/nfnetlink.c:228
 netlink_rcv_skb+0x180/0x460 net/netlink/af_netlink.c:2454
 nfnetlink_rcv+0x1c0/0x460 net/netfilter/nfnetlink.c:560
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x53c/0x720 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:632
 ___sys_sendmsg+0x806/0x930 net/socket.c:2115
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2153
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2160
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401e9
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:00007ffd4cd243b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401e9
RDX: 0000000000000000 RSI: 0000000020dddfc8 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a70
R13: 0000000000401b00 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 39d3e32c62d901b2 ]---
RIP: 0010:gre_timeout_obj_to_nlattr+0x77/0x1a0 net/netfilter/nf_conntrack_proto_gre.c:322
Code: 97 85 c7 00 f1 f1 f1 f1 c7 40 04 04 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 b0 96 d3 fb 48 89 d8 48 c1 e8 03 <42> 0f b6 14 38 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffff8880995573d0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8599425b
RDX: 0000000000000000 RSI: ffffffff8597a090 RDI: ffff88808bbf22c0
RBP: ffff888099557460 R08: ffff888098dc0500 R09: ffff888080872aa8
R10: ffffed101010e554 R11: ffff888080872aa0 R12: 1ffff110132aae7b
R13: ffff88808bbf22c0 R14: ffff888099557438 R15: dffffc0000000000
FS:  00000000015e5880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b922d4a190 CR3: 000000009f7ad000 CR4: 00000000001406e0

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/11 00:58 linux-4.19.y 4d552acf3370 65b612b7 .config console log report syz C ci2-linux-4-19
2019/04/15 23:21 linux-4.19.y 4d552acf3370 505ab413 .config console log report ci2-linux-4-19
2019/04/15 09:08 linux-4.19.y 4d552acf3370 505ab413 .config console log report ci2-linux-4-19
2019/04/14 12:17 linux-4.19.y 4d552acf3370 505ab413 .config console log report ci2-linux-4-19
2019/04/14 05:35 linux-4.19.y 4d552acf3370 c402d8f1 .config console log report ci2-linux-4-19
2019/04/14 05:34 linux-4.19.y 4d552acf3370 c402d8f1 .config console log report ci2-linux-4-19
2019/04/13 14:21 linux-4.19.y 4d552acf3370 c402d8f1 .config console log report ci2-linux-4-19
2019/04/11 18:01 linux-4.19.y 4d552acf3370 13030ef8 .config console log report ci2-linux-4-19
2019/04/11 17:46 linux-4.19.y 4d552acf3370 13030ef8 .config console log report ci2-linux-4-19
2019/04/11 10:25 linux-4.19.y 4d552acf3370 e955ac50 .config console log report ci2-linux-4-19
2019/04/10 19:07 linux-4.19.y 4d552acf3370 65b612b7 .config console log report ci2-linux-4-19
2019/04/10 17:40 linux-4.19.y 4d552acf3370 65b612b7 .config console log report ci2-linux-4-19
2019/04/10 17:02 linux-4.19.y 4d552acf3370 65b612b7 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.