[....] Starting enhanced syslogd: rsyslogd[ 16.610638] audit: type=1400 audit(1520397825.682:5): avc: denied { syslog } for pid=4083 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.514547] audit: type=1400 audit(1520397828.586: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 Warning: Permanently added '10.128.0.44' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 25.794554] audit: type=1400 audit(1520397834.866:7): avc: denied { map } for pid=4234 comm="syzkaller181927" path="/root/syzkaller181927629" 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.804190] 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 RTNETLINK answers: Operation not supported [ 26.071221] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument [ 26.415594] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 26.421700] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 26.459622] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 26.497850] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 26.504681] ================================================================== [ 26.504707] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 26.504714] Read of size 8 at addr ffff8801cc263a18 by task syzkaller181927/4235 [ 26.504717] [ 26.504726] CPU: 1 PID: 4235 Comm: syzkaller181927 Not tainted 4.16.0-rc4+ #343 [ 26.504730] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.504733] Call Trace: [ 26.504744] dump_stack+0x194/0x24d [ 26.504757] ? arch_local_irq_restore+0x53/0x53 [ 26.504765] ? show_regs_print_info+0x18/0x18 [ 26.504782] ? ip6_xmit+0x1f76/0x2260 [ 26.504793] print_address_description+0x73/0x250 [ 26.504802] ? ip6_xmit+0x1f76/0x2260 [ 26.504812] kasan_report+0x23c/0x360 [ 26.504826] __asan_report_load8_noabort+0x14/0x20 [ 26.504834] ip6_xmit+0x1f76/0x2260 [ 26.504864] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.504879] ? fl6_update_dst+0x127/0x2b0 [ 26.592816] ? inet6_csk_route_socket+0x691/0xe80 [ 26.597633] ? trace_hardirqs_off+0x10/0x10 [ 26.601928] ? lock_acquire+0x1d5/0x580 [ 26.605872] ? lock_acquire+0x1d5/0x580 [ 26.609818] ? inet6_csk_xmit+0x114/0x580 [ 26.613936] ? trace_hardirqs_off+0x10/0x10 [ 26.618231] ? lock_release+0xa40/0xa40 [ 26.622191] inet6_csk_xmit+0x2fc/0x580 [ 26.626143] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.630893] ? __sk_dst_check+0x1a5/0x380 [ 26.635044] ? sock_kfree_s+0x60/0x60 [ 26.638844] l2tp_xmit_skb+0x105f/0x1410 [ 26.642914] ? l2tp_session_create+0xb80/0xb80 [ 26.647486] ? sock_wmalloc+0x15d/0x1d0 [ 26.651441] ? iov_iter_advance+0x13f0/0x13f0 [ 26.655914] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.660224] pppol2tp_sendmsg+0x470/0x670 [ 26.664357] ? selinux_socket_sendmsg+0x36/0x40 [ 26.669004] ? pppol2tp_getsockopt+0x900/0x900 [ 26.673566] sock_sendmsg+0xca/0x110 [ 26.677252] ___sys_sendmsg+0x767/0x8b0 [ 26.681200] ? copy_msghdr_from_user+0x590/0x590 [ 26.685933] ? __pmd_alloc+0x4e0/0x4e0 [ 26.689790] ? selinux_socket_connect+0x311/0x730 [ 26.694605] ? trace_hardirqs_off+0x10/0x10 [ 26.698898] ? find_held_lock+0x35/0x1d0 [ 26.702935] ? __fget_light+0x2b2/0x3c0 [ 26.706882] ? fget_raw+0x20/0x20 [ 26.710322] ? __do_page_fault+0x5f7/0xc90 [ 26.714528] ? lock_downgrade+0x980/0x980 [ 26.718657] __sys_sendmsg+0xe5/0x210 [ 26.722428] ? __sys_sendmsg+0xe5/0x210 [ 26.726379] ? SyS_shutdown+0x290/0x290 [ 26.730334] ? __do_page_fault+0x3d6/0xc90 [ 26.734547] ? move_addr_to_kernel+0x60/0x60 [ 26.738933] SyS_sendmsg+0x2d/0x50 [ 26.742442] ? __sys_sendmsg+0x210/0x210 [ 26.746481] do_syscall_64+0x281/0x940 [ 26.750338] ? __do_page_fault+0xc90/0xc90 [ 26.754551] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.759279] ? syscall_return_slowpath+0x550/0x550 [ 26.764180] ? syscall_return_slowpath+0x2ac/0x550 [ 26.769080] ? prepare_exit_to_usermode+0x350/0x350 [ 26.774072] ? retint_user+0x18/0x18 [ 26.777760] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.782577] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.787739] RIP: 0033:0x443879 [ 26.790899] RSP: 002b:00007ffce302f318 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 26.798578] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000443879 [ 26.805817] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.813055] RBP: 00000000004a5941 R08: 00007ffce302f430 R09: 00007ffce302f430 [ 26.820294] R10: 00007ffce302f430 R11: 0000000000000246 R12: 00007ffce302f410 [ 26.827532] R13: 00000000004045a0 R14: 0000000000000000 R15: 0000000000000000 [ 26.834786] [ 26.836385] Allocated by task 4232: [ 26.839986] save_stack+0x43/0xd0 [ 26.843408] kasan_kmalloc+0xad/0xe0 [ 26.847089] kasan_slab_alloc+0x12/0x20 [ 26.851034] kmem_cache_alloc+0x12e/0x760 [ 26.855151] dst_alloc+0x11f/0x1a0 [ 26.858661] rt_dst_alloc+0xe9/0x520 [ 26.862346] ip_route_output_key_hash_rcu+0xa59/0x2f00 [ 26.867597] ip_route_output_key_hash+0x20b/0x370 [ 26.872411] __ip4_datagram_connect+0xa67/0x1240 [ 26.877137] __ip6_datagram_connect+0x749/0x12d0 [ 26.881862] ip6_datagram_connect+0x2f/0x50 [ 26.886152] inet_dgram_connect+0x16b/0x1f0 [ 26.890442] SYSC_connect+0x213/0x4a0 [ 26.894214] SyS_connect+0x24/0x30 [ 26.897729] do_syscall_64+0x281/0x940 [ 26.901590] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.906746] [ 26.908345] Freed by task 4232: [ 26.911594] save_stack+0x43/0xd0 [ 26.915024] __kasan_slab_free+0x11a/0x170 [ 26.919229] kasan_slab_free+0xe/0x10 [ 26.923000] kmem_cache_free+0x83/0x2a0 [ 26.926950] dst_destroy+0x257/0x370 [ 26.930631] dst_destroy_rcu+0x16/0x20 [ 26.934493] rcu_process_callbacks+0xd6c/0x17f0 [ 26.939138] __do_softirq+0x2d7/0xb85 [ 26.942906] [ 26.944508] The buggy address belongs to the object at ffff8801cc263a00 [ 26.944508] which belongs to the cache ip_dst_cache of size 168 [ 26.957222] The buggy address is located 24 bytes inside of [ 26.957222] 168-byte region [ffff8801cc263a00, ffff8801cc263aa8) [ 26.968979] The buggy address belongs to the page: [ 26.973877] page:ffffea00073098c0 count:1 mapcount:0 mapping:ffff8801cc263000 index:0xffff8801cc263000 [ 26.983294] flags: 0x2fffc0000000100(slab) [ 26.987499] raw: 02fffc0000000100 ffff8801cc263000 ffff8801cc263000 0000000100000007 [ 26.995372] raw: ffffea00072fbba0 ffff8801d5b10e38 ffff8801d5b0f680 0000000000000000 [ 27.003221] page dumped because: kasan: bad access detected [ 27.008896] [ 27.010491] Memory state around the buggy address: [ 27.015388] ffff8801cc263900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.022715] ffff8801cc263980: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 27.030042] >ffff8801cc263a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.037367] ^ [ 27.041485] ffff8801cc263a80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 27.048819] ffff8801cc263b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.056144] ================================================================== [ 27.063469] Disabling lock debugging due to kernel taint [ 27.068927] Kernel panic - not syncing: panic_on_warn set ... [ 27.068927] [ 27.076266] CPU: 1 PID: 4235 Comm: syzkaller181927 Tainted: G B 4.16.0-rc4+ #343 [ 27.084986] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.094311] Call Trace: [ 27.096871] dump_stack+0x194/0x24d [ 27.100471] ? arch_local_irq_restore+0x53/0x53 [ 27.105110] ? kasan_end_report+0x32/0x50 [ 27.109243] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.113968] ? vsnprintf+0x1ed/0x1900 [ 27.117739] ? ip6_xmit+0x1f30/0x2260 [ 27.121509] panic+0x1e4/0x41c [ 27.124670] ? refcount_error_report+0x214/0x214 [ 27.129394] ? add_taint+0x1c/0x50 [ 27.132904] ? add_taint+0x1c/0x50 [ 27.136413] ? ip6_xmit+0x1f76/0x2260 [ 27.140182] kasan_end_report+0x50/0x50 [ 27.144131] kasan_report+0x149/0x360 [ 27.147901] __asan_report_load8_noabort+0x14/0x20 [ 27.152799] ip6_xmit+0x1f76/0x2260 [ 27.156400] ? ip6_finish_output2+0x23a0/0x23a0 [ 27.161038] ? fl6_update_dst+0x127/0x2b0 [ 27.165157] ? inet6_csk_route_socket+0x691/0xe80 [ 27.169977] ? trace_hardirqs_off+0x10/0x10 [ 27.174275] ? lock_acquire+0x1d5/0x580 [ 27.178218] ? lock_acquire+0x1d5/0x580 [ 27.182160] ? inet6_csk_xmit+0x114/0x580 [ 27.186276] ? trace_hardirqs_off+0x10/0x10 [ 27.190581] ? lock_release+0xa40/0xa40 [ 27.194543] inet6_csk_xmit+0x2fc/0x580 [ 27.198489] ? inet6_csk_update_pmtu+0x160/0x160 [ 27.203213] ? __sk_dst_check+0x1a5/0x380 [ 27.207330] ? sock_kfree_s+0x60/0x60 [ 27.211120] l2tp_xmit_skb+0x105f/0x1410 [ 27.215157] ? l2tp_session_create+0xb80/0xb80 [ 27.219710] ? sock_wmalloc+0x15d/0x1d0 [ 27.223655] ? iov_iter_advance+0x13f0/0x13f0 [ 27.228127] ? pppol2tp_sendmsg+0x41b/0x670 [ 27.232418] pppol2tp_sendmsg+0x470/0x670 [ 27.236535] ? selinux_socket_sendmsg+0x36/0x40 [ 27.241174] ? pppol2tp_getsockopt+0x900/0x900 [ 27.245732] sock_sendmsg+0xca/0x110 [ 27.249417] ___sys_sendmsg+0x767/0x8b0 [ 27.253362] ? copy_msghdr_from_user+0x590/0x590 [ 27.258091] ? __pmd_alloc+0x4e0/0x4e0 [ 27.261947] ? selinux_socket_connect+0x311/0x730 [ 27.266760] ? trace_hardirqs_off+0x10/0x10 [ 27.271049] ? find_held_lock+0x35/0x1d0 [ 27.275084] ? __fget_light+0x2b2/0x3c0 [ 27.279028] ? fget_raw+0x20/0x20 [ 27.282468] ? __do_page_fault+0x5f7/0xc90 [ 27.286673] ? lock_downgrade+0x980/0x980 [ 27.290792] __sys_sendmsg+0xe5/0x210 [ 27.294559] ? __sys_sendmsg+0xe5/0x210 [ 27.298504] ? SyS_shutdown+0x290/0x290 [ 27.302451] ? __do_page_fault+0x3d6/0xc90 [ 27.306658] ? move_addr_to_kernel+0x60/0x60 [ 27.311038] SyS_sendmsg+0x2d/0x50 [ 27.314547] ? __sys_sendmsg+0x210/0x210 [ 27.318586] do_syscall_64+0x281/0x940 [ 27.322447] ? __do_page_fault+0xc90/0xc90 [ 27.326657] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.331385] ? syscall_return_slowpath+0x550/0x550 [ 27.336281] ? syscall_return_slowpath+0x2ac/0x550 [ 27.341177] ? prepare_exit_to_usermode+0x350/0x350 [ 27.346165] ? retint_user+0x18/0x18 [ 27.349852] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.354665] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.359824] RIP: 0033:0x443879 [ 27.362984] RSP: 002b:00007ffce302f318 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.370660] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000443879 [ 27.377898] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 27.385137] RBP: 00000000004a5941 R08: 00007ffce302f430 R09: 00007ffce302f430 [ 27.392376] R10: 00007ffce302f430 R11: 0000000000000246 R12: 00007ffce302f410 [ 27.399615] R13: 00000000004045a0 R14: 0000000000000000 R15: 0000000000000000 [ 27.407234] Dumping ftrace buffer: [ 27.410741] (ftrace buffer empty) [ 27.414421] Kernel Offset: disabled [ 27.418020] Rebooting in 86400 seconds..