[....] Starting enhanced syslogd: rsyslogd[ 15.009778] audit: type=1400 audit(1520405692.167:5): avc: denied { syslog } for pid=4014 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 18.141454] audit: type=1400 audit(1520405695.299:6): avc: denied { map } for pid=4153 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.43' (ECDSA) to the list of known hosts. [ 26.681951] audit: type=1400 audit(1520405703.839:7): avc: denied { map } for pid=4168 comm="syzkaller057829" path="/root/syzkaller057829620" 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.689680] IPVS: ftp: loaded support on port[0] = 21 net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 26.707881] audit: type=1400 audit(1520405703.842:8): avc: denied { sys_admin } for pid=4168 comm="syzkaller057829" 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 [ 26.755458] audit: type=1400 audit(1520405703.913:9): avc: denied { net_admin } for pid=4169 comm="syzkaller057829" 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 RTNETLINK answers: Operation not supported [ 26.981430] 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 [ 27.338335] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 27.344444] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 27.381766] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 27.419590] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 27.433502] audit: type=1400 audit(1520405704.591:10): avc: denied { sys_chroot } for pid=4169 comm="syzkaller057829" 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 [ 27.437439] ================================================================== [ 27.465471] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 27.471587] Read of size 8 at addr ffff8801cb682b18 by task syzkaller057829/4169 [ 27.479087] [ 27.480689] CPU: 1 PID: 4169 Comm: syzkaller057829 Not tainted 4.16.0-rc4+ #254 [ 27.488103] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.497426] Call Trace: [ 27.499988] dump_stack+0x194/0x24d [ 27.503591] ? arch_local_irq_restore+0x53/0x53 [ 27.508237] ? show_regs_print_info+0x18/0x18 [ 27.512707] ? ip6_xmit+0x1f76/0x2260 [ 27.516480] print_address_description+0x73/0x250 [ 27.521302] ? ip6_xmit+0x1f76/0x2260 [ 27.525076] kasan_report+0x23c/0x360 [ 27.528878] __asan_report_load8_noabort+0x14/0x20 [ 27.533788] ip6_xmit+0x1f76/0x2260 [ 27.537398] ? ip6_finish_output2+0x23d0/0x23d0 [ 27.542042] ? fl6_update_dst+0x127/0x2b0 [ 27.546164] ? inet6_csk_route_socket+0x691/0xe80 [ 27.550981] ? trace_hardirqs_off+0x10/0x10 [ 27.555279] ? lock_acquire+0x1d5/0x580 [ 27.559220] ? lock_acquire+0x1d5/0x580 [ 27.563164] ? inet6_csk_xmit+0x114/0x580 [ 27.567282] ? trace_hardirqs_off+0x10/0x10 [ 27.571577] ? lock_release+0xa40/0xa40 [ 27.575546] inet6_csk_xmit+0x2fc/0x580 [ 27.579492] ? inet6_csk_update_pmtu+0x160/0x160 [ 27.584218] ? __sk_dst_check+0x1a5/0x380 [ 27.588341] ? sock_kzfree_s+0x60/0x60 [ 27.592216] l2tp_xmit_skb+0x105f/0x1410 [ 27.596257] ? l2tp_session_create+0xb80/0xb80 [ 27.600811] ? sock_wmalloc+0x15d/0x1d0 [ 27.604756] ? iov_iter_advance+0x13f0/0x13f0 [ 27.609225] ? pppol2tp_sendmsg+0x41b/0x670 [ 27.613520] pppol2tp_sendmsg+0x470/0x670 [ 27.617642] ? selinux_socket_sendmsg+0x36/0x40 [ 27.622282] ? pppol2tp_getsockopt+0x900/0x900 [ 27.626834] sock_sendmsg+0xca/0x110 [ 27.630521] ___sys_sendmsg+0x767/0x8b0 [ 27.634472] ? copy_msghdr_from_user+0x590/0x590 [ 27.639203] ? __pmd_alloc+0x4e0/0x4e0 [ 27.643061] ? selinux_socket_connect+0x311/0x730 [ 27.647876] ? trace_hardirqs_off+0x10/0x10 [ 27.652170] ? find_held_lock+0x35/0x1d0 [ 27.656203] ? __fget_light+0x2b2/0x3c0 [ 27.660149] ? fget_raw+0x20/0x20 [ 27.663590] ? __do_page_fault+0x5f7/0xc90 [ 27.667795] ? lock_downgrade+0x980/0x980 [ 27.671920] __sys_sendmsg+0xe5/0x210 [ 27.675689] ? __sys_sendmsg+0xe5/0x210 [ 27.679633] ? SyS_shutdown+0x290/0x290 [ 27.683585] ? __do_page_fault+0x3d6/0xc90 [ 27.687800] ? move_addr_to_kernel+0x60/0x60 [ 27.692182] SyS_sendmsg+0x2d/0x50 [ 27.695693] ? __sys_sendmsg+0x210/0x210 [ 27.699725] do_syscall_64+0x281/0x940 [ 27.703582] ? __do_page_fault+0xc90/0xc90 [ 27.707788] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.712252] ? finish_task_switch+0x1c1/0x7e0 [ 27.716716] ? syscall_return_slowpath+0x550/0x550 [ 27.721616] ? syscall_return_slowpath+0x2ac/0x550 [ 27.726515] ? prepare_exit_to_usermode+0x350/0x350 [ 27.731499] ? retint_user+0x18/0x18 [ 27.735189] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.740008] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.745165] RIP: 0033:0x441f79 [ 27.748324] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 27.756000] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441f79 [ 27.763238] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 27.770478] RBP: 00000000004a3fa6 R08: 0000000120080522 R09: 0000000120080522 [ 27.777715] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 27.784952] R13: 0000000000402fb0 R14: 0000000000000000 R15: 0000000000000000 [ 27.792204] [ 27.793804] Allocated by task 4161: [ 27.797399] save_stack+0x43/0xd0 [ 27.800818] kasan_kmalloc+0xad/0xe0 [ 27.804498] kasan_slab_alloc+0x12/0x20 [ 27.808441] kmem_cache_alloc+0x12e/0x760 [ 27.812556] dst_alloc+0x11f/0x1a0 [ 27.816066] rt_dst_alloc+0xe9/0x4e0 [ 27.819747] ip_route_output_key_hash_rcu+0xa59/0x2fe0 [ 27.824992] ip_route_output_key_hash+0x20b/0x370 [ 27.829802] __ip4_datagram_connect+0xa67/0x1240 [ 27.834525] __ip6_datagram_connect+0x749/0x12d0 [ 27.839247] ip6_datagram_connect+0x2f/0x50 [ 27.843535] inet_dgram_connect+0x16b/0x1f0 [ 27.847824] SYSC_connect+0x213/0x4a0 [ 27.851593] SyS_connect+0x24/0x30 [ 27.855100] do_syscall_64+0x281/0x940 [ 27.858954] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.864110] [ 27.865708] Freed by task 0: [ 27.868693] save_stack+0x43/0xd0 [ 27.872117] __kasan_slab_free+0x11a/0x170 [ 27.876321] kasan_slab_free+0xe/0x10 [ 27.880090] kmem_cache_free+0x83/0x2a0 [ 27.884035] dst_destroy+0x257/0x370 [ 27.887716] dst_destroy_rcu+0x16/0x20 [ 27.891573] rcu_process_callbacks+0xd6c/0x17f0 [ 27.896209] __do_softirq+0x2d7/0xb85 [ 27.899975] [ 27.901572] The buggy address belongs to the object at ffff8801cb682b00 [ 27.901572] which belongs to the cache ip_dst_cache of size 160 [ 27.914292] The buggy address is located 24 bytes inside of [ 27.914292] 160-byte region [ffff8801cb682b00, ffff8801cb682ba0) [ 27.926050] The buggy address belongs to the page: [ 27.930950] page:ffffea00072da080 count:1 mapcount:0 mapping:ffff8801cb682000 index:0xffff8801cb682000 [ 27.940365] flags: 0x2fffc0000000100(slab) [ 27.944570] raw: 02fffc0000000100 ffff8801cb682000 ffff8801cb682000 000000010000000a [ 27.952422] raw: ffff8801d5bb7738 ffffea000716fe60 ffff8801d5bb8680 0000000000000000 [ 27.960279] page dumped because: kasan: bad access detected [ 27.965961] [ 27.967558] Memory state around the buggy address: [ 27.972457] ffff8801cb682a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.979784] ffff8801cb682a80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 27.987108] >ffff8801cb682b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.994433] ^ [ 27.998550] ffff8801cb682b80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 28.005877] ffff8801cb682c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.013200] ================================================================== [ 28.020524] Disabling lock debugging due to kernel taint [ 28.025981] Kernel panic - not syncing: panic_on_warn set ... [ 28.025981] [ 28.033315] CPU: 1 PID: 4169 Comm: syzkaller057829 Tainted: G B 4.16.0-rc4+ #254 [ 28.042030] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.051351] Call Trace: [ 28.053910] dump_stack+0x194/0x24d [ 28.057506] ? arch_local_irq_restore+0x53/0x53 [ 28.062142] ? kasan_end_report+0x32/0x50 [ 28.066262] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.070985] ? vsnprintf+0x1ed/0x1900 [ 28.074762] ? ip6_xmit+0x1ec0/0x2260 [ 28.078533] panic+0x1e4/0x41c [ 28.081696] ? refcount_error_report+0x214/0x214 [ 28.086422] ? add_taint+0x1c/0x50 [ 28.089932] ? add_taint+0x1c/0x50 [ 28.093440] ? ip6_xmit+0x1f76/0x2260 [ 28.097209] kasan_end_report+0x50/0x50 [ 28.101149] kasan_report+0x149/0x360 [ 28.104921] __asan_report_load8_noabort+0x14/0x20 [ 28.109818] ip6_xmit+0x1f76/0x2260 [ 28.113418] ? ip6_finish_output2+0x23d0/0x23d0 [ 28.118055] ? fl6_update_dst+0x127/0x2b0 [ 28.122171] ? inet6_csk_route_socket+0x691/0xe80 [ 28.126982] ? trace_hardirqs_off+0x10/0x10 [ 28.131273] ? lock_acquire+0x1d5/0x580 [ 28.135213] ? lock_acquire+0x1d5/0x580 [ 28.139152] ? inet6_csk_xmit+0x114/0x580 [ 28.143270] ? trace_hardirqs_off+0x10/0x10 [ 28.147561] ? lock_release+0xa40/0xa40 [ 28.151513] inet6_csk_xmit+0x2fc/0x580 [ 28.155454] ? inet6_csk_update_pmtu+0x160/0x160 [ 28.160180] ? __sk_dst_check+0x1a5/0x380 [ 28.164297] ? sock_kzfree_s+0x60/0x60 [ 28.168161] l2tp_xmit_skb+0x105f/0x1410 [ 28.172194] ? l2tp_session_create+0xb80/0xb80 [ 28.176745] ? sock_wmalloc+0x15d/0x1d0 [ 28.180689] ? iov_iter_advance+0x13f0/0x13f0 [ 28.185153] ? pppol2tp_sendmsg+0x41b/0x670 [ 28.189445] pppol2tp_sendmsg+0x470/0x670 [ 28.193562] ? selinux_socket_sendmsg+0x36/0x40 [ 28.198201] ? pppol2tp_getsockopt+0x900/0x900 [ 28.202752] sock_sendmsg+0xca/0x110 [ 28.206435] ___sys_sendmsg+0x767/0x8b0 [ 28.210378] ? copy_msghdr_from_user+0x590/0x590 [ 28.215106] ? __pmd_alloc+0x4e0/0x4e0 [ 28.218960] ? selinux_socket_connect+0x311/0x730 [ 28.223775] ? trace_hardirqs_off+0x10/0x10 [ 28.228065] ? find_held_lock+0x35/0x1d0 [ 28.232096] ? __fget_light+0x2b2/0x3c0 [ 28.236039] ? fget_raw+0x20/0x20 [ 28.239468] ? __do_page_fault+0x5f7/0xc90 [ 28.243670] ? lock_downgrade+0x980/0x980 [ 28.247795] __sys_sendmsg+0xe5/0x210 [ 28.251565] ? __sys_sendmsg+0xe5/0x210 [ 28.255507] ? SyS_shutdown+0x290/0x290 [ 28.259454] ? __do_page_fault+0x3d6/0xc90 [ 28.263662] ? move_addr_to_kernel+0x60/0x60 [ 28.268040] SyS_sendmsg+0x2d/0x50 [ 28.271547] ? __sys_sendmsg+0x210/0x210 [ 28.275576] do_syscall_64+0x281/0x940 [ 28.279430] ? __do_page_fault+0xc90/0xc90 [ 28.283635] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.288097] ? finish_task_switch+0x1c1/0x7e0 [ 28.292560] ? syscall_return_slowpath+0x550/0x550 [ 28.297458] ? syscall_return_slowpath+0x2ac/0x550 [ 28.302356] ? prepare_exit_to_usermode+0x350/0x350 [ 28.307339] ? retint_user+0x18/0x18 [ 28.311022] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.315837] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 28.320994] RIP: 0033:0x441f79 [ 28.324152] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 28.331828] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441f79 [ 28.339064] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 28.346309] RBP: 00000000004a3fa6 R08: 0000000120080522 R09: 0000000120080522 [ 28.353545] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 28.360784] R13: 0000000000402fb0 R14: 0000000000000000 R15: 0000000000000000 [ 28.368372] Dumping ftrace buffer: [ 28.371882] (ftrace buffer empty) [ 28.375562] Kernel Offset: disabled [ 28.379158] Rebooting in 86400 seconds..