================================================================== BUG: KASAN: slab-out-of-bounds in ip6_dst_idev include/net/ip6_fib.h:204 [inline] BUG: KASAN: slab-out-of-bounds in ip6_xmit+0x2002/0x23f0 net/ipv6/ip6_output.c:264 Read of size 8 at addr ffff8801b4fde6b0 by task syz-executor6/31898 CPU: 1 PID: 31898 Comm: syz-executor6 Not tainted 4.18.0-rc2+ #44 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+0x1c9/0x2b4 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 ip6_dst_idev include/net/ip6_fib.h:204 [inline] ip6_xmit+0x2002/0x23f0 net/ipv6/ip6_output.c:264 inet6_csk_xmit+0x377/0x630 net/ipv6/inet6_connection_sock.c:139 tcp_transmit_skb+0x1bf9/0x3f10 net/ipv4/tcp_output.c:1154 tcp_send_syn_data net/ipv4/tcp_output.c:3439 [inline] tcp_connect+0x2217/0x45d0 net/ipv4/tcp_output.c:3478 tcp_v4_connect+0x1949/0x1d60 net/ipv4/tcp_ipv4.c:301 __inet_stream_connect+0x964/0x1150 net/ipv4/af_inet.c:655 tcp_sendmsg_fastopen net/ipv4/tcp.c:1151 [inline] tcp_sendmsg_locked+0x2874/0x3f00 net/ipv4/tcp.c:1198 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1436 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:645 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:655 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2161 __sys_sendmsg+0x11d/0x290 net/socket.c:2199 __do_sys_sendmsg net/socket.c:2208 [inline] __se_sys_sendmsg net/socket.c:2206 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2206 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a99 Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007faeb969ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007faeb969f6d4 RCX: 0000000000455a99 RDX: 0000000020000001 RSI: 0000000020001680 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c0dff R14: 00000000004d0c68 R15: 0000000000000000 Allocated by task 30519: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3554 dst_alloc+0xbb/0x1d0 net/core/dst.c:105 rt_dst_alloc+0x102/0x520 net/ipv4/route.c:1576 __mkroute_output net/ipv4/route.c:2271 [inline] ip_route_output_key_hash_rcu+0xa4d/0x33a0 net/ipv4/route.c:2498 ip_route_output_key_hash+0x242/0x3b0 net/ipv4/route.c:2327 __ip_route_output_key include/net/route.h:124 [inline] ip_route_output_flow+0x28/0xc0 net/ipv4/route.c:2582 ip_route_connect include/net/route.h:310 [inline] tcp_v4_connect+0x7f9/0x1d60 net/ipv4/tcp_ipv4.c:219 tcp_v6_connect+0x8fb/0x2970 net/ipv6/tcp_ipv6.c:238 __inet_stream_connect+0x964/0x1150 net/ipv4/af_inet.c:655 tcp_sendmsg_fastopen net/ipv4/tcp.c:1151 [inline] tcp_sendmsg_locked+0x2874/0x3f00 net/ipv4/tcp.c:1198 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1436 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:645 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:655 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2161 __sys_sendmsg+0x11d/0x290 net/socket.c:2199 __do_sys_sendmsg net/socket.c:2208 [inline] __se_sys_sendmsg net/socket.c:2206 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2206 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 29124: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x2d0 mm/slab.c:3756 dst_destroy+0x267/0x3c0 net/core/dst.c:141 dst_destroy_rcu+0x16/0x20 net/core/dst.c:154 __rcu_reclaim kernel/rcu/rcu.h:178 [inline] rcu_do_batch kernel/rcu/tree.c:2558 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2818 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2785 [inline] rcu_process_callbacks+0xed5/0x1850 kernel/rcu/tree.c:2802 __do_softirq+0x2e8/0xb17 kernel/softirq.c:288 The buggy address belongs to the object at ffff8801b4fde600 which belongs to the cache ip_dst_cache of size 160 The buggy address is located 16 bytes to the right of 160-byte region [ffff8801b4fde600, ffff8801b4fde6a0) The buggy address belongs to the page: page:ffffea0006d3f780 count:1 mapcount:0 mapping:ffff8801d4819080 index:0xffff8801b4fde200 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0006aeedc8 ffffea0007367688 ffff8801d4819080 raw: ffff8801b4fde200 ffff8801b4fde000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801b4fde580: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff8801b4fde600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801b4fde680: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801b4fde700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801b4fde780: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================