================================================================== BUG: KASAN: slab-out-of-bounds in ip6_tnl_xmit2+0x229d/0x2350 net/ipv6/ip6_tunnel.c:987 Read of size 16 at addr ffff8800b61d2230 by task syz-executor770/2072 CPU: 1 PID: 2072 Comm: syz-executor770 Not tainted 4.4.164+ #123 0000000000000000 075b6e778f4def9e ffff8801d49feca0 ffffffff81aa5d4d ffffea0002d87400 ffff8800b61d2230 0000000000000000 ffff8800b61d2238 ffff8801d9fb9100 ffff8801d49fecd8 ffffffff8148b2eb ffff8800b61d2230 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x6c/0x217 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report.cold.6+0x175/0x2f7 mm/kasan/report.c:408 [] __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:439 [] ip6_tnl_xmit2+0x229d/0x2350 net/ipv6/ip6_tunnel.c:987 [] ip4ip6_tnl_xmit net/ipv6/ip6_tunnel.c:1134 [inline] [] ip6_tnl_xmit+0x9f9/0xe10 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+0x7bd/0x11c0 net/core/dev.c:2797 [] __dev_queue_xmit+0x16f5/0x1c30 net/core/dev.c:3229 [] dev_queue_xmit+0x17/0x20 net/core/dev.c:3263 [] neigh_direct_output+0x15/0x20 net/core/neighbour.c:1369 [] dst_neigh_output include/net/dst.h:461 [inline] [] ip_finish_output2+0x8f0/0x1100 net/ipv4/ip_output.c:213 [] ip_finish_output+0x882/0xc00 net/ipv4/ip_output.c:288 [] NF_HOOK_COND include/linux/netfilter.h:240 [inline] [] ip_output+0x219/0x4c0 net/ipv4/ip_output.c:362 [] dst_output include/net/dst.h:498 [inline] [] ip_local_out+0x9b/0x180 net/ipv4/ip_output.c:119 [] ip_send_skb+0x3c/0xc0 net/ipv4/ip_output.c:1453 [] udp_send_skb+0x503/0xc70 net/ipv4/udp.c:842 [] udp_sendmsg+0x16c9/0x1c70 net/ipv4/udp.c:1072 [] udpv6_sendmsg+0x12cd/0x24c0 net/ipv6/udp.c:1173 [] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:755 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbb/0x110 net/socket.c:648 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1975 [] __sys_sendmsg+0xd6/0x190 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 2072: [] 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.1+0x62/0xf0 mm/kasan/kasan.c:616 [] kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:601 [] __kmalloc+0x13d/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/0x1b20 net/core/neighbour.c:457 [] neigh_create include/net/neighbour.h:313 [inline] [] ipv4_neigh_lookup+0x4de/0x700 net/ipv4/route.c:464 [] dst_neigh_lookup include/net/dst.h:466 [inline] [] ip6_tnl_xmit2+0x28a/0x2350 net/ipv6/ip6_tunnel.c:982 [] ip4ip6_tnl_xmit net/ipv6/ip6_tunnel.c:1134 [inline] [] ip6_tnl_xmit+0x9f9/0xe10 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+0x7bd/0x11c0 net/core/dev.c:2797 [] __dev_queue_xmit+0x16f5/0x1c30 net/core/dev.c:3229 [] dev_queue_xmit+0x17/0x20 net/core/dev.c:3263 [] neigh_direct_output+0x15/0x20 net/core/neighbour.c:1369 [] dst_neigh_output include/net/dst.h:461 [inline] [] ip_finish_output2+0x8f0/0x1100 net/ipv4/ip_output.c:213 [] ip_finish_output+0x882/0xc00 net/ipv4/ip_output.c:288 [] NF_HOOK_COND include/linux/netfilter.h:240 [inline] [] ip_output+0x219/0x4c0 net/ipv4/ip_output.c:362 [] dst_output include/net/dst.h:498 [inline] [] ip_local_out+0x9b/0x180 net/ipv4/ip_output.c:119 [] ip_send_skb+0x3c/0xc0 net/ipv4/ip_output.c:1453 [] udp_send_skb+0x503/0xc70 net/ipv4/udp.c:842 [] udp_sendmsg+0x16c9/0x1c70 net/ipv4/udp.c:1072 [] udpv6_sendmsg+0x12cd/0x24c0 net/ipv6/udp.c:1173 [] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:755 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbb/0x110 net/socket.c:648 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1975 [] __sys_sendmsg+0xd6/0x190 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 504: [] 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+0xac/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+0x2e8/0x380 net/core/skbuff.c:602 [] skb_release_all+0x4a/0x60 net/core/skbuff.c:661 [] __kfree_skb net/core/skbuff.c:675 [inline] [] kfree_skb+0xf7/0x3f0 net/core/skbuff.c:696 [] netlink_unicast_kernel net/netlink/af_netlink.c:1280 [inline] [] netlink_unicast+0x623/0x700 net/netlink/af_netlink.c:1303 [] netlink_sendmsg+0x694/0xc30 net/netlink/af_netlink.c:1859 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbb/0x110 net/socket.c:648 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1975 [] __sys_sendmsg+0xd6/0x190 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 The buggy address belongs to the object at ffff8800b61d1f80 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 688 bytes inside of 1024-byte region [ffff8800b61d1f80, ffff8800b61d2380) The buggy address belongs to the page: double fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 2072 Comm: syz-executor770 Not tainted 4.4.164+ #123 task: ffff8801d4d28000 task.stack: ffff8801d49f8000 RIP: 0010:[] [] dump_page_badflags+0x4/0x70 mm/debug.c:84 RSP: 0018:ffff880100000000 EFLAGS: 00010046 RAX: ffff8801d4d28000 RBX: ffffea0002d87400 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff82891020 RDI: ffffea0002d87400 RBP: ffff880100000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: ffffffff83fd7174 R12: ffffffff82891020 R13: ffffffff82891020 R14: ffff8800b61d1f80 R15: ffff8800b61d2380 FS: 000000000096d880(0063) GS:ffff8801db700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8800fffffff8 CR3: 00000001d5b81000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: Call Trace: Code: e8 3e 48 69 c0 80 06 00 00 f0 48 ff 80 28 f8 18 83 5b 5d c3 48 89 df e8 4b 97 05 00 eb dd 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 <41> 57 41 56 41 55 49 89 f5 41 54 49 89 d4 53 48 89 fb 48 83 ec RIP [] dump_page_badflags+0x4/0x70 mm/debug.c:84 RSP ---[ end trace 6bd42102a79c8339 ]---