syzbot


general protection fault in __xfrm6_tunnel_spi_lookup

Status: upstream: reported C repro on 2020/07/13 22:04
Reported-by: syzbot+27016009dfe6ab82bff1@syzkaller.appspotmail.com
First crash: 716d, last: 709d

Cause bisection: the cause commit could be any of (bisect log):
  08622869ed3f ip6_vti: support IP6IP6 tunnel processing with .cb_handler
  e6ce64570f24 ip_vti: support IPIP6 tunnel processing
  2ab110cbb0c0 ip6_vti: support IP6IP tunnel processing
  87e66b9682d7 ip_vti: support IPIP tunnel processing with .cb_handler
  86afc7031826 tunnel6: add tunnel6_input_afinfo for ipip and ipv6 tunnels
  d5a7a5057387 ipcomp: assign if_id to child tunnel from parent tunnel
  6df2db5d37ba tunnel4: add cb_handler to struct xfrm_tunnel
  d7b360c2869f xfrm: interface: support IP6IP6 and IP6IP tunnels processing with .cb_handler
  1475ee0ac9a1 xfrm: add is_ipip to struct xfrm_input_afinfo
  da9bbf0598c9 xfrm: interface: support IPIP and IPIP6 tunnels processing with .cb_handler
  2d4c7986dbc6 Merge remote-tracking branch 'origin/testing'
  428d2459cceb xfrm: introduce oseq-may-wrap flag
  bdf0acad6dce Merge remote-tracking branch 'ipsec-next/master'
Patch testing requests:
Created Duration User Patch Repo Result
2020/10/11 20:59 16m anant.thazhemadam@gmail.com linux-next report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000104: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000820-0x0000000000000827]
CPU: 0 PID: 6861 Comm: syz-executor039 Not tainted 5.8.0-rc4-next-20200713-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ipv6_addr_equal include/net/ipv6.h:579 [inline]
RIP: 0010:xfrm6_addr_equal include/net/xfrm.h:1699 [inline]
RIP: 0010:__xfrm6_tunnel_spi_lookup+0x22b/0x3b0 net/ipv6/xfrm6_tunnel.c:82
Code: 89 e0 48 c1 e8 03 80 3c 28 00 0f 85 5b 01 00 00 4d 8b 24 24 4d 85 e4 74 53 e8 01 78 7b fa 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 2d 01 00 00 4d 8b 7c 24 20 49 8d 7c 24 28 48 89
RSP: 0018:ffffc90003ba7580 EFLAGS: 00010202
RAX: 0000000000000104 RBX: ffffffffffffffff RCX: ffffffff86f8b9b8
RDX: ffff88809af14280 RSI: ffffffff86f8b96f RDI: 0000000000000820
RBP: dffffc0000000000 R08: 0000000000000001 R09: ffff88809af14b50
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000800
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000e27880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 00000000942f4000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xfrm6_tunnel_spi_lookup+0x8a/0x1d0 net/ipv6/xfrm6_tunnel.c:95
 ipcomp6_tunnel_attach net/ipv6/ipcomp6.c:119 [inline]
 ipcomp6_init_state net/ipv6/ipcomp6.c:159 [inline]
 ipcomp6_init_state+0x1de/0x700 net/ipv6/ipcomp6.c:139
 __xfrm_init_state+0x9a6/0x14b0 net/xfrm/xfrm_state.c:2498
 xfrm_init_state+0x1a/0x70 net/xfrm/xfrm_state.c:2525
 pfkey_msg2xfrm_state net/key/af_key.c:1291 [inline]
 pfkey_add+0x1a10/0x2b70 net/key/af_key.c:1508
 pfkey_process+0x66d/0x7a0 net/key/af_key.c:2834
 pfkey_sendmsg+0x42d/0x800 net/key/af_key.c:3673
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x331/0x810 net/socket.c:2363
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2417
 __sys_sendmmsg+0x195/0x480 net/socket.c:2507
 __do_sys_sendmmsg net/socket.c:2536 [inline]
 __se_sys_sendmmsg net/socket.c:2533 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2533
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4403c9
Code: Bad RIP value.
RSP: 002b:00007ffcc337fb78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004403c9
RDX: 0000000000000393 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401bd0
R13: 0000000000401c60 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 1ee0aebd7e9e20d4 ]---
RIP: 0010:ipv6_addr_equal include/net/ipv6.h:579 [inline]
RIP: 0010:xfrm6_addr_equal include/net/xfrm.h:1699 [inline]
RIP: 0010:__xfrm6_tunnel_spi_lookup+0x22b/0x3b0 net/ipv6/xfrm6_tunnel.c:82
Code: 89 e0 48 c1 e8 03 80 3c 28 00 0f 85 5b 01 00 00 4d 8b 24 24 4d 85 e4 74 53 e8 01 78 7b fa 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 2d 01 00 00 4d 8b 7c 24 20 49 8d 7c 24 28 48 89
RSP: 0018:ffffc90003ba7580 EFLAGS: 00010202
RAX: 0000000000000104 RBX: ffffffffffffffff RCX: ffffffff86f8b9b8
RDX: ffff88809af14280 RSI: ffffffff86f8b96f RDI: 0000000000000820
RBP: dffffc0000000000 R08: 0000000000000001 R09: ffff88809af14b50
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000800
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000e27880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 00000000942f4000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (79):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/07/14 10:05 linux-next be978f8feb1d ce4c95b3 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/07/13 13:50 linux-next be978f8feb1d f90ec899 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/07/20 10:43 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/20 07:37 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/20 05:25 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/20 02:11 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/20 00:26 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/19 15:04 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/19 12:00 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/19 00:18 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 18:07 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 15:06 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 11:04 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 08:33 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 05:35 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 03:36 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/17 05:39 linux-next 4c43049f19a2 54b3c45e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/17 03:29 linux-next 4c43049f19a2 54b3c45e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/16 23:50 linux-next 4c43049f19a2 54b3c45e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/16 20:04 linux-next 4c43049f19a2 f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/16 15:22 linux-next 4c43049f19a2 f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/16 11:27 linux-next ca0e494af5ed f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/16 02:51 linux-next ca0e494af5ed f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/15 23:46 linux-next ca0e494af5ed f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/15 12:37 linux-next ca0e494af5ed f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/15 00:15 linux-next 5fb3d6042387 609fb517 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 22:11 linux-next 5fb3d6042387 609fb517 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 22:09 linux-next 5fb3d6042387 609fb517 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 22:09 linux-next 5fb3d6042387 609fb517 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 22:09 linux-next 5fb3d6042387 609fb517 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 20:12 linux-next 5fb3d6042387 609fb517 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 11:49 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 08:56 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 07:52 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 07:52 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 07:34 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 07:06 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 07:06 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 07:05 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/14 06:55 linux-next be978f8feb1d ce4c95b3 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 21:46 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 19:44 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 18:13 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 17:31 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 17:27 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 17:27 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 17:27 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 17:27 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 13:56 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 12:50 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:56 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:52 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:42 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:29 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:24 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:21 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:18 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:12 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:06 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 11:05 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 10:57 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 10:32 linux-next be978f8feb1d f90ec899 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/13 10:29 linux-next be978f8feb1d f90ec899 .config log report