binder: BINDER_SET_CONTEXT_MGR already set binder: 6603:6629 ioctl 40046207 0 returned -16 ================================================================== 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:27 [inline] BUG: KASAN: use-after-free in __atomic_add_unless arch/x86/include/asm/atomic.h:212 [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+0x1631/0x1930 net/l2tp/l2tp_ppp.c:755 Read of size 4 at addr ffff8801cc3f9800 by task syz-executor6/6628 CPU: 1 PID: 6628 Comm: syz-executor6 Not tainted 4.4.114-gfe09418 #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 cf20cbcf07d9c64a ffff8801bf48fb28 ffffffff81d02e6d ffffea000730fe40 ffff8801cc3f9800 0000000000000000 ffff8801cc3f9800 1ffff10037e91f82 ffff8801bf48fb60 ffffffff814fd6f3 ffff8801cc3f9800 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x73/0x260 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x285/0x370 mm/kasan/report.c:408 [] __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:27 [inline] [] __atomic_add_unless arch/x86/include/asm/atomic.h:212 [inline] [] atomic_add_unless include/linux/atomic.h:437 [inline] [] sk_dst_get include/net/sock.h:1741 [inline] [] pppol2tp_connect+0x1631/0x1930 net/l2tp/l2tp_ppp.c:755 [] SYSC_connect+0x1b6/0x310 net/socket.c:1557 [] SyS_connect+0x24/0x30 net/socket.c:1538 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Allocated by task 5962: [] 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+0xad/0xe0 mm/kasan/kasan.c:616 [] 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+0xba/0x290 mm/slub.c:2628 [] dst_alloc+0x11f/0x1a0 net/core/dst.c:210 [] rt_dst_alloc+0x78/0x430 net/ipv4/route.c:1467 [] __mkroute_output net/ipv4/route.c:2120 [inline] [] __ip_route_output_key_hash+0xa4e/0x2390 net/ipv4/route.c:2332 [] __ip_route_output_key include/net/route.h:123 [inline] [] ip_route_output_flow+0x29/0xa0 net/ipv4/route.c:2418 [] ip_route_connect include/net/route.h:303 [inline] [] __ip4_datagram_connect+0x652/0x1150 net/ipv4/datagram.c:51 [] __ip6_datagram_connect+0x1401/0x1950 net/ipv6/datagram.c:105 [] ip6_datagram_connect+0x2f/0x50 net/ipv6/datagram.c:223 [] inet_dgram_connect+0x16b/0x1f0 net/ipv4/af_inet.c:550 [] SYSC_connect+0x1b6/0x310 net/socket.c:1557 [] SyS_connect+0x24/0x30 net/socket.c:1538 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Freed by task 5982: [] 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+0xc7/0x320 mm/slub.c:2881 [] dst_destroy+0x20e/0x330 net/core/dst.c:270 [] 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+0x7f4/0x14a0 kernel/rcu/tree.c:2957 [] __do_softirq+0x227/0xa38 kernel/softirq.c:273 The buggy address belongs to the object at ffff8801cc3f9780 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 128 bytes inside of 208-byte region [ffff8801cc3f9780, ffff8801cc3f9850) The buggy address belongs to the page: BUG: unable to handle kernel paging request at fffffffb8ec6b0c8 IP: [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 PGD 420f067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 6629 Comm: syz-executor3 Not tainted 4.4.114-gfe09418 #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c1bfaf80 task.stack: ffff8800bab10000 RIP: 0010:[] [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 RSP: 0018:ffff8801db207a20 EFLAGS: 00010046 RAX: 1ffffffff0854fff RBX: 0000000000018528 RCX: ffffffff847eb540 RDX: fffffbff71d8d619 RSI: fffffffb8ec6b0c8 RDI: ffffffff842a7ff8 RBP: ffff8801db207a68 R08: 0000000000000000 R09: 0000000000000000 R10: ffffed0043fffa01 R11: 0000000000000000 R12: ffffffff842a7f20 R13: dffffc0000000000 R14: 00000000001d43f9 R15: ffffffff8148ff71 FS: 00007f9233d35700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffb8ec6b0c8 CR3: 00000000af8f0000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff8122a990 00000000ffffffff ffff8801db207a70 ffffffff81d62c1b ffff8801c1bf9820 ffffffff838443e0 00000000001d43f9 ffff8801c1bf9870 ffff8801c1bf97c0 ffff8801db207ab8 ffffffff811dd077 ffff8801db31f4c0 Call Trace: [] update_curr+0x2c7/0x6c0 kernel/sched/fair.c:882 [] enqueue_entity kernel/sched/fair.c:3511 [inline] [] enqueue_task_fair+0x313/0x2940 kernel/sched/fair.c:4694 [] enqueue_task kernel/sched/core.c:856 [inline] [] activate_task+0x148/0x270 kernel/sched/core.c:872 [] ttwu_activate kernel/sched/core.c:1734 [inline] [] ttwu_do_activate.constprop.131+0xbf/0x1e0 kernel/sched/core.c:1787 [] ttwu_queue kernel/sched/core.c:1932 [inline] [] try_to_wake_up+0x68d/0xf60 kernel/sched/core.c:2066 [] default_wake_function+0x35/0x50 kernel/sched/core.c:3491 [] autoremove_wake_function+0x13/0x90 kernel/sched/wait.c:293 [] __wake_up_common+0xb4/0x150 kernel/sched/wait.c:73 [] __wake_up+0x34/0x50 kernel/sched/wait.c:95 [] wake_up_klogd_work_func+0x56/0x80 kernel/printk/printk.c:2736 [] irq_work_run_list+0xca/0x140 kernel/irq_work.c:156 [] irq_work_tick+0x10e/0x170 kernel/irq_work.c:182 [] update_process_times+0x52/0x70 kernel/time/timer.c:1430 [] tick_sched_handle.isra.16+0x55/0xf0 kernel/time/tick-sched.c:151 [] tick_sched_timer+0x72/0x120 kernel/time/tick-sched.c:1097 [] __run_hrtimer kernel/time/hrtimer.c:1255 [inline] [] __hrtimer_run_queues+0x306/0xfe0 kernel/time/hrtimer.c:1319 [] hrtimer_interrupt+0x1a6/0x440 kernel/time/hrtimer.c:1353 [] local_apic_timer_interrupt+0x6a/0xb0 arch/x86/kernel/apic/apic.c:901 [] smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:925 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:737 [] vprintk_emit+0x55e/0x850 kernel/printk/printk.c:1832 [] vprintk+0x28/0x30 kernel/printk/printk.c:1843 [] vprintk_default+0x1d/0x30 kernel/printk/printk.c:1844 [] printk+0xb7/0xe2 kernel/printk/printk.c:1922 [] binder_ioctl+0x557/0x12e0 drivers/android/binder.c:4805 [] vfs_ioctl fs/ioctl.c:43 [inline] [] do_vfs_ioctl+0x7aa/0xee0 fs/ioctl.c:607 [] SYSC_ioctl fs/ioctl.c:622 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:613 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Code: 49 8d bc 24 d8 00 00 00 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 9e 01 00 00 49 8b 9c 24 d8 00 00 00 80 3a 00 0f 85 0a 02 00 00 <4a> 03 1c f9 48 89 d8 48 c1 e8 03 42 80 3c 28 00 0f 85 cf 01 00 RIP [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 RSP CR2: fffffffb8ec6b0c8 ---[ end trace f2bb80b0572132ed ]---