------------[ cut here ]------------ kernel BUG at net/ipv4/ip_output.c:776! invalid opcode: 0000 [#1] SMP KASAN CPU: 0 PID: 8946 Comm: syz-executor1 Not tainted 4.18.0-next-20180814+ #38 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ip_do_fragment+0x2468/0x2ae0 net/ipv4/ip_output.c:776 ------------[ cut here ]------------ Code: 8b 8d 70 fe ff ff e9 67 e8 ff ff 4c 89 ef e8 6f ec 39 fc e9 49 e9 ff ff 4c 89 f7 e8 62 ec 39 fc e9 c1 e5 ff ff e8 d8 d6 fa fb <0f> 0b 4c 89 e7 e8 4e ec 39 fc e9 85 e8 ff ff 4c 89 f7 89 8d 70 fe kernel BUG at net/ipv4/ip_output.c:776! RSP: 0018:ffff8801b07ee7d0 EFLAGS: 00010293 RAX: ffff8801cede8640 RBX: ffff8801aa82d800 RCX: ffffffff8581a096 RDX: 0000000000000000 RSI: ffffffff8581b718 RDI: 0000000000000005 RBP: ffff8801b07ee9a8 R08: ffff8801cede8640 R09: ffffed0036720032 R10: ffffed0036720034 R11: ffff8801b39001a3 R12: ffff8801aa82d8c4 R13: 00000000fffffff2 R14: ffff8801aa82d8d0 R15: dffffc0000000000 FS: 00007fdd5cef3700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001afd92000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ip_fragment.constprop.49+0x179/0x240 net/ipv4/ip_output.c:549 ip_finish_output+0x6e4/0xfa0 net/ipv4/ip_output.c:315 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip_output+0x223/0x880 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:444 [inline] ip_local_out+0xc5/0x1b0 net/ipv4/ip_output.c:124 iptunnel_xmit+0x567/0x850 net/ipv4/ip_tunnel_core.c:91 ip_tunnel_xmit+0x1598/0x3af1 net/ipv4/ip_tunnel.c:778 __gre_xmit+0x5e1/0x980 net/ipv4/ip_gre.c:449 ipgre_xmit+0x3e8/0xb50 net/ipv4/ip_gre.c:703 __netdev_start_xmit include/linux/netdevice.h:4287 [inline] netdev_start_xmit include/linux/netdevice.h:4296 [inline] xmit_one net/core/dev.c:3217 [inline] dev_hard_start_xmit+0x272/0xc10 net/core/dev.c:3233 __dev_queue_xmit+0x2ab2/0x3870 net/core/dev.c:3803 dev_queue_xmit+0x17/0x20 net/core/dev.c:3836 __bpf_tx_skb net/core/filter.c:2012 [inline] __bpf_redirect_common net/core/filter.c:2050 [inline] __bpf_redirect+0x5b7/0xae0 net/core/filter.c:2057 ____bpf_clone_redirect net/core/filter.c:2090 [inline] bpf_clone_redirect+0x2f6/0x490 net/core/filter.c:2062 bpf_prog_bebbfe2050753572+0x4c9/0x1000 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) invalid opcode: 0000 [#2] SMP KASAN ---[ end trace 67649de60e8686f1 ]--- CPU: 1 PID: 8952 Comm: syz-executor6 Tainted: G D 4.18.0-next-20180814+ #38 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ip_do_fragment+0x2468/0x2ae0 net/ipv4/ip_output.c:776 RIP: 0010:ip_do_fragment+0x2468/0x2ae0 net/ipv4/ip_output.c:776 Code: 8b 8d 70 fe ff ff e9 67 e8 ff ff 4c 89 ef e8 6f ec 39 fc e9 49 e9 ff ff 4c 89 f7 e8 62 ec 39 fc e9 c1 e5 ff ff e8 d8 d6 fa fb <0f> 0b 4c 89 e7 e8 4e ec 39 fc e9 85 e8 ff ff 4c 89 f7 89 8d 70 fe RSP: 0018:ffff8801a937e7d0 EFLAGS: 00010293 Code: 8b 8d 70 fe ff ff e9 67 e8 ff ff 4c 89 ef e8 6f ec 39 fc e9 49 e9 ff ff 4c 89 f7 e8 62 ec 39 fc e9 c1 e5 ff ff e8 d8 d6 fa fb <0f> 0b 4c 89 e7 e8 4e ec 39 fc e9 85 e8 ff ff 4c 89 f7 89 8d 70 fe RAX: ffff8801c7354740 RBX: ffff8801b52140c0 RCX: ffffffff8581a096 RDX: 0000000000000000 RSI: ffffffff8581b718 RDI: 0000000000000005 RBP: ffff8801a937e9a8 R08: ffff8801c7354740 R09: ffffed0039e2803a R10: ffffed0039e2803c R11: ffff8801cf1401e3 R12: ffff8801b5214184 RSP: 0018:ffff8801b07ee7d0 EFLAGS: 00010293 R13: 00000000fffffff2 R14: ffff8801b5214190 R15: dffffc0000000000 FS: 00007f50ed1bd700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f37081ca000 CR3: 00000001d0120000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 RAX: ffff8801cede8640 RBX: ffff8801aa82d800 RCX: ffffffff8581a096 Call Trace: RDX: 0000000000000000 RSI: ffffffff8581b718 RDI: 0000000000000005 RBP: ffff8801b07ee9a8 R08: ffff8801cede8640 R09: ffffed0036720032 R10: ffffed0036720034 R11: ffff8801b39001a3 R12: ffff8801aa82d8c4 ip_fragment.constprop.49+0x179/0x240 net/ipv4/ip_output.c:549 R13: 00000000fffffff2 R14: ffff8801aa82d8d0 R15: dffffc0000000000 ip_finish_output+0x6e4/0xfa0 net/ipv4/ip_output.c:315 FS: 00007fdd5cef3700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001afd92000 CR4: 00000000001406f0 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip_output+0x223/0x880 net/ipv4/ip_output.c:405 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400