[....] Starting enhanced syslogd: rsyslogd[ 16.569849] audit: type=1400 audit(1520397017.058:5): avc: denied { syslog } for pid=4072 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.486235] audit: type=1400 audit(1520397019.974:6): avc: denied { map } for pid=4209 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.10.6' (ECDSA) to the list of known hosts. [ 25.838104] audit: type=1400 audit(1520397026.326:7): avc: denied { map } for pid=4223 comm="syzkaller334852" path="/root/syzkaller334852074" 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.849264] 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.864074] audit: type=1400 audit(1520397026.327:8): avc: denied { sys_admin } for pid=4223 comm="syzkaller334852" 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.896920] audit: type=1400 audit(1520397026.385:9): avc: denied { net_admin } for pid=4224 comm="syzkaller334852" 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 [ 26.108563] ip (4269) used greatest stack depth: 16536 bytes left [ 26.142767] 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.503078] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 26.509192] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 26.548755] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 26.587273] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 26.599363] audit: type=1400 audit(1520397027.088:10): avc: denied { sys_chroot } for pid=4224 comm="syzkaller334852" 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.604148] ================================================================== [ 26.631345] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 26.637461] Read of size 8 at addr ffff8801b0db3818 by task syzkaller334852/4224 [ 26.644968] [ 26.646570] CPU: 0 PID: 4224 Comm: syzkaller334852 Not tainted 4.16.0-rc4+ #254 [ 26.653983] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.663306] Call Trace: [ 26.665880] dump_stack+0x194/0x24d [ 26.669484] ? arch_local_irq_restore+0x53/0x53 [ 26.674124] ? show_regs_print_info+0x18/0x18 [ 26.678610] ? ip6_xmit+0x1f76/0x2260 [ 26.682385] print_address_description+0x73/0x250 [ 26.687199] ? ip6_xmit+0x1f76/0x2260 [ 26.690975] kasan_report+0x23c/0x360 [ 26.694751] __asan_report_load8_noabort+0x14/0x20 [ 26.699652] ip6_xmit+0x1f76/0x2260 [ 26.703264] ? ip6_finish_output2+0x23d0/0x23d0 [ 26.707910] ? fl6_update_dst+0x127/0x2b0 [ 26.712047] ? inet6_csk_route_socket+0x691/0xe80 [ 26.716875] ? trace_hardirqs_off+0x10/0x10 [ 26.721170] ? lock_acquire+0x1d5/0x580 [ 26.725113] ? lock_acquire+0x1d5/0x580 [ 26.729058] ? inet6_csk_xmit+0x114/0x580 [ 26.733186] ? trace_hardirqs_off+0x10/0x10 [ 26.737482] ? lock_release+0xa40/0xa40 [ 26.741444] inet6_csk_xmit+0x2fc/0x580 [ 26.745394] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.750127] ? __sk_dst_check+0x1a5/0x380 [ 26.754252] ? sock_kzfree_s+0x60/0x60 [ 26.758127] l2tp_xmit_skb+0x105f/0x1410 [ 26.762181] ? l2tp_session_create+0xb80/0xb80 [ 26.766748] ? sock_wmalloc+0x15d/0x1d0 [ 26.770697] ? iov_iter_advance+0x13f0/0x13f0 [ 26.775171] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.779467] pppol2tp_sendmsg+0x470/0x670 [ 26.783591] ? selinux_socket_sendmsg+0x36/0x40 [ 26.788237] ? pppol2tp_getsockopt+0x900/0x900 [ 26.792794] sock_sendmsg+0xca/0x110 [ 26.796482] ___sys_sendmsg+0x767/0x8b0 [ 26.800434] ? copy_msghdr_from_user+0x590/0x590 [ 26.805170] ? __pmd_alloc+0x4e0/0x4e0 [ 26.809037] ? selinux_socket_connect+0x311/0x730 [ 26.813856] ? trace_hardirqs_off+0x10/0x10 [ 26.818152] ? find_held_lock+0x35/0x1d0 [ 26.822193] ? __fget_light+0x2b2/0x3c0 [ 26.826144] ? fget_raw+0x20/0x20 [ 26.829584] ? __do_page_fault+0x5f7/0xc90 [ 26.833793] ? lock_downgrade+0x980/0x980 [ 26.837925] __sys_sendmsg+0xe5/0x210 [ 26.841696] ? __sys_sendmsg+0xe5/0x210 [ 26.845646] ? SyS_shutdown+0x290/0x290 [ 26.849600] ? __do_page_fault+0x3d6/0xc90 [ 26.853815] ? move_addr_to_kernel+0x60/0x60 [ 26.858202] SyS_sendmsg+0x2d/0x50 [ 26.861719] ? __sys_sendmsg+0x210/0x210 [ 26.865752] do_syscall_64+0x281/0x940 [ 26.869611] ? __do_page_fault+0xc90/0xc90 [ 26.873818] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.878286] ? finish_task_switch+0x1c1/0x7e0 [ 26.882754] ? syscall_return_slowpath+0x550/0x550 [ 26.887654] ? syscall_return_slowpath+0x2ac/0x550 [ 26.892558] ? prepare_exit_to_usermode+0x350/0x350 [ 26.897550] ? retint_user+0x18/0x18 [ 26.901241] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.906062] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.911223] RIP: 0033:0x441f59 [ 26.914384] RSP: 002b:00000000007dfe98 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.922065] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441f59 [ 26.929304] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.936546] RBP: 00000000004a3f86 R08: 0000000000000000 R09: 0000000000000000 [ 26.943801] R10: 0000000000000000 R11: 0000000000000217 R12: 00000000007dff70 [ 26.951043] R13: 0000000000402f90 R14: 0000000000000000 R15: 0000000000000000 [ 26.958299] [ 26.959899] Allocated by task 4221: [ 26.963500] save_stack+0x43/0xd0 [ 26.966923] kasan_kmalloc+0xad/0xe0 [ 26.970605] kasan_slab_alloc+0x12/0x20 [ 26.974549] kmem_cache_alloc+0x12e/0x760 [ 26.978678] dst_alloc+0x11f/0x1a0 [ 26.982192] rt_dst_alloc+0xe9/0x4e0 [ 26.985876] ip_route_output_key_hash_rcu+0xa59/0x2fe0 [ 26.991124] ip_route_output_key_hash+0x20b/0x370 [ 26.995939] __ip4_datagram_connect+0xa67/0x1240 [ 27.000668] __ip6_datagram_connect+0x749/0x12d0 [ 27.005393] ip6_datagram_connect+0x2f/0x50 [ 27.009683] inet_dgram_connect+0x16b/0x1f0 [ 27.013985] SYSC_connect+0x213/0x4a0 [ 27.017767] SyS_connect+0x24/0x30 [ 27.021280] do_syscall_64+0x281/0x940 [ 27.025140] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.030297] [ 27.031895] Freed by task 4221: [ 27.035145] save_stack+0x43/0xd0 [ 27.038567] __kasan_slab_free+0x11a/0x170 [ 27.042775] kasan_slab_free+0xe/0x10 [ 27.046548] kmem_cache_free+0x83/0x2a0 [ 27.050493] dst_destroy+0x257/0x370 [ 27.054176] dst_destroy_rcu+0x16/0x20 [ 27.058041] rcu_process_callbacks+0xd6c/0x17f0 [ 27.062681] __do_softirq+0x2d7/0xb85 [ 27.066453] [ 27.068057] The buggy address belongs to the object at ffff8801b0db3800 [ 27.068057] which belongs to the cache ip_dst_cache of size 160 [ 27.080772] The buggy address is located 24 bytes inside of [ 27.080772] 160-byte region [ffff8801b0db3800, ffff8801b0db38a0) [ 27.092527] The buggy address belongs to the page: [ 27.097427] page:ffffea0006c36cc0 count:1 mapcount:0 mapping:ffff8801b0db3000 index:0xffff8801b0db3000 [ 27.106846] flags: 0x2fffc0000000100(slab) [ 27.111055] raw: 02fffc0000000100 ffff8801b0db3000 ffff8801b0db3000 000000010000000b [ 27.118908] raw: ffffea0006a432e0 ffff8801d6ba6338 ffff8801d5bfe800 0000000000000000 [ 27.126756] page dumped because: kasan: bad access detected [ 27.132433] [ 27.134035] Memory state around the buggy address: [ 27.138938] ffff8801b0db3700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.146266] ffff8801b0db3780: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 27.153596] >ffff8801b0db3800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.160924] ^ [ 27.165042] ffff8801b0db3880: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 27.172374] ffff8801b0db3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.179703] ================================================================== [ 27.187037] Disabling lock debugging due to kernel taint [ 27.192489] Kernel panic - not syncing: panic_on_warn set ... [ 27.192489] [ 27.199834] CPU: 0 PID: 4224 Comm: syzkaller334852 Tainted: G B 4.16.0-rc4+ #254 [ 27.208550] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.217874] Call Trace: [ 27.220433] dump_stack+0x194/0x24d [ 27.224040] ? arch_local_irq_restore+0x53/0x53 [ 27.228678] ? kasan_end_report+0x32/0x50 [ 27.232798] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.237522] ? vsnprintf+0x1ed/0x1900 [ 27.241293] ? ip6_xmit+0x1ec0/0x2260 [ 27.245063] panic+0x1e4/0x41c [ 27.248227] ? refcount_error_report+0x214/0x214 [ 27.252953] ? add_taint+0x1c/0x50 [ 27.256464] ? add_taint+0x1c/0x50 [ 27.259974] ? ip6_xmit+0x1f76/0x2260 [ 27.263744] kasan_end_report+0x50/0x50 [ 27.267686] kasan_report+0x149/0x360 [ 27.271464] __asan_report_load8_noabort+0x14/0x20 [ 27.276363] ip6_xmit+0x1f76/0x2260 [ 27.279966] ? ip6_finish_output2+0x23d0/0x23d0 [ 27.284606] ? fl6_update_dst+0x127/0x2b0 [ 27.288725] ? inet6_csk_route_socket+0x691/0xe80 [ 27.293538] ? trace_hardirqs_off+0x10/0x10 [ 27.297828] ? lock_acquire+0x1d5/0x580 [ 27.301772] ? lock_acquire+0x1d5/0x580 [ 27.305717] ? inet6_csk_xmit+0x114/0x580 [ 27.309839] ? trace_hardirqs_off+0x10/0x10 [ 27.314132] ? lock_release+0xa40/0xa40 [ 27.318086] inet6_csk_xmit+0x2fc/0x580 [ 27.322036] ? inet6_csk_update_pmtu+0x160/0x160 [ 27.326767] ? __sk_dst_check+0x1a5/0x380 [ 27.330886] ? sock_kzfree_s+0x60/0x60 [ 27.334753] l2tp_xmit_skb+0x105f/0x1410 [ 27.338790] ? l2tp_session_create+0xb80/0xb80 [ 27.343341] ? sock_wmalloc+0x15d/0x1d0 [ 27.347287] ? iov_iter_advance+0x13f0/0x13f0 [ 27.351755] ? pppol2tp_sendmsg+0x41b/0x670 [ 27.356050] pppol2tp_sendmsg+0x470/0x670 [ 27.360171] ? selinux_socket_sendmsg+0x36/0x40 [ 27.364812] ? pppol2tp_getsockopt+0x900/0x900 [ 27.369364] sock_sendmsg+0xca/0x110 [ 27.373049] ___sys_sendmsg+0x767/0x8b0 [ 27.376995] ? copy_msghdr_from_user+0x590/0x590 [ 27.381732] ? __pmd_alloc+0x4e0/0x4e0 [ 27.385592] ? selinux_socket_connect+0x311/0x730 [ 27.390405] ? trace_hardirqs_off+0x10/0x10 [ 27.394705] ? find_held_lock+0x35/0x1d0 [ 27.398740] ? __fget_light+0x2b2/0x3c0 [ 27.402689] ? fget_raw+0x20/0x20 [ 27.406130] ? __do_page_fault+0x5f7/0xc90 [ 27.410336] ? lock_downgrade+0x980/0x980 [ 27.414461] __sys_sendmsg+0xe5/0x210 [ 27.418231] ? __sys_sendmsg+0xe5/0x210 [ 27.422177] ? SyS_shutdown+0x290/0x290 [ 27.426126] ? __do_page_fault+0x3d6/0xc90 [ 27.430333] ? move_addr_to_kernel+0x60/0x60 [ 27.434716] SyS_sendmsg+0x2d/0x50 [ 27.438245] ? __sys_sendmsg+0x210/0x210 [ 27.442277] do_syscall_64+0x281/0x940 [ 27.446144] ? __do_page_fault+0xc90/0xc90 [ 27.450349] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.454815] ? finish_task_switch+0x1c1/0x7e0 [ 27.459279] ? syscall_return_slowpath+0x550/0x550 [ 27.464179] ? syscall_return_slowpath+0x2ac/0x550 [ 27.469078] ? prepare_exit_to_usermode+0x350/0x350 [ 27.474064] ? retint_user+0x18/0x18 [ 27.477751] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.482568] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.487729] RIP: 0033:0x441f59 [ 27.490890] RSP: 002b:00000000007dfe98 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 27.498568] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441f59 [ 27.505807] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 27.513046] RBP: 00000000004a3f86 R08: 0000000000000000 R09: 0000000000000000 [ 27.520285] R10: 0000000000000000 R11: 0000000000000217 R12: 00000000007dff70 [ 27.527523] R13: 0000000000402f90 R14: 0000000000000000 R15: 0000000000000000 [ 27.535227] Dumping ftrace buffer: [ 27.538744] (ftrace buffer empty) [ 27.542423] Kernel Offset: disabled [ 27.546023] Rebooting in 86400 seconds..