================================================================== 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 ffff8801cb204f18 by task syz-executor0/15254 CPU: 1 PID: 15254 Comm: syz-executor0 Not tainted 4.4.152-ge5c5f1f #25 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 074b8cb762ca1537 ffff8801bc1af548 ffffffff81e15fed ffffea00072c8100 ffff8801cb204f18 0000000000000000 ffff8801cb204f18 0000000000001000 ffff8801bc1af580 ffffffff8151b489 ffff8801cb204f18 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 [] 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 15254: [] 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 ffff8801cb204dc0 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 [ffff8801cb204dc0, ffff8801cb204e90) The buggy address belongs to the page: BUG: unable to handle kernel paging request at ffffff70858b4977 IP: [] task_has_perm+0xdc/0x330 security/selinux/hooks.c:1522 PGD 4c0e067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3855 Comm: syz-executor4 Not tainted 4.4.152-ge5c5f1f #25 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800bac79800 task.stack: ffff8800a5e18000 RIP: 0010:[] [] task_has_perm+0xdc/0x330 security/selinux/hooks.c:1522 RSP: 0018:ffff8800a5e1f978 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 0000000000000000 RDX: 1fffffee10b1692e RSI: ffffffff81c707f2 RDI: ffffff70858b4977 RBP: ffff8800a5e1f998 R08: ffff8800bac7a128 R09: 0000000000000000 R10: 0000000000000001 R11: ffff8800bac79800 R12: ffffff70858b48ff R13: ffff8800bac79800 R14: ffff8800a5e1fc5c R15: ffff8800a5e1fc58 FS: 0000000000000000(0000) GS:ffff8801db200000(0063) knlGS:00000000084da900 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffffff70858b4977 CR3: 00000000a5d9f000 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff81c70740 ffffffff8148fcf7 dffffc0000000000 ffffffff8148fcf7 ffff8800a5e1f9b0 ffffffff81c70a93 ffffffff84605dc0 ffff8800a5e1f9e0 ffffffff81c55c83 ffff8801bc058000 0000000040000005 0000000048dffffc Call Trace: [] selinux_task_wait+0x23/0x30 security/selinux/hooks.c:3763 [] security_task_wait+0x73/0xb0 security/security.c:986 [] wait_consider_task+0x298/0x35f0 kernel/exit.c:1326 [] do_wait_thread kernel/exit.c:1439 [inline] [] do_wait+0x364/0xa30 kernel/exit.c:1510 [] SYSC_wait4 kernel/exit.c:1641 [inline] [] SyS_wait4+0x12b/0x1f0 kernel/exit.c:1606 [] C_SYSC_wait4+0x237/0x280 kernel/compat.c:543 [] compat_SyS_wait4+0x2c/0x40 kernel/compat.c:536 [] sys32_waitpid+0x25/0x30 arch/x86/ia32/sys_ia32.c:172 [] 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 Code: ff 49 8d 7c 24 78 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 42 02 00 00 48 b8 00 00 00 00 00 fc ff df <4d> 8b 64 24 78 49 8d 7c 24 04 48 89 fa 48 c1 ea 03 0f b6 14 02 RIP [] task_has_perm+0xdc/0x330 security/selinux/hooks.c:1522 RSP CR2: ffffff70858b4977 ---[ end trace a3c2ed4153afe7b4 ]---