[....] Starting enhanced syslogd: rsyslogd[ 16.083415] audit: type=1400 audit(1520656679.744:5): avc: denied { syslog } for pid=4074 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.734937] audit: type=1400 audit(1520656683.395:6): avc: denied { map } for pid=4212 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.27' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 26.075815] audit: type=1400 audit(1520656689.736:7): avc: denied { map } for pid=4226 comm="syzkaller258937" path="/root/syzkaller258937551" 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.085370] 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.359500] 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.715888] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 26.722071] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 26.760296] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 26.800176] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 26.810398] ================================================================== [ 26.817822] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 26.823939] Read of size 8 at addr ffff8801cd6d8718 by task syzkaller258937/4227 [ 26.831437] [ 26.833043] CPU: 0 PID: 4227 Comm: syzkaller258937 Not tainted 4.16.0-rc4+ #347 [ 26.840459] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.849782] Call Trace: [ 26.852365] dump_stack+0x194/0x24d [ 26.855969] ? arch_local_irq_restore+0x53/0x53 [ 26.860610] ? show_regs_print_info+0x18/0x18 [ 26.865088] ? ip6_xmit+0x1f76/0x2260 [ 26.868868] print_address_description+0x73/0x250 [ 26.873683] ? ip6_xmit+0x1f76/0x2260 [ 26.877460] kasan_report+0x23c/0x360 [ 26.881239] __asan_report_load8_noabort+0x14/0x20 [ 26.886140] ip6_xmit+0x1f76/0x2260 [ 26.889750] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.894392] ? fl6_update_dst+0x127/0x2b0 [ 26.898521] ? inet6_csk_route_socket+0x691/0xe80 [ 26.903339] ? trace_hardirqs_off+0x10/0x10 [ 26.907633] ? lock_acquire+0x1d5/0x580 [ 26.911578] ? lock_acquire+0x1d5/0x580 [ 26.915522] ? inet6_csk_xmit+0x114/0x580 [ 26.919652] ? trace_hardirqs_off+0x10/0x10 [ 26.923950] ? lock_release+0xa40/0xa40 [ 26.927912] inet6_csk_xmit+0x2fc/0x580 [ 26.931867] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.936599] ? __sk_dst_check+0x1a5/0x380 [ 26.940721] ? sock_kfree_s+0x60/0x60 [ 26.944509] l2tp_xmit_skb+0x105f/0x1410 [ 26.948554] ? l2tp_session_create+0xb80/0xb80 [ 26.953117] ? sock_wmalloc+0x15d/0x1d0 [ 26.957067] ? iov_iter_advance+0x13f0/0x13f0 [ 26.961541] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.965845] pppol2tp_sendmsg+0x470/0x670 [ 26.969969] ? selinux_socket_sendmsg+0x36/0x40 [ 26.974613] ? pppol2tp_getsockopt+0x900/0x900 [ 26.979170] sock_sendmsg+0xca/0x110 [ 26.982868] SYSC_sendto+0x361/0x5c0 [ 26.986559] ? SYSC_connect+0x4a0/0x4a0 [ 26.990513] ? __do_page_fault+0x5f7/0xc90 [ 26.994724] ? lock_downgrade+0x980/0x980 [ 26.998867] ? handle_mm_fault+0x465/0xb10 [ 27.003076] ? check_same_owner+0x320/0x320 [ 27.007395] ? mm_fault_error+0x2c0/0x2c0 [ 27.011517] ? move_addr_to_kernel+0x60/0x60 [ 27.015899] SyS_sendto+0x40/0x50 [ 27.019324] ? SyS_getpeername+0x30/0x30 [ 27.023360] do_syscall_64+0x281/0x940 [ 27.027218] ? __do_page_fault+0xc90/0xc90 [ 27.031425] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.036153] ? syscall_return_slowpath+0x550/0x550 [ 27.041055] ? syscall_return_slowpath+0x2ac/0x550 [ 27.045958] ? prepare_exit_to_usermode+0x350/0x350 [ 27.050948] ? retint_user+0x18/0x18 [ 27.054988] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.059811] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.064971] RIP: 0033:0x441939 [ 27.068131] RSP: 002b:00007ffc0ecc9678 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.075808] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441939 [ 27.083055] RDX: 0000000000000000 RSI: 0000000020de7000 RDI: 0000000000000004 [ 27.090298] RBP: 00000000004a3c07 R08: 000000002064eff0 R09: 0000000000000080 [ 27.097538] R10: c3fe68eda9554f8b R11: 0000000000000216 R12: 00007ffc0ecc9750 [ 27.104787] R13: 0000000000402720 R14: 0000000000000000 R15: 0000000000000000 [ 27.112054] [ 27.113659] Allocated by task 4224: [ 27.117268] save_stack+0x43/0xd0 [ 27.120693] kasan_kmalloc+0xad/0xe0 [ 27.124375] kasan_slab_alloc+0x12/0x20 [ 27.128319] kmem_cache_alloc+0x12e/0x760 [ 27.132437] dst_alloc+0x11f/0x1a0 [ 27.135947] rt_dst_alloc+0xe9/0x520 [ 27.139633] ip_route_output_key_hash_rcu+0xa59/0x2f00 [ 27.144889] ip_route_output_key_hash+0x20b/0x370 [ 27.149701] __ip4_datagram_connect+0xa67/0x1240 [ 27.154425] __ip6_datagram_connect+0x749/0x12d0 [ 27.159147] ip6_datagram_connect+0x2f/0x50 [ 27.163440] inet_dgram_connect+0x16b/0x1f0 [ 27.167732] SYSC_connect+0x213/0x4a0 [ 27.171502] SyS_connect+0x24/0x30 [ 27.175018] do_syscall_64+0x281/0x940 [ 27.178885] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.184045] [ 27.185640] Freed by task 0: [ 27.188632] save_stack+0x43/0xd0 [ 27.192053] __kasan_slab_free+0x11a/0x170 [ 27.196258] kasan_slab_free+0xe/0x10 [ 27.200035] kmem_cache_free+0x83/0x2a0 [ 27.203979] dst_destroy+0x257/0x370 [ 27.207664] dst_destroy_rcu+0x16/0x20 [ 27.211520] rcu_process_callbacks+0xd6c/0x17f0 [ 27.216162] __do_softirq+0x2d7/0xb85 [ 27.219929] [ 27.221528] The buggy address belongs to the object at ffff8801cd6d8700 [ 27.221528] which belongs to the cache ip_dst_cache of size 168 [ 27.234240] The buggy address is located 24 bytes inside of [ 27.234240] 168-byte region [ffff8801cd6d8700, ffff8801cd6d87a8) [ 27.245995] The buggy address belongs to the page: [ 27.250901] page:ffffea000735b600 count:1 mapcount:0 mapping:ffff8801cd6d8000 index:0xffff8801cd6d8000 [ 27.260313] flags: 0x2fffc0000000100(slab) [ 27.264530] raw: 02fffc0000000100 ffff8801cd6d8000 ffff8801cd6d8000 000000010000000a [ 27.272386] raw: ffffea0006c83260 ffff8801d5bffd38 ffff8801d5bfe800 0000000000000000 [ 27.280234] page dumped because: kasan: bad access detected [ 27.285912] [ 27.287508] Memory state around the buggy address: [ 27.292405] ffff8801cd6d8600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.299735] ffff8801cd6d8680: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 27.307065] >ffff8801cd6d8700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.314392] ^ [ 27.318510] ffff8801cd6d8780: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 27.325837] ffff8801cd6d8800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.333163] ================================================================== [ 27.340491] Disabling lock debugging due to kernel taint [ 27.345951] Kernel panic - not syncing: panic_on_warn set ... [ 27.345951] [ 27.353297] CPU: 0 PID: 4227 Comm: syzkaller258937 Tainted: G B 4.16.0-rc4+ #347 [ 27.362016] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.371342] Call Trace: [ 27.373904] dump_stack+0x194/0x24d [ 27.377511] ? arch_local_irq_restore+0x53/0x53 [ 27.382147] ? kasan_end_report+0x32/0x50 [ 27.386267] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.390991] ? vsnprintf+0x1ed/0x1900 [ 27.394770] ? ip6_xmit+0x1f30/0x2260 [ 27.398564] panic+0x1e4/0x41c [ 27.401725] ? refcount_error_report+0x214/0x214 [ 27.406450] ? add_taint+0x1c/0x50 [ 27.409959] ? add_taint+0x1c/0x50 [ 27.413470] ? ip6_xmit+0x1f76/0x2260 [ 27.417238] kasan_end_report+0x50/0x50 [ 27.421182] kasan_report+0x149/0x360 [ 27.424954] __asan_report_load8_noabort+0x14/0x20 [ 27.429856] ip6_xmit+0x1f76/0x2260 [ 27.433459] ? ip6_finish_output2+0x23a0/0x23a0 [ 27.438100] ? fl6_update_dst+0x127/0x2b0 [ 27.442218] ? inet6_csk_route_socket+0x691/0xe80 [ 27.447034] ? trace_hardirqs_off+0x10/0x10 [ 27.451324] ? lock_acquire+0x1d5/0x580 [ 27.455267] ? lock_acquire+0x1d5/0x580 [ 27.459209] ? inet6_csk_xmit+0x114/0x580 [ 27.463325] ? trace_hardirqs_off+0x10/0x10 [ 27.467617] ? lock_release+0xa40/0xa40 [ 27.471571] inet6_csk_xmit+0x2fc/0x580 [ 27.475516] ? inet6_csk_update_pmtu+0x160/0x160 [ 27.480242] ? __sk_dst_check+0x1a5/0x380 [ 27.484363] ? sock_kfree_s+0x60/0x60 [ 27.488146] l2tp_xmit_skb+0x105f/0x1410 [ 27.492184] ? l2tp_session_create+0xb80/0xb80 [ 27.496735] ? sock_wmalloc+0x15d/0x1d0 [ 27.500684] ? iov_iter_advance+0x13f0/0x13f0 [ 27.505150] ? pppol2tp_sendmsg+0x41b/0x670 [ 27.509442] pppol2tp_sendmsg+0x470/0x670 [ 27.513563] ? selinux_socket_sendmsg+0x36/0x40 [ 27.518202] ? pppol2tp_getsockopt+0x900/0x900 [ 27.522758] sock_sendmsg+0xca/0x110 [ 27.526440] SYSC_sendto+0x361/0x5c0 [ 27.530123] ? SYSC_connect+0x4a0/0x4a0 [ 27.534072] ? __do_page_fault+0x5f7/0xc90 [ 27.538277] ? lock_downgrade+0x980/0x980 [ 27.542398] ? handle_mm_fault+0x465/0xb10 [ 27.546601] ? check_same_owner+0x320/0x320 [ 27.550906] ? mm_fault_error+0x2c0/0x2c0 [ 27.555032] ? move_addr_to_kernel+0x60/0x60 [ 27.559412] SyS_sendto+0x40/0x50 [ 27.562834] ? SyS_getpeername+0x30/0x30 [ 27.566879] do_syscall_64+0x281/0x940 [ 27.570736] ? __do_page_fault+0xc90/0xc90 [ 27.574940] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.579667] ? syscall_return_slowpath+0x550/0x550 [ 27.584565] ? syscall_return_slowpath+0x2ac/0x550 [ 27.589469] ? prepare_exit_to_usermode+0x350/0x350 [ 27.594456] ? retint_user+0x18/0x18 [ 27.598143] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.602960] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.608118] RIP: 0033:0x441939 [ 27.611276] RSP: 002b:00007ffc0ecc9678 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 27.618951] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441939 [ 27.626189] RDX: 0000000000000000 RSI: 0000000020de7000 RDI: 0000000000000004 [ 27.633427] RBP: 00000000004a3c07 R08: 000000002064eff0 R09: 0000000000000080 [ 27.640665] R10: c3fe68eda9554f8b R11: 0000000000000216 R12: 00007ffc0ecc9750 [ 27.647903] R13: 0000000000402720 R14: 0000000000000000 R15: 0000000000000000 [ 27.655620] Dumping ftrace buffer: [ 27.659132] (ftrace buffer empty) [ 27.662811] Kernel Offset: disabled [ 27.666424] Rebooting in 86400 seconds..