================================================================== BUG: KASAN: slab-out-of-bounds in ip6_dst_idev include/net/ip6_fib.h:141 [inline] BUG: KASAN: slab-out-of-bounds in ip6_xmit+0x177c/0x1a00 net/ipv6/ip6_output.c:237 Read of size 8 at addr ffff8800baf8df18 by task syz-executor2/8528 CPU: 0 PID: 8528 Comm: syz-executor2 Not tainted 4.4.152-ge5c5f1f #25 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 97bef408cb84be8e ffff8800a5007548 ffffffff81e15fed ffffea0002ebe340 ffff8800baf8df18 0000000000000000 ffff8800baf8df18[ 177.931408] IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready qtaguid: iface_stat: create6(lo): no inet dev 0000000000001000 ffff8800a5007580 ffffffff8151b489 ffff8800baf8df18 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x6c/0x216 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report.cold.7+0x175/0x2f7 mm/kasan/report.c:408 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] ip6_dst_idev include/net/ip6_fib.h:141 [inline] [] ip6_xmit+0x177c/0x1a00 net/ipv6/ip6_output.c:237 qtaguid: iface_stat: create6(lo): no inet dev IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready qtaguid: iface_stat: create6(lo): no inet dev [] inet6_csk_xmit+0x245/0x490 net/ipv6/inet6_connection_sock.c:176 [] l2tp_xmit_core net/l2tp/l2tp_core.c:1084 [inline] [] l2tp_xmit_skb+0xb9c/0xe80 net/l2tp/l2tp_core.c:1179 [] pppol2tp_sendmsg+0x4e0/0x7d0 net/l2tp/l2tp_ppp.c:355 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xcc/0x110 net/socket.c:648 [] ___sys_sendmsg+0x441/0x880 net/socket.c:1975 [] __sys_sendmmsg+0x1d4/0x2e0 net/socket.c:2053 [] C_SYSC_sendmmsg net/compat.c:728 [inline] [] compat_SyS_sendmmsg+0x32/0x40 net/compat.c:725 [] do_syscall_32_irqs_on arch/x86/entry/common.c:393 [inline] [] do_fast_syscall_32+0x324/0x8b0 arch/x86/entry/common.c:460 [] sysenter_flags_fixed+0xd/0x1a Allocated by task 8528: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:616 [] kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:554 [] slab_post_alloc_hook mm/slub.c:1349 [inline] [] slab_alloc_node mm/slub.c:2615 [inline] [] slab_alloc mm/slub.c:2623 [inline] [] kmem_cache_alloc+0xbe/0x2a0 mm/slub.c:2628 [] dst_alloc+0xb5/0x1a0 net/core/dst.c:210 [] rt_dst_alloc+0x78/0x430 net/ipv4/route.c:1478 [] __mkroute_output net/ipv4/route.c:2132 [inline] [] __ip_route_output_key_hash+0x9ac/0x2380 net/ipv4/route.c:2344 [] __ip_route_output_key include/net/route.h:124 [inline] [] ip_route_output_flow+0x29/0xa0 net/ipv4/route.c:2431 [] ip_route_connect include/net/route.h:304 [inline] [] __ip4_datagram_connect+0x663/0xfe0 net/ipv4/datagram.c:51 [] __ip6_datagram_connect+0x1280/0x1960 net/ipv6/datagram.c:105 [] ip6_datagram_connect+0x2f/0x50 net/ipv6/datagram.c:223 [] inet_dgram_connect+0x117/0x200 net/ipv4/af_inet.c:550 [] SYSC_connect+0x1b8/0x300 net/socket.c:1570 [] SyS_connect+0x24/0x30 net/socket.c:1551 [] do_syscall_32_irqs_on arch/x86/entry/common.c:393 [inline] [] do_fast_syscall_32+0x324/0x8b0 arch/x86/entry/common.c:460 [] sysenter_flags_fixed+0xd/0x1a Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8800baf8ddc0 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 136 bytes to the right of 208-byte region [ffff8800baf8ddc0, ffff8800baf8de90) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.152-ge5c5f1f #25 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801d9a41800 task.stack: ffff8801d9a50000 RIP: 0010:[] [] ip6t_do_table+0xa0c/0x17e0 net/ipv6/netfilter/ip6_tables.c:409 RSP: 0018:ffff8801db3076a0 EFLAGS: 00010206 RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffffffff83527cbf RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000030 RBP: ffff8801db3078c0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffed003b660ecb R11: 0000000000000000 R12: ffff8801db300000 R13: ffff88015fdec400 R14: ffff88015fdec400 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f5755db0 CR3: 00000001bfb74000 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801db307900 ffff8801db3076d0 0000000000000246 ffffffff84a27bc0 000000000000003a ffff8800b919f97c 4aae0bb7ba5d6217 ffff8800b919f8c0 ffffffff8352fbe0 ffff8800b919f97c ffff8800b919f990 ffff8801db307900 Call Trace: [] ip6t_mangle_out net/ipv6/netfilter/ip6table_mangle.c:60 [inline] [] ip6table_mangle_hook+0x2da/0x660 net/ipv6/netfilter/ip6table_mangle.c:82 [] nf_iterate+0x182/0x210 net/netfilter/core.c:274 [] nf_hook_slow+0x1b6/0x340 net/netfilter/core.c:306 [] nf_hook_thresh include/linux/netfilter.h:187 [inline] [] NF_HOOK_THRESH.constprop.41+0x1c9/0x310 include/linux/netfilter.h:224 [] NF_HOOK include/linux/netfilter.h:249 [inline] [] mld_sendpack+0x649/0xbd0 net/ipv6/mcast.c:1646 [] mld_send_cr net/ipv6/mcast.c:1932 [inline] [] mld_ifc_timer_expire+0x3ba/0x7b0 net/ipv6/mcast.c:2432 [] call_timer_fn+0x18c/0x870 kernel/time/timer.c:1185 [] __run_timers kernel/time/timer.c:1261 [inline] [] run_timer_softirq+0x642/0xb90 kernel/time/timer.c:1444 [] __do_softirq+0x22c/0xa1a kernel/softirq.c:273 [] invoke_softirq kernel/softirq.c:350 [inline] [] irq_exit+0x10d/0x140 kernel/softirq.c:391 [] exiting_irq arch/x86/include/asm/apic.h:652 [inline] [] smp_apic_timer_interrupt+0x81/0xa0 arch/x86/kernel/apic/apic.c:926 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:741 [] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline] [] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:432 [] arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:423 [] default_idle_call+0x57/0x70 kernel/sched/idle.c:93 [] cpuidle_idle_call kernel/sched/idle.c:157 [inline] [] cpu_idle_loop kernel/sched/idle.c:253 [inline] [] cpu_startup_entry+0x6af/0x780 kernel/sched/idle.c:301 [] start_secondary+0x329/0x400 arch/x86/kernel/smpboot.c:245 Code: 00 e8 69 d5 e2 fd 49 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 38 00 0f 85 cd 0c 00 00 49 8b 5d 08 48 8d 7b 30 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 89 0b 00 00 48 83 7b 30 00 0f 84 a8 01 00 RIP [] ip6t_do_table+0xa0c/0x17e0 net/ipv6/netfilter/ip6_tables.c:409 RSP ---[ end trace 45b62495d15d0a0f ]---