syzbot


general protection fault in erspan_validate

Status: fixed on 2020/07/17 17:58
Subsystems: net
[Documentation on labels]
Fix commit: 51fa960d3b51 erspan: Check IFLA_GRE_ERSPAN_VER is set.
First crash: 1499d, last: 1492d
Cause bisection: introduced by (bisect log) :
commit f989d546a2d5a9f001f6f8be49d98c10ab9b1897
Author: William Tu <u9012063@gmail.com>
Date: Tue May 5 16:05:06 2020 +0000

  erspan: Add type I version 0 support.

Crash: general protection fault in erspan_validate (log)
Repro: C syz .config
  

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 7053 Comm: syz-executor549 Not tainted 5.7.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_get_u8 include/net/netlink.h:1595 [inline]
RIP: 0010:erspan_validate+0x89/0x380 net/ipv4/ip_gre.c:1090
Code: c1 ea 03 80 3c 02 00 0f 85 c5 02 00 00 4c 8b a3 b0 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 04 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 9c 02 00 00
RSP: 0018:ffffc900018a7188 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffff88809e875800 RCX: ffffffff86b260fc
RDX: 0000000000000000 RSI: ffffffff86b2610a RDI: 0000000000000004
RBP: 0000000000000000 R08: ffff888094b78300 R09: ffffffff88e65d12
R10: ffff88809e8758c7 R11: ffffed1013d0eb18 R12: 0000000000000000
R13: ffffc900018a7888 R14: ffffc900018a7428 R15: dffffc0000000000
FS:  0000000000d33880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000780 CR3: 00000000a6398000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __rtnl_newlink+0x526/0x1590 net/core/rtnetlink.c:3219
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3398
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5461
 netlink_rcv_skb+0x15a/0x410 net/netlink/af_netlink.c:2469
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6bf/0x7e0 net/socket.c:2362
 ___sys_sendmsg+0x100/0x170 net/socket.c:2416
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2449
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x440bc9
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 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff8f61dd18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004a2370 RCX: 0000000000440bc9
RDX: 0000000000000000 RSI: 0000000020000780 RDI: 0000000000000003
RBP: 00007fff8f61dd20 R08: 0000000120080522 R09: 0000000120080522
R10: 0000000120080522 R11: 0000000000000246 R12: 00000000004a2370
R13: 0000000000402160 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace e1a52bdbfee4b61b ]---
RIP: 0010:nla_get_u8 include/net/netlink.h:1595 [inline]
RIP: 0010:erspan_validate+0x89/0x380 net/ipv4/ip_gre.c:1090
Code: c1 ea 03 80 3c 02 00 0f 85 c5 02 00 00 4c 8b a3 b0 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 04 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 9c 02 00 00
RSP: 0018:ffffc900018a7188 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffff88809e875800 RCX: ffffffff86b260fc
RDX: 0000000000000000 RSI: ffffffff86b2610a RDI: 0000000000000004
RBP: 0000000000000000 R08: ffff888094b78300 R09: ffffffff88e65d12
R10: ffff88809e8758c7 R11: ffffed1013d0eb18 R12: 0000000000000000
R13: ffffc900018a7888 R14: ffffc900018a7428 R15: dffffc0000000000
FS:  0000000000d33880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000780 CR3: 00000000a6398000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (520):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/06 02:05 net-next-old f989d546a2d5 35b8eb30 .config console log report syz C ci-upstream-net-kasan-gce
2020/05/12 20:09 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 19:06 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 17:45 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 16:44 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 15:30 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 14:40 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 13:02 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 11:56 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 10:02 net-next-old 3242956bd610 160c7698 .config console log report ci-upstream-net-kasan-gce
2020/05/12 08:12 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 06:58 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 06:31 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 05:30 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 04:29 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 02:59 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 02:19 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 01:16 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/12 00:02 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/11 22:21 net-next-old 9b1b31d5d4ac 9eb09c40 .config console log report ci-upstream-net-kasan-gce
2020/05/11 19:37 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 18:27 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 17:11 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 15:48 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 15:36 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 14:23 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 13:20 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 11:58 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 10:37 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 09:17 net-next-old a6f0b26d6a5d f8f57555 .config console log report ci-upstream-net-kasan-gce
2020/05/11 07:27 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 06:30 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 05:23 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 04:09 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 03:02 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 02:43 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 01:21 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/11 00:19 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 23:18 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 21:58 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 20:58 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 19:25 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 18:11 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 17:08 net-next-old 7a36e4918e30 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 15:53 net-next-old 02a5043b22ed 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/10 14:52 net-next-old 02a5043b22ed 8742a2b9 .config console log report ci-upstream-net-kasan-gce
2020/05/06 00:52 net-next-old f989d546a2d5 35b8eb30 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.