[....] Starting enhanced syslogd: rsyslogd[ 16.499186] audit: type=1400 audit(1520657498.804:5): avc: denied { syslog } for pid=4078 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?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. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.670977] audit: type=1400 audit(1520657501.976:6): avc: denied { map } for pid=4218 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 Warning: Permanently added '10.128.0.54' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 26.010842] audit: type=1400 audit(1520657508.316:7): avc: denied { map } for pid=4232 comm="syzkaller278287" path="/root/syzkaller278287145" 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 [ 26.019496] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: File exists RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 26.303957] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument [ 26.678190] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 26.684340] 8021q: adding VLAN 0 to HW filter on device bond0 [ 26.724372] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready executing program [ 26.764609] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 26.774611] ================================================================== [ 26.782076] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 26.788206] Read of size 8 at addr ffff8801cc101918 by task syzkaller278287/4233 [ 26.795707] [ 26.797311] CPU: 1 PID: 4233 Comm: syzkaller278287 Not tainted 4.16.0-rc4+ #260 [ 26.804725] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.814055] Call Trace: [ 26.816619] dump_stack+0x194/0x24d [ 26.820221] ? arch_local_irq_restore+0x53/0x53 [ 26.824861] ? show_regs_print_info+0x18/0x18 [ 26.829354] ? ip6_xmit+0x1f76/0x2260 [ 26.833144] print_address_description+0x73/0x250 [ 26.837970] ? ip6_xmit+0x1f76/0x2260 [ 26.841756] kasan_report+0x23c/0x360 [ 26.845551] __asan_report_load8_noabort+0x14/0x20 [ 26.850470] ip6_xmit+0x1f76/0x2260 [ 26.854105] ? ip6_finish_output2+0x23d0/0x23d0 [ 26.858752] ? fl6_update_dst+0x127/0x2b0 [ 26.862877] ? inet6_csk_route_socket+0x691/0xe80 [ 26.867696] ? trace_hardirqs_off+0x10/0x10 [ 26.871992] ? lock_acquire+0x1d5/0x580 [ 26.875949] ? lock_acquire+0x1d5/0x580 [ 26.879902] ? inet6_csk_xmit+0x114/0x580 [ 26.884039] ? trace_hardirqs_off+0x10/0x10 [ 26.888345] ? lock_release+0xa40/0xa40 [ 26.892308] inet6_csk_xmit+0x2fc/0x580 [ 26.896263] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.900995] ? __sk_dst_check+0x1a5/0x380 [ 26.905127] ? sock_kzfree_s+0x60/0x60 [ 26.909003] l2tp_xmit_skb+0x105f/0x1410 [ 26.913059] ? l2tp_session_create+0xb80/0xb80 [ 26.917621] ? sock_wmalloc+0x15d/0x1d0 [ 26.921573] ? iov_iter_advance+0x13f0/0x13f0 [ 26.926056] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.930369] pppol2tp_sendmsg+0x470/0x670 [ 26.934509] ? selinux_socket_sendmsg+0x36/0x40 [ 26.939156] ? pppol2tp_getsockopt+0x900/0x900 [ 26.943713] sock_sendmsg+0xca/0x110 [ 26.947401] SYSC_sendto+0x361/0x5c0 [ 26.951091] ? SYSC_connect+0x4a0/0x4a0 [ 26.955055] ? __do_page_fault+0x5f7/0xc90 [ 26.959278] ? lock_downgrade+0x980/0x980 [ 26.963405] ? handle_mm_fault+0x465/0xb10 [ 26.967611] ? check_same_owner+0x320/0x320 [ 26.971928] ? mm_fault_error+0x2c0/0x2c0 [ 26.976062] ? move_addr_to_kernel+0x60/0x60 [ 26.980459] SyS_sendto+0x40/0x50 [ 26.983899] ? SyS_getpeername+0x30/0x30 [ 26.987945] do_syscall_64+0x281/0x940 [ 26.991814] ? __do_page_fault+0xc90/0xc90 [ 26.996035] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.000773] ? syscall_return_slowpath+0x550/0x550 [ 27.005683] ? syscall_return_slowpath+0x2ac/0x550 [ 27.010600] ? prepare_exit_to_usermode+0x350/0x350 [ 27.015615] ? retint_user+0x18/0x18 [ 27.019322] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.024159] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.029325] RIP: 0033:0x441849 [ 27.032489] RSP: 002b:00007ffce3574ed8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.040172] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441849 [ 27.047417] RDX: 0000000000000000 RSI: 0000000020de7000 RDI: 0000000000000004 [ 27.054660] RBP: 00000000004a3435 R08: 000000002064eff0 R09: 0000000000000080 [ 27.061904] R10: c3fe68eda9554f8b R11: 0000000000000216 R12: 00007ffce3574fb0 [ 27.069148] R13: 0000000000402690 R14: 0000000000000000 R15: 0000000000000000 [ 27.076429] [ 27.078047] Allocated by task 4230: [ 27.081652] save_stack+0x43/0xd0 [ 27.085077] kasan_kmalloc+0xad/0xe0 [ 27.088763] kasan_slab_alloc+0x12/0x20 [ 27.092726] kmem_cache_alloc+0x12e/0x760 [ 27.096860] dst_alloc+0x11f/0x1a0 [ 27.100374] rt_dst_alloc+0xe9/0x4e0 [ 27.104073] ip_route_output_key_hash_rcu+0xa59/0x2fe0 [ 27.109347] ip_route_output_key_hash+0x20b/0x370 [ 27.114166] __ip4_datagram_connect+0xa67/0x1240 [ 27.118899] __ip6_datagram_connect+0x749/0x12d0 [ 27.123635] ip6_datagram_connect+0x2f/0x50 [ 27.127940] inet_dgram_connect+0x16b/0x1f0 [ 27.132333] SYSC_connect+0x213/0x4a0 [ 27.136115] SyS_connect+0x24/0x30 [ 27.139630] do_syscall_64+0x281/0x940 [ 27.143491] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.148665] [ 27.150266] Freed by task 0: [ 27.153266] save_stack+0x43/0xd0 [ 27.156697] __kasan_slab_free+0x11a/0x170 [ 27.160907] kasan_slab_free+0xe/0x10 [ 27.164689] kmem_cache_free+0x83/0x2a0 [ 27.168651] dst_destroy+0x257/0x370 [ 27.172354] dst_destroy_rcu+0x16/0x20 [ 27.176230] rcu_process_callbacks+0xd6c/0x17f0 [ 27.180882] __do_softirq+0x2d7/0xb85 [ 27.184661] [ 27.186282] The buggy address belongs to the object at ffff8801cc101900 [ 27.186282] which belongs to the cache ip_dst_cache of size 160 [ 27.199020] The buggy address is located 24 bytes inside of [ 27.199020] 160-byte region [ffff8801cc101900, ffff8801cc1019a0) [ 27.210797] The buggy address belongs to the page: [ 27.215713] page:ffffea0007304040 count:1 mapcount:0 mapping:ffff8801cc101000 index:0xffff8801cc101000 [ 27.225161] flags: 0x2fffc0000000100(slab) [ 27.229389] raw: 02fffc0000000100 ffff8801cc101000 ffff8801cc101000 0000000100000008 [ 27.237270] raw: ffff8801d5b9d938 ffffea0006c7a7a0 ffff8801d5b9c4c0 0000000000000000 [ 27.245135] page dumped because: kasan: bad access detected [ 27.250844] [ 27.252454] Memory state around the buggy address: [ 27.257385] ffff8801cc101800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.264736] ffff8801cc101880: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 27.272080] >ffff8801cc101900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.279413] ^ [ 27.283532] ffff8801cc101980: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 27.290863] ffff8801cc101a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.298192] ================================================================== [ 27.305519] Disabling lock debugging due to kernel taint [ 27.310970] Kernel panic - not syncing: panic_on_warn set ... [ 27.310970] [ 27.318320] CPU: 1 PID: 4233 Comm: syzkaller278287 Tainted: G B 4.16.0-rc4+ #260 [ 27.327049] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.336382] Call Trace: [ 27.338948] dump_stack+0x194/0x24d [ 27.342548] ? arch_local_irq_restore+0x53/0x53 [ 27.347193] ? kasan_end_report+0x32/0x50 [ 27.351314] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.356041] ? vsnprintf+0x1ed/0x1900 [ 27.359815] ? ip6_xmit+0x1eb0/0x2260 [ 27.363589] panic+0x1e4/0x41c [ 27.366752] ? refcount_error_report+0x214/0x214 [ 27.371479] ? add_taint+0x1c/0x50 [ 27.374987] ? add_taint+0x1c/0x50 [ 27.378500] ? ip6_xmit+0x1f76/0x2260 [ 27.382271] kasan_end_report+0x50/0x50 [ 27.386215] kasan_report+0x149/0x360 [ 27.390172] __asan_report_load8_noabort+0x14/0x20 [ 27.395083] ip6_xmit+0x1f76/0x2260 [ 27.398687] ? ip6_finish_output2+0x23d0/0x23d0 [ 27.403333] ? fl6_update_dst+0x127/0x2b0 [ 27.407461] ? inet6_csk_route_socket+0x691/0xe80 [ 27.412275] ? trace_hardirqs_off+0x10/0x10 [ 27.416566] ? lock_acquire+0x1d5/0x580 [ 27.420519] ? lock_acquire+0x1d5/0x580 [ 27.424469] ? inet6_csk_xmit+0x114/0x580 [ 27.428589] ? trace_hardirqs_off+0x10/0x10 [ 27.432885] ? lock_release+0xa40/0xa40 [ 27.436839] inet6_csk_xmit+0x2fc/0x580 [ 27.440785] ? inet6_csk_update_pmtu+0x160/0x160 [ 27.445512] ? __sk_dst_check+0x1a5/0x380 [ 27.449630] ? sock_kzfree_s+0x60/0x60 [ 27.453497] l2tp_xmit_skb+0x105f/0x1410 [ 27.457533] ? l2tp_session_create+0xb80/0xb80 [ 27.462089] ? sock_wmalloc+0x15d/0x1d0 [ 27.466053] ? iov_iter_advance+0x13f0/0x13f0 [ 27.470540] ? pppol2tp_sendmsg+0x41b/0x670 [ 27.474849] pppol2tp_sendmsg+0x470/0x670 [ 27.478979] ? selinux_socket_sendmsg+0x36/0x40 [ 27.483630] ? pppol2tp_getsockopt+0x900/0x900 [ 27.488190] sock_sendmsg+0xca/0x110 [ 27.491883] SYSC_sendto+0x361/0x5c0 [ 27.495571] ? SYSC_connect+0x4a0/0x4a0 [ 27.499522] ? __do_page_fault+0x5f7/0xc90 [ 27.503741] ? lock_downgrade+0x980/0x980 [ 27.507874] ? handle_mm_fault+0x465/0xb10 [ 27.512088] ? check_same_owner+0x320/0x320 [ 27.516394] ? mm_fault_error+0x2c0/0x2c0 [ 27.520517] ? move_addr_to_kernel+0x60/0x60 [ 27.524901] SyS_sendto+0x40/0x50 [ 27.528330] ? SyS_getpeername+0x30/0x30 [ 27.532368] do_syscall_64+0x281/0x940 [ 27.536238] ? __do_page_fault+0xc90/0xc90 [ 27.540454] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.545192] ? syscall_return_slowpath+0x550/0x550 [ 27.550099] ? syscall_return_slowpath+0x2ac/0x550 [ 27.555001] ? prepare_exit_to_usermode+0x350/0x350 [ 27.560001] ? retint_user+0x18/0x18 [ 27.563702] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.568537] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.573705] RIP: 0033:0x441849 [ 27.576879] RSP: 002b:00007ffce3574ed8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.584562] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441849 [ 27.591826] RDX: 0000000000000000 RSI: 0000000020de7000 RDI: 0000000000000004 [ 27.599082] RBP: 00000000004a3435 R08: 000000002064eff0 R09: 0000000000000080 [ 27.606865] R10: c3fe68eda9554f8b R11: 0000000000000216 R12: 00007ffce3574fb0 [ 27.614112] R13: 0000000000402690 R14: 0000000000000000 R15: 0000000000000000 [ 27.621869] Dumping ftrace buffer: [ 27.625390] (ftrace buffer empty) [ 27.629084] Kernel Offset: disabled [ 27.632702] Rebooting in 86400 seconds..