binder_alloc: 16935: binder_alloc_buf, no vma binder: 16935:16968 transaction failed 29189/-3, size 0-8 line 3141 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:243 [inline] BUG: KASAN: use-after-free in sk_dst_get include/net/sock.h:1695 [inline] BUG: KASAN: use-after-free in pppol2tp_connect+0x1580/0x18f0 net/l2tp/l2tp_ppp.c:746 Read of size 8 at addr ffff88019d1281d8 by task syz-executor1/16967 CPU: 1 PID: 16967 Comm: syz-executor1 Not tainted 4.9.100-g73fdfa3 #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff88019ca07ad0 ffffffff81eb0f09 ffffea0006744a00 ffff88019d1281d8 0000000000000000 ffff88019d1281d8 0000000000000000 ffff88019ca07b08 ffffffff8156532b ffff88019d1281d8 0000000000000008 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x6c/0x234 mm/kasan/report.c:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 [] __read_once_size include/linux/compiler.h:243 [inline] [] sk_dst_get include/net/sock.h:1695 [inline] [] pppol2tp_connect+0x1580/0x18f0 net/l2tp/l2tp_ppp.c:746 [] SYSC_connect+0x1b8/0x300 net/socket.c:1562 [] SyS_connect+0x24/0x30 net/socket.c:1543 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Allocated by task 16372: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:505 set_track mm/kasan/kasan.c:517 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:609 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:547 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xbe/0x290 mm/slub.c:2728 sk_prot_alloc+0x69/0x290 net/core/sock.c:1332 sk_alloc+0x3a/0x3a0 net/core/sock.c:1394 inet6_create+0x2d9/0xd80 net/ipv6/af_inet6.c:198 __sock_create+0x2ef/0x5f0 net/socket.c:1182 sock_create net/socket.c:1222 [inline] SYSC_socket net/socket.c:1252 [inline] SyS_socket+0xf0/0x1b0 net/socket.c:1232 do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 entry_SYSCALL_64_after_swapgs+0x5d/0xdb Freed by task 16382: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:505 set_track mm/kasan/kasan.c:517 [inline] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:582 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xbe/0x310 mm/slub.c:2980 sk_prot_free net/core/sock.c:1375 [inline] __sk_destruct+0x3b9/0x590 net/core/sock.c:1455 sk_destruct+0x63/0x80 net/core/sock.c:1463 __sk_free+0x15e/0x220 net/core/sock.c:1471 sk_free+0x2b/0x40 net/core/sock.c:1482 sock_put include/net/sock.h:1588 [inline] sk_common_release+0x1fa/0x300 net/core/sock.c:2757 udp_lib_close+0x15/0x20 include/net/udp.h:203 inet_release+0xff/0x1d0 net/ipv4/af_inet.c:434 inet6_release+0x50/0x70 net/ipv6/af_inet6.c:440 sock_release+0x96/0x1c0 net/socket.c:599 sock_close+0x16/0x20 net/socket.c:1046 __fput+0x263/0x700 fs/file_table.c:208 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x10c/0x180 kernel/task_work.c:116 exit_task_work include/linux/task_work.h:21 [inline] do_exit+0x9e1/0x27c0 kernel/exit.c:837 do_group_exit+0x111/0x340 kernel/exit.c:941 get_signal+0x4cf/0x1450 kernel/signal.c:2317 do_signal+0x87/0x19f0 arch/x86/kernel/signal.c:807 exit_to_usermode_loop+0xe1/0x120 arch/x86/entry/common.c:157 prepare_exit_to_usermode arch/x86/entry/common.c:191 [inline] syscall_return_slowpath arch/x86/entry/common.c:260 [inline] do_syscall_64+0x364/0x490 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_swapgs+0x5d/0xdb The buggy address belongs to the object at ffff88019d128000 which belongs to the cache UDPv6 of size 1496 The buggy address is located 472 bytes inside of 1496-byte region [ffff88019d128000, ffff88019d1285d8) The buggy address belongs to the page: page:ffffea0006744a00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 flags: 0x8000000000004080(slab|head) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88019d128080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88019d128100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88019d128180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88019d128200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88019d128280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================