From: Quan Xu Subject: Re: [PATCH 1/2] KVM: VMX: remove I/O port 0x80 bypass on Intel hosts Date: Wed, 6 Dec 2017 09:38:50 +0800 Message-ID: References: <20171201182110.7143-1-jmattson@google.com> <20171205213206.GE20099@flask> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: kvm@vger.kernel.org, P J P , Andrew Honig To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Jim Mattson Return-path: Received: from mail-oi0-f66.google.com ([209.85.218.66]:33493 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753281AbdLFBi6 (ORCPT ); Tue, 5 Dec 2017 20:38:58 -0500 Received: by mail-oi0-f66.google.com with SMTP id w131so1582894oiw.0 for ; Tue, 05 Dec 2017 17:38:58 -0800 (PST) In-Reply-To: <20171205213206.GE20099@flask> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 2017/12/06 05:32, Radim Krčmář wrote: > 2017-12-01 10:21-0800, Jim Mattson: >> From: Andrew Honig >> >> This fixes CVE-2017-1000407. >> >> KVM allows guests to directly access I/O port 0x80 on Intel hosts. If >> the guest floods this port with writes it generates exceptions and >> instability in the host kernel, leading to a crash. With this change >> guest writes to port 0x80 on Intel will behave the same as they >> currently behave on AMD systems. >> >> Prevent the flooding by removing the code that sets port 0x80 as a >> passthrough port. This is essentially the same as upstream patch >> 99f85a28a78e96d28907fe036e1671a218fee597, except that patch was >> for AMD chipsets and this patch is for Intel. >> >> Signed-off-by: Andrew Honig >> Signed-off-by: Jim Mattson Reviewed-by: Quan Xu Quan Alibaba Cloud > Fixes: fdef3ad1b386 ("KVM: VMX: Enable io bitmaps to avoid IO port 0x80 VMEXITs") > Cc: > > Applied, thanks. The commit that introduced it boasted 3-5% performance > improvements when compiling the kernel -- have you noticed regressions? >