[?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.229248] audit: type=1400 audit(1519408253.663:6): avc: denied { map } for pid=4220 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.59' (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: [ 24.503132] audit: type=1400 audit(1519408259.936:7): avc: denied { map } for pid=4234 comm="syzkaller218370" path="/root/syzkaller218370380" 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 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 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 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 [ 26.860247] ================================================================== [ 26.867678] BUG: KASAN: use-after-free in pppol2tp_connect+0x1a91/0x1dd0 [ 26.874494] Read of size 8 at addr ffff8801ae6aa968 by task syzkaller218370/4533 [ 26.881996] [ 26.883605] CPU: 0 PID: 4533 Comm: syzkaller218370 Not tainted 4.16.0-rc2+ #235 [ 26.891023] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.900351] Call Trace: [ 26.902914] dump_stack+0x194/0x24d [ 26.906516] ? arch_local_irq_restore+0x53/0x53 [ 26.911158] ? show_regs_print_info+0x18/0x18 [ 26.915632] ? pppol2tp_connect+0x1a91/0x1dd0 [ 26.920101] print_address_description+0x73/0x250 [ 26.924916] ? pppol2tp_connect+0x1a91/0x1dd0 [ 26.929393] kasan_report+0x23b/0x360 [ 26.933174] __asan_report_load8_noabort+0x14/0x20 [ 26.938077] pppol2tp_connect+0x1a91/0x1dd0 [ 26.942393] ? pppol2tp_recv_payload_hook+0x1b0/0x1b0 [ 26.947563] ? selinux_netlbl_socket_connect+0x76/0x1b0 [ 26.952900] ? selinux_socket_connect+0x311/0x730 [ 26.957715] ? lock_downgrade+0x980/0x980 [ 26.961835] ? selinux_socket_setsockopt+0x80/0x80 [ 26.966739] ? lock_release+0xa40/0xa40 [ 26.970689] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 26.976545] ? __check_object_size+0x8b/0x530 [ 26.981031] ? __might_sleep+0x95/0x190 [ 26.984992] ? security_socket_connect+0x89/0xb0 [ 26.989726] SYSC_connect+0x213/0x4a0 [ 26.993501] ? SYSC_bind+0x410/0x410 [ 26.997190] ? handle_mm_fault+0x531/0xb00 [ 27.001393] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 27.007251] ? __handle_mm_fault+0x3b60/0x3b60 [ 27.011806] ? vmacache_find+0x5f/0x280 [ 27.015759] ? up_read+0x1a/0x40 [ 27.019099] ? __do_page_fault+0x3d6/0xc90 [ 27.023314] SyS_connect+0x24/0x30 [ 27.026826] ? SyS_accept+0x30/0x30 [ 27.030426] do_fast_syscall_32+0x3ec/0xf9f [ 27.034726] ? do_int80_syscall_32+0x9c0/0x9c0 [ 27.039279] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.044016] ? syscall_return_slowpath+0x2ac/0x550 [ 27.048926] ? prepare_exit_to_usermode+0x350/0x350 [ 27.053915] ? retint_user+0x18/0x18 [ 27.057612] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.062433] entry_SYSENTER_compat+0x70/0x7f [ 27.066814] RIP: 0023:0xf7f49c99 [ 27.070150] RSP: 002b:00000000ffc7f0dc EFLAGS: 00000207 ORIG_RAX: 000000000000016a [ 27.077831] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00000000205fafd2 [ 27.085074] RDX: 000000000000002e RSI: 0000000000000167 RDI: 0000000000000018 [ 27.092322] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 27.099570] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 27.106812] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 27.114071] [ 27.115672] Allocated by task 4532: [ 27.119279] save_stack+0x43/0xd0 [ 27.122704] kasan_kmalloc+0xad/0xe0 [ 27.126389] kasan_slab_alloc+0x12/0x20 [ 27.130332] kmem_cache_alloc+0x12e/0x760 [ 27.134449] sk_prot_alloc+0x65/0x2a0 [ 27.138222] sk_alloc+0x105/0x1440 [ 27.141737] inet6_create+0x44d/0x10f0 [ 27.145593] __sock_create+0x4d4/0x850 [ 27.149451] SyS_socket+0xeb/0x1d0 [ 27.152959] do_fast_syscall_32+0x3ec/0xf9f [ 27.157251] entry_SYSENTER_compat+0x70/0x7f [ 27.161624] [ 27.163224] Freed by task 4533: [ 27.166475] save_stack+0x43/0xd0 [ 27.169903] __kasan_slab_free+0x11a/0x170 [ 27.174112] kasan_slab_free+0xe/0x10 [ 27.177883] kmem_cache_free+0x83/0x2a0 [ 27.181830] __sk_destruct+0x628/0x920 [ 27.185688] sk_destruct+0x47/0x80 [ 27.189197] __sk_free+0xf1/0x2b0 [ 27.192626] sk_free+0x2a/0x40 [ 27.195800] l2tp_session_free+0x21c/0x2b0 [ 27.200009] pppol2tp_session_destruct+0xd4/0x110 [ 27.204833] __sk_destruct+0xfd/0x920 [ 27.208602] sk_destruct+0x47/0x80 [ 27.212119] __sk_free+0xf1/0x2b0 [ 27.215551] sk_free+0x2a/0x40 [ 27.218715] pppol2tp_put_sk+0x49/0x60 [ 27.222577] rcu_process_callbacks+0xd6c/0x17f0 [ 27.227215] __do_softirq+0x2d7/0xb85 [ 27.230983] [ 27.232581] The buggy address belongs to the object at ffff8801ae6aa740 [ 27.232581] which belongs to the cache UDPv6 of size 1664 [ 27.244774] The buggy address is located 552 bytes inside of [ 27.244774] 1664-byte region [ffff8801ae6aa740, ffff8801ae6aadc0) [ 27.256702] The buggy address belongs to the page: [ 27.261602] page:ffffea0006b9aa80 count:1 mapcount:0 mapping:ffff8801ae6aa040 index:0x0 [ 27.269714] flags: 0x2fffc0000000100(slab) [ 27.273921] raw: 02fffc0000000100 ffff8801ae6aa040 0000000000000000 0000000100000002 [ 27.281773] raw: ffffea0006b815e0 ffff8801d1821848 ffff8801d189ed80 0000000000000000 [ 27.289621] page dumped because: kasan: bad access detected [ 27.295297] [ 27.296896] Memory state around the buggy address: [ 27.301794] ffff8801ae6aa800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.309125] ffff8801ae6aa880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.316456] >ffff8801ae6aa900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.323785] ^ [ 27.330508] ffff8801ae6aa980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.337840] ffff8801ae6aaa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.345166] ================================================================== [ 27.352495] Disabling lock debugging due to kernel taint [ 27.357994] Kernel panic - not syncing: panic_on_warn set ... [ 27.357994] [ 27.365374] CPU: 0 PID: 4533 Comm: syzkaller218370 Tainted: G B 4.16.0-rc2+ #235 [ 27.374094] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.383416] Call Trace: [ 27.385983] dump_stack+0x194/0x24d [ 27.389590] ? arch_local_irq_restore+0x53/0x53 [ 27.394231] ? kasan_end_report+0x32/0x50 [ 27.398350] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.403074] ? vsnprintf+0x1ed/0x1900 [ 27.406848] ? pppol2tp_connect+0x1a70/0x1dd0 [ 27.411322] panic+0x1e4/0x41c [ 27.414486] ? refcount_error_report+0x214/0x214 [ 27.419212] ? add_taint+0x1c/0x50 [ 27.422731] ? add_taint+0x1c/0x50 [ 27.426242] ? pppol2tp_connect+0x1a91/0x1dd0 [ 27.430706] kasan_end_report+0x50/0x50 [ 27.434653] kasan_report+0x148/0x360 [ 27.438429] __asan_report_load8_noabort+0x14/0x20 [ 27.443327] pppol2tp_connect+0x1a91/0x1dd0 [ 27.447625] ? pppol2tp_recv_payload_hook+0x1b0/0x1b0 [ 27.452791] ? selinux_netlbl_socket_connect+0x76/0x1b0 [ 27.458132] ? selinux_socket_connect+0x311/0x730 [ 27.462949] ? lock_downgrade+0x980/0x980 [ 27.467067] ? selinux_socket_setsockopt+0x80/0x80 [ 27.471964] ? lock_release+0xa40/0xa40 [ 27.475917] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 27.481772] ? __check_object_size+0x8b/0x530 [ 27.486248] ? __might_sleep+0x95/0x190 [ 27.490197] ? security_socket_connect+0x89/0xb0 [ 27.494924] SYSC_connect+0x213/0x4a0 [ 27.498708] ? SYSC_bind+0x410/0x410 [ 27.502406] ? handle_mm_fault+0x531/0xb00 [ 27.506619] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 27.512492] ? __handle_mm_fault+0x3b60/0x3b60 [ 27.517066] ? vmacache_find+0x5f/0x280 [ 27.521028] ? up_read+0x1a/0x40 [ 27.524370] ? __do_page_fault+0x3d6/0xc90 [ 27.528582] SyS_connect+0x24/0x30 [ 27.532090] ? SyS_accept+0x30/0x30 [ 27.535687] do_fast_syscall_32+0x3ec/0xf9f [ 27.539982] ? do_int80_syscall_32+0x9c0/0x9c0 [ 27.544534] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.549259] ? syscall_return_slowpath+0x2ac/0x550 [ 27.554158] ? prepare_exit_to_usermode+0x350/0x350 [ 27.559142] ? retint_user+0x18/0x18 [ 27.562829] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.567642] entry_SYSENTER_compat+0x70/0x7f [ 27.572018] RIP: 0023:0xf7f49c99 [ 27.575350] RSP: 002b:00000000ffc7f0dc EFLAGS: 00000207 ORIG_RAX: 000000000000016a [ 27.583025] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00000000205fafd2 [ 27.590270] RDX: 000000000000002e RSI: 0000000000000167 RDI: 0000000000000018 [ 27.597595] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 27.604836] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 27.612077] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 27.619695] Dumping ftrace buffer: [ 27.623206] (ftrace buffer empty) [ 27.626888] Kernel Offset: disabled [ 27.630486] Rebooting in 86400 seconds..