================================================================== BUG: KASAN: global-out-of-bounds in ipv6_addr_equal include/net/ipv6.h:579 [inline] BUG: KASAN: global-out-of-bounds in xfrm6_addr_equal include/net/xfrm.h:1699 [inline] BUG: KASAN: global-out-of-bounds in __xfrm6_tunnel_spi_lookup+0x367/0x3b0 net/ipv6/xfrm6_tunnel.c:82 Read of size 8 at addr ffffffff8d5f35e0 by task syz-executor.5/12432 CPU: 0 PID: 12432 Comm: syz-executor.5 Not tainted 5.8.0-rc5-next-20200715-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 ipv6_addr_equal include/net/ipv6.h:579 [inline] xfrm6_addr_equal include/net/xfrm.h:1699 [inline] __xfrm6_tunnel_spi_lookup+0x367/0x3b0 net/ipv6/xfrm6_tunnel.c:82 xfrm6_tunnel_spi_lookup+0x8a/0x1d0 net/ipv6/xfrm6_tunnel.c:95 xfrmi6_rcv_tunnel+0xb9/0x100 net/xfrm/xfrm_interface.c:824 tunnel46_rcv+0xef/0x2b0 net/ipv6/tunnel6.c:193 ip6_protocol_deliver_rcu+0x2e8/0x1670 net/ipv6/ip6_input.c:433 ip6_input_finish+0x7f/0x160 net/ipv6/ip6_input.c:474 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip6_input+0x9c/0xd0 net/ipv6/ip6_input.c:483 ip6_mc_input+0x411/0xea0 net/ipv6/ip6_input.c:577 dst_input include/net/dst.h:449 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:76 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ipv6_rcv+0x28e/0x3c0 net/ipv6/ip6_input.c:307 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5287 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5401 process_backlog+0x28d/0x7f0 net/core/dev.c:6245 napi_poll net/core/dev.c:6690 [inline] net_rx_action+0x4a1/0xe80 net/core/dev.c:6760 __do_softirq+0x34c/0xa60 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x111/0x170 arch/x86/kernel/irq_64.c:77 do_softirq kernel/softirq.c:337 [inline] do_softirq+0x16b/0x1e0 kernel/softirq.c:324 netif_rx_ni+0x3c5/0x650 net/core/dev.c:4836 dev_loopback_xmit+0x204/0x590 net/core/dev.c:3852 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip6_finish_output2+0x108f/0x17b0 net/ipv6/ip6_output.c:81 ip6_fragment+0x1e0e/0x2490 net/ipv6/ip6_output.c:861 __ip6_finish_output net/ipv6/ip6_output.c:141 [inline] __ip6_finish_output+0x578/0xab0 net/ipv6/ip6_output.c:128 ip6_finish_output+0x34/0x1f0 net/ipv6/ip6_output.c:153 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x1db/0x520 net/ipv6/ip6_output.c:176 dst_output include/net/dst.h:443 [inline] ip6_local_out+0xaf/0x1a0 net/ipv6/output_core.c:179 ip6_send_skb+0xb7/0x340 net/ipv6/ip6_output.c:1867 ip6_push_pending_frames+0xbd/0xe0 net/ipv6/ip6_output.c:1887 rawv6_push_pending_frames net/ipv6/raw.c:613 [inline] rawv6_sendmsg+0x2add/0x38f0 net/ipv6/raw.c:956 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:817 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:671 sock_no_sendpage+0xee/0x130 net/core/sock.c:2873 kernel_sendpage net/socket.c:3652 [inline] sock_sendpage+0xe5/0x140 net/socket.c:944 pipe_to_sendpage+0x2ad/0x380 fs/splice.c:365 splice_from_pipe_feed fs/splice.c:419 [inline] __splice_from_pipe+0x3dc/0x830 fs/splice.c:543 splice_from_pipe fs/splice.c:578 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:724 do_splice_from fs/splice.c:736 [inline] do_splice+0xbb8/0x17a0 fs/splice.c:1043 __do_sys_splice fs/splice.c:1318 [inline] __se_sys_splice fs/splice.c:1300 [inline] __x64_sys_splice+0x198/0x250 fs/splice.c:1300 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cba9 Code: Bad RIP value. RSP: 002b:00007ff68a6bcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 000000000050afc0 RCX: 000000000045cba9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000078bfa0 R08: 000000000004ffe0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000c3a R14: 00000000004cf293 R15: 00007ff68a6bd6d4 The buggy address belongs to the variable: __key.5+0x20/0x40 Memory state around the buggy address: ffffffff8d5f3480: 00 00 f9 f9 f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 ffffffff8d5f3500: 00 00 f9 f9 f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 >ffffffff8d5f3580: 00 00 f9 f9 f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 ^ ffffffff8d5f3600: 00 00 f9 f9 f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 ffffffff8d5f3680: 00 00 f9 f9 f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 ==================================================================