================================================================== BUG: KASAN: slab-out-of-bounds in __ipv6_addr_type+0x26c/0x290 net/ipv6/addrconf_core.c:68 Read of size 4 at addr ffff8801da4d0bb8 by task syz-executor.3/26292 CPU: 1 PID: 26292 Comm: syz-executor.3 Not tainted 4.4.174+ #4 0000000000000000 febce124ed17d4f0 ffff88008fbaeda0 ffffffff81aad1a1 0000000000000000 ffffea0007693400 ffff8801da4d0bb8 0000000000000004 ffff8801da4d0900 ffff88008fbaedd8 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 26292: [] 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 2135: [] 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 [] kvfree+0x4d/0x60 mm/util.c:323 [] xt_free_table_info+0x14b/0x1b0 net/netfilter/x_tables.c:1019 [] __do_replace+0x413/0x650 net/ipv6/netfilter/ip6_tables.c:1260 [] do_replace net/ipv6/netfilter/ip6_tables.c:1316 [inline] [] do_ip6t_set_ctl+0x2e1/0x450 net/ipv6/netfilter/ip6_tables.c:1863 [] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:909 [inline] [] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:893 [] tcp_setsockopt net/ipv4/tcp.c:2643 [inline] [] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2637 [] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2663 [] SYSC_setsockopt net/socket.c:1780 [inline] [] SyS_setsockopt+0x159/0x240 net/socket.c:1759 [] entry_SYSCALL_64_fastpath+0x1e/0x9a The buggy address belongs to the object at ffff8801da4d0900 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 696 bytes inside of 1024-byte region [ffff8801da4d0900, ffff8801da4d0d00) The buggy address belongs to the page: BUG: unable to handle kernel paging request at fffffbfff7cc7d88 IP: [] cpuacct_charge+0x145/0x360 kernel/sched/cpuacct.c:247 PGD 21ff68067 PUD 21ff67067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 2141 Comm: syz-executor.5 Not tainted 4.4.174+ #4 task: ffff8801d5d70000 task.stack: ffff8801c2350000 RIP: 0010:[] [] cpuacct_charge+0x145/0x360 kernel/sched/cpuacct.c:247 RSP: 0018:ffff8801c2357898 EFLAGS: 00010046 RAX: 1ffffffff05d2a33 RBX: 00000000000181a8 RCX: ffffffffbe63ec40 RDX: fffffbfff7cc7d88 RSI: ffffffff81b0abec RDI: ffffffff82e95198 RBP: ffff8801c23578d8 R08: 0000000000000005 R09: ffff8801d5d709b0 R10: ffffffff82836880 R11: 0000000000000000 R12: ffffffff82e950c0 R13: dffffc0000000000 R14: 0000000005bb3b95 R15: 0000000007693400 FS: 0000000000000000(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffbfff7cc7d88 CR3: 00000000a8a13000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff811f4630 0000000000000046 0000000000000003 ffff8800b8a10060 ffff8800b8a10000 0000000005bb3b95 ffff8800b8a100b0 0000000000000000 ffff8801c2357920 ffffffff8117c4a3 ffffffff83a7f5d0 ffff8801d5d708c8 Call Trace: [] update_curr+0x2c3/0x6e0 kernel/sched/fair.c:882 [] enqueue_entity kernel/sched/fair.c:3512 [inline] [] enqueue_task_fair+0x10f/0xb6c0 kernel/sched/fair.c:4711 [] enqueue_task kernel/sched/core.c:858 [inline] [] activate_task+0x154/0x280 kernel/sched/core.c:874 [] ttwu_activate kernel/sched/core.c:1736 [inline] [] ttwu_do_activate.constprop.0+0xbe/0x1e0 kernel/sched/core.c:1789 [] ttwu_queue kernel/sched/core.c:1934 [inline] [] try_to_wake_up+0x6d1/0x1110 kernel/sched/core.c:2068 [] wake_up_state+0x10/0x20 kernel/sched/core.c:2148 [] signal_wake_up_state+0x44/0x70 kernel/signal.c:659 [] signal_wake_up include/linux/sched.h:3337 [inline] [] complete_signal+0x632/0x7b0 kernel/signal.c:942 [] __send_signal+0x597/0x12a0 kernel/signal.c:1080 [] send_signal+0x49/0xc0 kernel/signal.c:1096 [] do_send_sig_info+0xa4/0x130 kernel/signal.c:1151 [] send_sig_info+0x36/0x60 kernel/signal.c:1436 [] zap_pid_ns_processes+0x1cb/0x640 kernel/pid_namespace.c:223 [] find_child_reaper kernel/exit.c:485 [inline] [] forget_original_parent kernel/exit.c:571 [inline] [] exit_notify kernel/exit.c:607 [inline] [] do_exit+0x236f/0x2c60 kernel/exit.c:784 [] do_group_exit+0x111/0x300 kernel/exit.c:893 [] SYSC_exit_group kernel/exit.c:904 [inline] [] SyS_exit_group+0x1d/0x20 kernel/exit.c:902 [] entry_SYSCALL_64_fastpath+0x1e/0x9a Code: 89 ca 48 c1 ea 03 4c 01 ea 49 8d bc 24 d8 00 00 00 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 ba 01 00 00 49 8b 9c 24 d8 00 00 00 <80> 3a 00 0f 85 8c 01 00 00 4a 03 1c fd 40 4c 1a 83 48 89 d8 48 RIP [] cpuacct_charge+0x145/0x360 kernel/sched/cpuacct.c:247 RSP CR2: fffffbfff7cc7d88 ---[ end trace 7b85a158047d40b5 ]---