================================================================== BUG: KASAN: slab-out-of-bounds in __ipv6_addr_type+0x26c/0x290 net/ipv6/addrconf_core.c:68 Read of size 4 at addr ffff8801cfd5cbb8 by task syz-executor.1/32202 CPU: 1 PID: 32202 Comm: syz-executor.1 Not tainted 4.4.174+ #4 0000000000000000 14ceed7f90713352 ffff8800a3526da0 ffffffff81aad1a1 0000000000000000 ffffea00073f5700 ffff8801cfd5cbb8 0000000000000004 ffff8801cfd5c900 ffff8800a3526dd8 ffffffff81490120 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [] print_address_description+0x6f/0x21b mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report mm/kasan/report.c:408 [inline] [] kasan_report.cold+0x8c/0x2be mm/kasan/report.c:393 [] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:428 [] __ipv6_addr_type+0x26c/0x290 net/ipv6/addrconf_core.c:68 [] ipv6_addr_type include/net/ipv6.h:330 [inline] [] ip6_tnl_xmit2+0x2ac/0x2320 net/ipv6/ip6_tunnel.c:988 [] ip4ip6_tnl_xmit net/ipv6/ip6_tunnel.c:1134 [inline] [] ip6_tnl_xmit+0xa09/0xe00 net/ipv6/ip6_tunnel.c:1212 [] __netdev_start_xmit include/linux/netdevice.h:3750 [inline] [] netdev_start_xmit include/linux/netdevice.h:3759 [inline] [] xmit_one net/core/dev.c:2781 [inline] [] dev_hard_start_xmit+0x7c1/0x11e0 net/core/dev.c:2797 [] __dev_queue_xmit+0x164b/0x1bb0 net/core/dev.c:3229 [] dev_queue_xmit+0x18/0x20 net/core/dev.c:3263 [] neigh_direct_output+0x16/0x20 net/core/neighbour.c:1369 [] dst_neigh_output include/net/dst.h:461 [inline] [] ip_finish_output2+0x6a2/0x1280 net/ipv4/ip_output.c:213 [] ip_finish_output+0x8b2/0xc60 net/ipv4/ip_output.c:288 [] NF_HOOK_COND include/linux/netfilter.h:240 [inline] [] ip_output+0x227/0x4c0 net/ipv4/ip_output.c:362 [] dst_output include/net/dst.h:498 [inline] [] ip_local_out+0x9c/0x180 net/ipv4/ip_output.c:119 [] ip_send_skb+0x3e/0xc0 net/ipv4/ip_output.c:1453 [] udp_send_skb+0x4fd/0xc70 net/ipv4/udp.c:842 [] udp_sendmsg+0x16cf/0x1c60 net/ipv4/udp.c:1072 [] udpv6_sendmsg+0x12f2/0x24f0 net/ipv6/udp.c:1173 [] inet_sendmsg+0x202/0x4d0 net/ipv4/af_inet.c:755 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbe/0x110 net/socket.c:648 [] ___sys_sendmsg+0x769/0x890 net/socket.c:1975 [] __sys_sendmsg+0xc5/0x160 net/socket.c:2009 [] SYSC_sendmsg net/socket.c:2020 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2016 [] entry_SYSCALL_64_fastpath+0x1e/0x9a Allocated by task 32202: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack mm/kasan/kasan.c:512 [inline] [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc.part.0+0x62/0xf0 mm/kasan/kasan.c:616 [] kasan_kmalloc+0xb7/0xd0 mm/kasan/kasan.c:601 [] __kmalloc+0x141/0x330 mm/slub.c:3613 [] kmalloc include/linux/slab.h:481 [inline] [] kzalloc include/linux/slab.h:620 [inline] [] neigh_alloc net/core/neighbour.c:285 [inline] [] __neigh_create+0x1d6/0x1b30 net/core/neighbour.c:457 [] neigh_create include/net/neighbour.h:313 [inline] [] ipv4_neigh_lookup+0x52e/0x6e0 net/ipv4/route.c:464 [] dst_neigh_lookup include/net/dst.h:466 [inline] [] ip6_tnl_xmit2+0x27b/0x2320 net/ipv6/ip6_tunnel.c:982 [] ip4ip6_tnl_xmit net/ipv6/ip6_tunnel.c:1134 [inline] [] ip6_tnl_xmit+0xa09/0xe00 net/ipv6/ip6_tunnel.c:1212 [] __netdev_start_xmit include/linux/netdevice.h:3750 [inline] [] netdev_start_xmit include/linux/netdevice.h:3759 [inline] [] xmit_one net/core/dev.c:2781 [inline] [] dev_hard_start_xmit+0x7c1/0x11e0 net/core/dev.c:2797 [] __dev_queue_xmit+0x164b/0x1bb0 net/core/dev.c:3229 [] dev_queue_xmit+0x18/0x20 net/core/dev.c:3263 [] neigh_direct_output+0x16/0x20 net/core/neighbour.c:1369 [] dst_neigh_output include/net/dst.h:461 [inline] [] ip_finish_output2+0x6a2/0x1280 net/ipv4/ip_output.c:213 [] ip_finish_output+0x8b2/0xc60 net/ipv4/ip_output.c:288 [] NF_HOOK_COND include/linux/netfilter.h:240 [inline] [] ip_output+0x227/0x4c0 net/ipv4/ip_output.c:362 [] dst_output include/net/dst.h:498 [inline] [] ip_local_out+0x9c/0x180 net/ipv4/ip_output.c:119 [] ip_send_skb+0x3e/0xc0 net/ipv4/ip_output.c:1453 [] udp_send_skb+0x4fd/0xc70 net/ipv4/udp.c:842 [] udp_sendmsg+0x16cf/0x1c60 net/ipv4/udp.c:1072 [] udpv6_sendmsg+0x12f2/0x24f0 net/ipv6/udp.c:1173 [] inet_sendmsg+0x202/0x4d0 net/ipv4/af_inet.c:755 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbe/0x110 net/socket.c:648 [] ___sys_sendmsg+0x769/0x890 net/socket.c:1975 [] __sys_sendmsg+0xc5/0x160 net/socket.c:2009 [] SYSC_sendmsg net/socket.c:2020 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2016 [] entry_SYSCALL_64_fastpath+0x1e/0x9a Freed by task 30895: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack mm/kasan/kasan.c:512 [inline] [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0xb0/0x190 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kfree+0xf4/0x310 mm/slub.c:3749 [] skb_free_head net/core/skbuff.c:571 [inline] [] skb_release_data+0x2e6/0x380 net/core/skbuff.c:602 [] skb_release_all+0x4d/0x60 net/core/skbuff.c:661 [] __kfree_skb net/core/skbuff.c:675 [inline] [] consume_skb+0xf3/0x3f0 net/core/skbuff.c:748 [] netlink_broadcast_filtered+0x2b1/0x9d0 net/netlink/af_netlink.c:1486 [] netlink_broadcast+0x44/0x60 net/netlink/af_netlink.c:1508 [] nlmsg_multicast include/net/netlink.h:565 [inline] [] xfrm_nlmsg_multicast net/xfrm/xfrm_user.c:1002 [inline] [] xfrm_send_acquire+0x732/0x9a0 net/xfrm/xfrm_user.c:2841 [] km_query+0xba/0x1d0 net/xfrm/xfrm_state.c:1756 [] xfrm_state_find+0x15df/0x24c0 net/xfrm/xfrm_state.c:852 [] xfrm_tmpl_resolve_one+0x1c7/0x790 net/xfrm/xfrm_policy.c:1455 [] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1499 [inline] [] xfrm_resolve_and_create_bundle+0x210/0x1df0 net/xfrm/xfrm_policy.c:1847 [] xfrm_bundle_lookup+0x3ae/0x1080 net/xfrm/xfrm_policy.c:2094 [] flow_cache_lookup+0x8a5/0xf00 net/core/flow.c:264 [] xfrm_lookup+0x497/0xad0 net/xfrm/xfrm_policy.c:2234 [] xfrm_lookup_route+0x38/0x140 net/xfrm/xfrm_policy.c:2326 [] ip_route_output_flow+0x93/0xa0 net/ipv4/route.c:2437 [] ip_route_connect include/net/route.h:304 [inline] [] tcp_v4_connect+0x761/0x1930 net/ipv4/tcp_ipv4.c:171 [] __inet_stream_connect+0x2cf/0xc70 net/ipv4/af_inet.c:615 [] tcp_sendmsg_fastopen net/ipv4/tcp.c:1092 [inline] [] tcp_sendmsg+0x19ed/0x2ab0 net/ipv4/tcp.c:1112 [] inet_sendmsg+0x202/0x4d0 net/ipv4/af_inet.c:755 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbe/0x110 net/socket.c:648 [] SYSC_sendto net/socket.c:1678 [inline] [] SyS_sendto+0x201/0x340 net/socket.c:1646 [] entry_SYSCALL_64_fastpath+0x1e/0x9a The buggy address belongs to the object at ffff8801cfd5c900 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 696 bytes inside of 1024-byte region [ffff8801cfd5c900, ffff8801cfd5cd00) The buggy address belongs to the page: BUG: unable to handle kernel paging request at ffffffffffffffff IP: [] __list_del_entry_valid+0x86/0x1a0 lib/list_debug.c:51 PGD 2e0d067 PUD 2e0f067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 11484 Comm: syz-executor.2 Not tainted 4.4.174+ #4 task: ffff8801d40a2f80 task.stack: ffff8800b8898000 RIP: 0010:[] [] __list_del_entry_valid+0x86/0x1a0 lib/list_debug.c:51 RSP: 0000:ffff8801db607b50 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffffffffffffffff RCX: ffff88009ac2b008 RDX: 1fffffffffffffff RSI: ffffffff81aaccd4 RDI: ffff88009ac2b010 RBP: ffff8801db607b68 R08: ffff88009ac2b078 R09: 0000000000000000 R10: ffff88009ac2af80 R11: 000001d856617700 R12: 0000000000000001 R13: ffff8801db71e880 R14: dffffc0000000000 R15: ffff8801db607d48 FS: 00007f7c28e4b700(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffff CR3: 00000001d20cd000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Stack: ffff8801db71e880 dffffc0000000000 ffff88009ac2b008 ffff8801db607d70 ffffffff811c6b61 1ffffffff0506d10 ffff8801db607b90 ffffffff8123a761 ffff8801db607c50 0000000000000046 ffff88021fffd008 ffff8801db61e880 Call Trace: [] __list_del_entry include/linux/list.h:116 [inline] [] list_move_tail include/linux/list.h:181 [inline] [] detach_tasks kernel/sched/fair.c:7683 [inline] [] load_balance+0xf71/0x3050 kernel/sched/fair.c:9079 [] rebalance_domains+0x481/0x960 kernel/sched/fair.c:9697 [] run_rebalance_domains+0x329/0x490 kernel/sched/fair.c:9913 [] __do_softirq+0x226/0xa3f kernel/softirq.c:273 [] invoke_softirq kernel/softirq.c:350 [inline] [] irq_exit+0x10a/0x150 kernel/softirq.c:391 [] exiting_irq arch/x86/include/asm/apic.h:652 [inline] [] smp_apic_timer_interrupt+0x7e/0xb0 arch/x86/kernel/apic/apic.c:926 [] apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:768 Code: 66 48 b8 00 02 00 00 00 00 ad de 48 39 c3 74 78 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 80 3c 02 00 0f 85 fb 00 00 00 <48> 8b 03 48 39 c8 75 74 49 8d 78 08 48 b8 00 00 00 00 00 fc ff RIP [] __list_del_entry_valid+0x86/0x1a0 lib/list_debug.c:51 RSP CR2: ffffffffffffffff ---[ end trace 285a23cf8a585c02 ]---