================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:218 [inline] BUG: KASAN: use-after-free in atomic_read arch/x86/include/asm/atomic.h:26 [inline] BUG: KASAN: use-after-free in __atomic_add_unless arch/x86/include/asm/atomic.h:211 [inline] BUG: KASAN: use-after-free in atomic_add_unless include/linux/atomic.h:437 [inline] BUG: KASAN: use-after-free in sk_dst_get include/net/sock.h:1741 [inline] BUG: KASAN: use-after-free in pppol2tp_connect+0x172e/0x1910 net/l2tp/l2tp_ppp.c:762 Read of size 4 at addr ffff8801cbd88300 by task syz-executor6/8671 CPU: 1 PID: 8671 Comm: syz-executor6 Not tainted 4.4.146-g1396226 #15 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 2216ba987241caa1 ffff8801bd14fab0 ffffffff81e1292d ffffea00072f6200 ffff8801cbd88300 0000000000000000 ffff8801cbd88300 ffff8801cbd88280 ffff8801bd14fae8 ffffffff81517f76 ffff8801cbd88300 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 binder: BINDER_SET_CONTEXT_MGR already set binder: 8690:8693 ioctl 40046207 0 returned -16 binder: 8690:8693 unknown command 536871424 binder: 8690:8693 ioctl c0306201 20000440 returned -22 [] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:428 [] __read_once_size include/linux/compiler.h:218 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] __atomic_add_unless arch/x86/include/asm/atomic.h:211 [inline] [] atomic_add_unless include/linux/atomic.h:437 [inline] [] sk_dst_get include/net/sock.h:1741 [inline] [] pppol2tp_connect+0x172e/0x1910 net/l2tp/l2tp_ppp.c:762 [] SYSC_connect+0x1b8/0x300 net/socket.c:1558 binder: BINDER_SET_CONTEXT_MGR already set binder: 8701:8704 ioctl 40046207 0 returned -16 binder: 8701:8704 unknown command 536871424 binder: 8701:8704 ioctl c0306201 20000440 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 8708:8711 ioctl 40046207 0 returned -16 binder: 8708:8711 unknown command 536871424 binder: 8708:8711 ioctl c0306201 20000440 returned -22 [] SyS_connect+0x24/0x30 net/socket.c:1539 [] 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 8648: [] 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 binder: BINDER_SET_CONTEXT_MGR already set binder: 8716:8717 ioctl 40046207 0 returned -16 binder: 8716:8717 unknown command 536871424 binder: 8716:8717 ioctl c0306201 20000440 returned -22 [] 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:1558 [] SyS_connect+0x24/0x30 net/socket.c:1539 [] 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 8653: [] 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_slab_free+0x72/0xc0 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] [] kmem_cache_free+0xbe/0x340 mm/slub.c:2881 [] dst_destroy.part.6+0x1f5/0x330 net/core/dst.c:270 [] dst_destroy net/core/dst.c:252 [inline] [] dst_destroy_rcu+0x15/0x40 net/core/dst.c:295 [] __rcu_reclaim kernel/rcu/rcu.h:118 [inline] [] rcu_do_batch kernel/rcu/tree.c:2705 [inline] [] invoke_rcu_callbacks kernel/rcu/tree.c:2973 [inline] [] __rcu_process_callbacks kernel/rcu/tree.c:2940 [inline] [] rcu_process_callbacks+0x927/0x1440 kernel/rcu/tree.c:2957 [] __do_softirq+0x22c/0xa1a kernel/softirq.c:273 The buggy address belongs to the object at ffff8801cbd88280 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 128 bytes inside of 208-byte region [ffff8801cbd88280, ffff8801cbd88350) The buggy address belongs to the page: BUG: unable to handle kernel paging request at fffffffd6d456880 IP: [] cpuacct_charge+0x155/0x380 kernel/sched/cpuacct.c:247 PGD 440f067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3798 Comm: syz-fuzzer Not tainted 4.4.146-g1396226 #15 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801d9b78000 task.stack: ffff8801ca370000 RIP: 0010:[] [] cpuacct_charge+0x155/0x380 kernel/sched/cpuacct.c:247 RSP: 0018:ffff8801ca377ca0 EFLAGS: 00010046 RAX: 1ffffffff089521f RBX: 00000000000185a8 RCX: ffffffff84a16600 RDX: fffffbffada8ad10 RSI: fffffffd6d456880 RDI: ffffffff844a90f8 RBP: ffff8801ca377ce0 R08: ffff8801d9b78978 R09: 0000000000000001 R10: 0000000000000001 R11: ffff8801d9b78000 R12: ffffffff844a9020 R13: dffffc0000000000 R14: 0000000002a93400 R15: ffffffffbd148050 FS: 000000c42008aae8(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffd6d456880 CR3: 00000001d120e000 CR4: 00000000001606f0 Stack: ffffffff81226e50 0000000000000046 0000000000000003 ffff8801d4f0c860 ffff8801d4f0c800 0000000002a93400 ffff8801d4f0c8b0 0000000000000000 ffff8801ca377d28 ffffffff811db4c9 0000000000000005 ffff8801db31f558 Call Trace: [] update_curr+0x2c9/0x6d0 kernel/sched/fair.c:882 [] enqueue_entity kernel/sched/fair.c:3512 [inline] [] enqueue_task_fair+0x2fa/0x2790 kernel/sched/fair.c:4695 [] enqueue_task kernel/sched/core.c:858 [inline] [] activate_task+0x14d/0x280 kernel/sched/core.c:874 [] ttwu_activate kernel/sched/core.c:1736 [inline] [] ttwu_do_activate.constprop.109+0xbf/0x1e0 kernel/sched/core.c:1789 [] ttwu_queue kernel/sched/core.c:1934 [inline] [] try_to_wake_up+0x660/0xf00 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:3332 [inline] [] zap_other_threads+0x123/0x170 kernel/signal.c:1213 [] do_group_exit+0x26c/0x330 kernel/exit.c:880 [] SYSC_exit_group kernel/exit.c:896 [inline] [] SyS_exit_group+0x1d/0x20 kernel/exit.c:894 [] entry_SYSCALL_64_fastpath+0x22/0x9e Code: 49 8d bc 24 d8 00 00 00 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 c4 01 00 00 49 8b 9c 24 d8 00 00 00 80 3a 00 0f 85 8f 01 00 00 <4a> 03 1c f9 48 89 d8 48 c1 e8 03 42 80 3c 28 00 0f 85 be 01 00 RIP [] cpuacct_charge+0x155/0x380 kernel/sched/cpuacct.c:247 RSP CR2: fffffffd6d456880 ---[ end trace c7218c83f4638778 ]---