[....] Starting enhanced syslogd: rsyslogd[ 16.674571] audit: type=1400 audit(1521114572.891: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.132838] audit: type=1400 audit(1521114575.349: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.41' (ECDSA) to the list of known hosts. [ 25.519420] audit: type=1400 audit(1521114581.736:7): avc: denied { map } for pid=4232 comm="syzkaller448085" path="/root/syzkaller448085104" 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 [ 25.530328] IPVS: ftp: loaded support on port[0] = 21 net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 25.545387] audit: type=1400 audit(1521114581.736:8): avc: denied { sys_admin } for pid=4232 comm="syzkaller448085" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 25.578304] audit: type=1400 audit(1521114581.794:9): avc: denied { net_admin } for pid=4233 comm="syzkaller448085" capability=12 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 RTNETLINK answers: File exists RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 25.812561] 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.165469] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 26.171569] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 26.210865] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 26.249961] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 26.265368] audit: type=1400 audit(1521114582.482:10): avc: denied { sys_chroot } for pid=4233 comm="syzkaller448085" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 26.269977] ================================================================== [ 26.297354] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 26.303469] Read of size 8 at addr ffff8801a998d818 by task syzkaller448085/4233 [ 26.310969] [ 26.312575] CPU: 1 PID: 4233 Comm: syzkaller448085 Not tainted 4.16.0-rc5+ #354 [ 26.319990] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.329324] Call Trace: [ 26.331886] dump_stack+0x194/0x24d [ 26.335488] ? arch_local_irq_restore+0x53/0x53 [ 26.340131] ? show_regs_print_info+0x18/0x18 [ 26.344603] ? ip6_xmit+0x1f76/0x2260 [ 26.348740] print_address_description+0x73/0x250 [ 26.353555] ? ip6_xmit+0x1f76/0x2260 [ 26.357326] kasan_report+0x23c/0x360 [ 26.361102] __asan_report_load8_noabort+0x14/0x20 [ 26.366001] ip6_xmit+0x1f76/0x2260 [ 26.369613] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.374256] ? fl6_update_dst+0x127/0x2b0 [ 26.378377] ? inet6_csk_route_socket+0x691/0xe80 [ 26.383196] ? trace_hardirqs_off+0x10/0x10 [ 26.387491] ? lock_acquire+0x1d5/0x580 [ 26.391436] ? lock_acquire+0x1d5/0x580 [ 26.395379] ? inet6_csk_xmit+0x114/0x580 [ 26.399502] ? trace_hardirqs_off+0x10/0x10 [ 26.403798] ? lock_release+0xa40/0xa40 [ 26.407761] inet6_csk_xmit+0x2fc/0x580 [ 26.411709] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.416440] ? __sk_dst_check+0x1a5/0x380 [ 26.420649] ? sock_kfree_s+0x60/0x60 [ 26.424445] l2tp_xmit_skb+0x105f/0x1410 [ 26.428488] ? l2tp_session_create+0xb80/0xb80 [ 26.433042] ? sock_wmalloc+0x15d/0x1d0 [ 26.436993] ? iov_iter_advance+0x13f0/0x13f0 [ 26.441469] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.445764] pppol2tp_sendmsg+0x470/0x670 [ 26.449885] ? selinux_socket_sendmsg+0x36/0x40 [ 26.454533] ? pppol2tp_getsockopt+0x900/0x900 [ 26.459100] sock_sendmsg+0xca/0x110 [ 26.462789] ___sys_sendmsg+0x767/0x8b0 [ 26.466746] ? copy_msghdr_from_user+0x590/0x590 [ 26.471478] ? __pmd_alloc+0x4e0/0x4e0 [ 26.475335] ? selinux_socket_connect+0x311/0x730 [ 26.480149] ? trace_hardirqs_off+0x10/0x10 [ 26.484449] ? find_held_lock+0x35/0x1d0 [ 26.488485] ? __fget_light+0x2b2/0x3c0 [ 26.492428] ? fget_raw+0x20/0x20 [ 26.495873] ? __do_page_fault+0x5f7/0xc90 [ 26.500079] ? lock_downgrade+0x980/0x980 [ 26.504206] __sys_sendmsg+0xe5/0x210 [ 26.507979] ? __sys_sendmsg+0xe5/0x210 [ 26.511931] ? SyS_shutdown+0x290/0x290 [ 26.515884] ? __do_page_fault+0x3d6/0xc90 [ 26.520098] ? move_addr_to_kernel+0x60/0x60 [ 26.524493] SyS_sendmsg+0x2d/0x50 [ 26.528002] ? __sys_sendmsg+0x210/0x210 [ 26.532045] do_syscall_64+0x281/0x940 [ 26.535908] ? __do_page_fault+0xc90/0xc90 [ 26.540114] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.544580] ? finish_task_switch+0x1c1/0x7e0 [ 26.549047] ? syscall_return_slowpath+0x550/0x550 [ 26.553959] ? syscall_return_slowpath+0x2ac/0x550 [ 26.558867] ? prepare_exit_to_usermode+0x350/0x350 [ 26.563856] ? retint_user+0x18/0x18 [ 26.567544] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.572364] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.577521] RIP: 0033:0x441c59 [ 26.580682] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.588359] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441c59 [ 26.595600] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.602847] RBP: 00000000004a3c86 R08: 0000000120080522 R09: 0000000120080522 [ 26.610086] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 26.617325] R13: 0000000000402c90 R14: 0000000000000000 R15: 0000000000000000 [ 26.624589] [ 26.626197] Allocated by task 4230: [ 26.629797] save_stack+0x43/0xd0 [ 26.633222] kasan_kmalloc+0xad/0xe0 [ 26.636905] kasan_slab_alloc+0x12/0x20 [ 26.640850] kmem_cache_alloc+0x12e/0x760 [ 26.644971] dst_alloc+0x11f/0x1a0 [ 26.648481] rt_dst_alloc+0xe9/0x520 [ 26.652167] ip_route_output_key_hash_rcu+0xa59/0x2f00 [ 26.657425] ip_route_output_key_hash+0x20b/0x370 [ 26.662241] __ip4_datagram_connect+0xa67/0x1240 [ 26.666983] __ip6_datagram_connect+0x749/0x12d0 [ 26.671707] ip6_datagram_connect+0x2f/0x50 [ 26.675999] inet_dgram_connect+0x16b/0x1f0 [ 26.680300] SYSC_connect+0x213/0x4a0 [ 26.684072] SyS_connect+0x24/0x30 [ 26.687593] do_syscall_64+0x281/0x940 [ 26.691453] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.696606] [ 26.698204] Freed by task 0: [ 26.701191] save_stack+0x43/0xd0 [ 26.704615] __kasan_slab_free+0x11a/0x170 [ 26.708816] kasan_slab_free+0xe/0x10 [ 26.712588] kmem_cache_free+0x83/0x2a0 [ 26.716530] dst_destroy+0x257/0x370 [ 26.720214] dst_destroy_rcu+0x16/0x20 [ 26.724074] rcu_process_callbacks+0xd6c/0x17f0 [ 26.728711] __do_softirq+0x2d7/0xb85 [ 26.732478] [ 26.734084] The buggy address belongs to the object at ffff8801a998d800 [ 26.734084] which belongs to the cache ip_dst_cache of size 168 [ 26.746797] The buggy address is located 24 bytes inside of [ 26.746797] 168-byte region [ffff8801a998d800, ffff8801a998d8a8) [ 26.758554] The buggy address belongs to the page: [ 26.763456] page:ffffea0006a66340 count:1 mapcount:0 mapping:ffff8801a998d000 index:0xffff8801a998d000 [ 26.772877] flags: 0x2fffc0000000100(slab) [ 26.777088] raw: 02fffc0000000100 ffff8801a998d000 ffff8801a998d000 0000000100000009 [ 26.784945] raw: ffff8801d588c638 ffffea0006c37060 ffff8801d5bae800 0000000000000000 [ 26.792803] page dumped because: kasan: bad access detected [ 26.798481] [ 26.800084] Memory state around the buggy address: [ 26.804984] ffff8801a998d700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.812317] ffff8801a998d780: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 26.819644] >ffff8801a998d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.826976] ^ [ 26.831093] ffff8801a998d880: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 26.838421] ffff8801a998d900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.845745] ================================================================== [ 26.853069] Disabling lock debugging due to kernel taint [ 26.858527] Kernel panic - not syncing: panic_on_warn set ... [ 26.858527] [ 26.865871] CPU: 1 PID: 4233 Comm: syzkaller448085 Tainted: G B 4.16.0-rc5+ #354 [ 26.874590] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.883910] Call Trace: [ 26.886468] dump_stack+0x194/0x24d [ 26.890067] ? arch_local_irq_restore+0x53/0x53 [ 26.894706] ? kasan_end_report+0x32/0x50 [ 26.898823] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.903546] ? vsnprintf+0x1ed/0x1900 [ 26.907316] ? ip6_xmit+0x1f30/0x2260 [ 26.911087] panic+0x1e4/0x41c [ 26.914249] ? refcount_error_report+0x214/0x214 [ 26.918977] ? add_taint+0x1c/0x50 [ 26.922487] ? add_taint+0x1c/0x50 [ 26.925998] ? ip6_xmit+0x1f76/0x2260 [ 26.929771] kasan_end_report+0x50/0x50 [ 26.933711] kasan_report+0x149/0x360 [ 26.937487] __asan_report_load8_noabort+0x14/0x20 [ 26.942383] ip6_xmit+0x1f76/0x2260 [ 26.945986] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.950625] ? fl6_update_dst+0x127/0x2b0 [ 26.954742] ? inet6_csk_route_socket+0x691/0xe80 [ 26.959554] ? trace_hardirqs_off+0x10/0x10 [ 26.963843] ? lock_acquire+0x1d5/0x580 [ 26.967785] ? lock_acquire+0x1d5/0x580 [ 26.971725] ? inet6_csk_xmit+0x114/0x580 [ 26.975842] ? trace_hardirqs_off+0x10/0x10 [ 26.980139] ? lock_release+0xa40/0xa40 [ 26.984092] inet6_csk_xmit+0x2fc/0x580 [ 26.988039] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.992763] ? __sk_dst_check+0x1a5/0x380 [ 26.996879] ? sock_kfree_s+0x60/0x60 [ 27.000657] l2tp_xmit_skb+0x105f/0x1410 [ 27.004695] ? l2tp_session_create+0xb80/0xb80 [ 27.009248] ? sock_wmalloc+0x15d/0x1d0 [ 27.013194] ? iov_iter_advance+0x13f0/0x13f0 [ 27.017658] ? pppol2tp_sendmsg+0x41b/0x670 [ 27.021950] pppol2tp_sendmsg+0x470/0x670 [ 27.026070] ? selinux_socket_sendmsg+0x36/0x40 [ 27.030707] ? pppol2tp_getsockopt+0x900/0x900 [ 27.035259] sock_sendmsg+0xca/0x110 [ 27.038943] ___sys_sendmsg+0x767/0x8b0 [ 27.042886] ? copy_msghdr_from_user+0x590/0x590 [ 27.047611] ? __pmd_alloc+0x4e0/0x4e0 [ 27.051470] ? selinux_socket_connect+0x311/0x730 [ 27.056289] ? trace_hardirqs_off+0x10/0x10 [ 27.060579] ? find_held_lock+0x35/0x1d0 [ 27.064610] ? __fget_light+0x2b2/0x3c0 [ 27.068551] ? fget_raw+0x20/0x20 [ 27.071982] ? __do_page_fault+0x5f7/0xc90 [ 27.076196] ? lock_downgrade+0x980/0x980 [ 27.080319] __sys_sendmsg+0xe5/0x210 [ 27.084087] ? __sys_sendmsg+0xe5/0x210 [ 27.088030] ? SyS_shutdown+0x290/0x290 [ 27.091976] ? __do_page_fault+0x3d6/0xc90 [ 27.096183] ? move_addr_to_kernel+0x60/0x60 [ 27.100569] SyS_sendmsg+0x2d/0x50 [ 27.104079] ? __sys_sendmsg+0x210/0x210 [ 27.108114] do_syscall_64+0x281/0x940 [ 27.111968] ? __do_page_fault+0xc90/0xc90 [ 27.116169] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.120632] ? finish_task_switch+0x1c1/0x7e0 [ 27.125095] ? syscall_return_slowpath+0x550/0x550 [ 27.129993] ? syscall_return_slowpath+0x2ac/0x550 [ 27.134897] ? prepare_exit_to_usermode+0x350/0x350 [ 27.139879] ? retint_user+0x18/0x18 [ 27.143562] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.148375] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.153530] RIP: 0033:0x441c59 [ 27.156694] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 27.164371] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441c59 [ 27.171610] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 27.178856] RBP: 00000000004a3c86 R08: 0000000120080522 R09: 0000000120080522 [ 27.186096] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 27.193332] R13: 0000000000402c90 R14: 0000000000000000 R15: 0000000000000000 [ 27.201014] Dumping ftrace buffer: [ 27.204525] (ftrace buffer empty) [ 27.208205] Kernel Offset: disabled [ 27.211800] Rebooting in 86400 seconds..