[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.870635] audit: type=1400 audit(1517782533.454:6): avc: denied { map } for pid=4146 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.56' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 79.764926] audit: type=1400 audit(1517782594.348:7): avc: denied { map } for pid=4164 comm="syzkaller482162" path="/root/syzkaller482162896" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 80.486249] ================================================================== [ 80.493693] BUG: KASAN: use-after-free in pppol2tp_connect+0x1a91/0x1dd0 [ 80.500509] Read of size 8 at addr ffff8801b37b3a68 by task syzkaller482162/4262 [ 80.508012] [ 80.509631] CPU: 1 PID: 4262 Comm: syzkaller482162 Not tainted 4.15.0+ #207 [ 80.516705] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 80.526045] Call Trace: [ 80.528624] dump_stack+0x194/0x257 [ 80.532231] ? arch_local_irq_restore+0x53/0x53 [ 80.536875] ? show_regs_print_info+0x18/0x18 [ 80.541370] ? pppol2tp_connect+0x1a91/0x1dd0 [ 80.545843] print_address_description+0x73/0x250 [ 80.550663] ? pppol2tp_connect+0x1a91/0x1dd0 [ 80.555135] kasan_report+0x25b/0x340 [ 80.558914] __asan_report_load8_noabort+0x14/0x20 [ 80.563834] pppol2tp_connect+0x1a91/0x1dd0 [ 80.568143] ? pppol2tp_recv_payload_hook+0x1b0/0x1b0 [ 80.573315] ? selinux_netlbl_socket_connect+0x76/0x1b0 [ 80.578655] ? selinux_socket_connect+0x311/0x730 [ 80.583475] ? lock_downgrade+0x980/0x980 [ 80.587601] ? selinux_socket_setsockopt+0x80/0x80 [ 80.592503] ? lock_release+0xa40/0xa40 [ 80.596455] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 80.602316] ? __check_object_size+0x8b/0x530 [ 80.606794] ? __might_sleep+0x95/0x190 [ 80.610755] ? security_socket_connect+0x89/0xb0 [ 80.615509] SYSC_connect+0x213/0x4a0 [ 80.619287] ? SYSC_bind+0x410/0x410 [ 80.622978] ? handle_mm_fault+0x476/0x930 [ 80.627195] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 80.631751] ? vmacache_find+0x5f/0x280 [ 80.635703] ? up_read+0x1a/0x40 [ 80.639043] ? __do_page_fault+0x3d6/0xc90 [ 80.643261] SyS_connect+0x24/0x30 [ 80.646777] ? SyS_accept+0x30/0x30 [ 80.650379] do_fast_syscall_32+0x3ee/0xf9d [ 80.654682] ? do_int80_syscall_32+0x9d0/0x9d0 [ 80.659240] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 80.663981] ? syscall_return_slowpath+0x2ad/0x550 [ 80.668888] ? prepare_exit_to_usermode+0x340/0x340 [ 80.673882] ? retint_user+0x18/0x18 [ 80.677576] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 80.682399] entry_SYSENTER_compat+0x54/0x63 [ 80.687469] RIP: 0023:0xf7fb4c79 [ 80.690813] RSP: 002b:00000000ff8654fc EFLAGS: 00000286 ORIG_RAX: 000000000000016a [ 80.698495] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00000000205fafd2 [ 80.705736] RDX: 000000000000002e RSI: 0000000000000000 RDI: 0000000000000000 [ 80.712979] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 80.720220] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 80.727467] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 80.734734] [ 80.736335] Allocated by task 4261: [ 80.739939] save_stack+0x43/0xd0 [ 80.743362] kasan_kmalloc+0xad/0xe0 [ 80.747046] kasan_slab_alloc+0x12/0x20 [ 80.750993] kmem_cache_alloc+0x12e/0x760 [ 80.755121] sk_prot_alloc+0x65/0x2a0 [ 80.758893] sk_alloc+0x105/0x1440 [ 80.762408] inet6_create+0x44d/0x10f0 [ 80.766266] __sock_create+0x4d4/0x850 [ 80.770137] SyS_socket+0xeb/0x1d0 [ 80.773650] do_fast_syscall_32+0x3ee/0xf9d [ 80.777946] entry_SYSENTER_compat+0x54/0x63 [ 80.782323] [ 80.783923] Freed by task 4262: [ 80.787178] save_stack+0x43/0xd0 [ 80.790613] kasan_slab_free+0x71/0xc0 [ 80.794470] kmem_cache_free+0x83/0x2a0 [ 80.798417] __sk_destruct+0x628/0x920 [ 80.802278] sk_destruct+0x47/0x80 [ 80.805791] __sk_free+0xf1/0x2b0 [ 80.809214] sk_free+0x2a/0x40 [ 80.812378] l2tp_session_free+0x21c/0x2b0 [ 80.816583] pppol2tp_session_destruct+0xd4/0x110 [ 80.821398] __sk_destruct+0xfd/0x920 [ 80.825170] sk_destruct+0x47/0x80 [ 80.828689] __sk_free+0xf1/0x2b0 [ 80.832202] sk_free+0x2a/0x40 [ 80.835368] pppol2tp_put_sk+0x49/0x60 [ 80.839229] rcu_process_callbacks+0xd6c/0x17f0 [ 80.843870] __do_softirq+0x2d7/0xb85 [ 80.847652] [ 80.849255] The buggy address belongs to the object at ffff8801b37b3840 [ 80.849255] which belongs to the cache UDPv6 of size 1664 [ 80.861456] The buggy address is located 552 bytes inside of [ 80.861456] 1664-byte region [ffff8801b37b3840, ffff8801b37b3ec0) [ 80.873386] The buggy address belongs to the page: [ 80.878297] page:ffffea0006cdecc0 count:1 mapcount:0 mapping:ffff8801b37b3140 index:0x0 [ 80.886411] flags: 0x2fffc0000000100(slab) [ 80.890618] raw: 02fffc0000000100 ffff8801b37b3140 0000000000000000 0000000100000002 [ 80.898473] raw: ffffea0006c11860 ffff8801d2208c48 ffff8801d2209e40 0000000000000000 [ 80.906323] page dumped because: kasan: bad access detected [ 80.912003] [ 80.913604] Memory state around the buggy address: [ 80.918505] ffff8801b37b3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 80.925845] ffff8801b37b3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 80.933181] >ffff8801b37b3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 80.940683] ^ [ 80.947409] ffff8801b37b3a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 80.954739] ffff8801b37b3b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 80.962071] ================================================================== [ 80.969412] Disabling lock debugging due to kernel taint [ 80.974916] Kernel panic - not syncing: panic_on_warn set ... [ 80.974916] [ 80.982267] CPU: 1 PID: 4262 Comm: syzkaller482162 Tainted: G B 4.15.0+ #207 [ 80.990638] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 80.999962] Call Trace: [ 81.002525] dump_stack+0x194/0x257 [ 81.006126] ? arch_local_irq_restore+0x53/0x53 [ 81.010769] ? kasan_end_report+0x32/0x50 [ 81.015413] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 81.020140] ? vsnprintf+0x1ed/0x1900 [ 81.023915] ? pppol2tp_connect+0x1a40/0x1dd0 [ 81.028384] panic+0x1e4/0x41c [ 81.031549] ? refcount_error_report+0x214/0x214 [ 81.036283] ? add_taint+0x1c/0x50 [ 81.039792] ? add_taint+0x1c/0x50 [ 81.043304] ? pppol2tp_connect+0x1a91/0x1dd0 [ 81.047769] kasan_end_report+0x50/0x50 [ 81.051716] kasan_report+0x144/0x340 [ 81.055490] __asan_report_load8_noabort+0x14/0x20 [ 81.060390] pppol2tp_connect+0x1a91/0x1dd0 [ 81.064686] ? pppol2tp_recv_payload_hook+0x1b0/0x1b0 [ 81.069851] ? selinux_netlbl_socket_connect+0x76/0x1b0 [ 81.075190] ? selinux_socket_connect+0x311/0x730 [ 81.080004] ? lock_downgrade+0x980/0x980 [ 81.084133] ? selinux_socket_setsockopt+0x80/0x80 [ 81.089033] ? lock_release+0xa40/0xa40 [ 81.092978] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 81.099184] ? __check_object_size+0x8b/0x530 [ 81.103653] ? __might_sleep+0x95/0x190 [ 81.107606] ? security_socket_connect+0x89/0xb0 [ 81.112337] SYSC_connect+0x213/0x4a0 [ 81.116108] ? SYSC_bind+0x410/0x410 [ 81.119796] ? handle_mm_fault+0x476/0x930 [ 81.124003] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 81.128558] ? vmacache_find+0x5f/0x280 [ 81.132518] ? up_read+0x1a/0x40 [ 81.135857] ? __do_page_fault+0x3d6/0xc90 [ 81.140070] SyS_connect+0x24/0x30 [ 81.143582] ? SyS_accept+0x30/0x30 [ 81.147182] do_fast_syscall_32+0x3ee/0xf9d [ 81.151480] ? do_int80_syscall_32+0x9d0/0x9d0 [ 81.156034] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 81.160766] ? syscall_return_slowpath+0x2ad/0x550 [ 81.165668] ? prepare_exit_to_usermode+0x340/0x340 [ 81.170657] ? retint_user+0x18/0x18 [ 81.174345] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 81.179167] entry_SYSENTER_compat+0x54/0x63 [ 81.183546] RIP: 0023:0xf7fb4c79 [ 81.186880] RSP: 002b:00000000ff8654fc EFLAGS: 00000286 ORIG_RAX: 000000000000016a [ 81.194558] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00000000205fafd2 [ 81.202419] RDX: 000000000000002e RSI: 0000000000000000 RDI: 0000000000000000 [ 81.209660] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 81.216902] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 81.224145] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 81.231824] Dumping ftrace buffer: [ 81.235335] (ftrace buffer empty) [ 81.239019] Kernel Offset: disabled [ 81.242622] Rebooting in 86400 seconds..