From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Feiner Subject: [kvm-unit-tests 0/5] Split large EPT mappings properly Date: Tue, 1 Mar 2016 11:30:17 -0800 Message-ID: <1456860622-31251-1-git-send-email-pfeiner@google.com> Cc: pfeiner@google.com To: kvm@vger.kernel.org, jan.kiszka@siemens.com, pbonzini@redhat.com Return-path: Received: from mail-pa0-f52.google.com ([209.85.220.52]:33420 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbcCATap (ORCPT ); Tue, 1 Mar 2016 14:30:45 -0500 Received: by mail-pa0-f52.google.com with SMTP id fl4so117461499pad.0 for ; Tue, 01 Mar 2016 11:30:45 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: install_ept_entry would overwrite arbitrary memory when it encountered a large page. I discovered the bug while working on a simple multi-page allocator, which I'm using for huge page testing, that sorts the free list in ascending order of HPA. Peter Feiner (5): x86: vmx.h: trivial whitespace fixes x86: vmx: Named constant: EPT_ADDR_MASK x86: vmx: Named constant: EPT_LEVEL_SHIFT x86: vmx: split large EPTEs in install_ept_entry x86: vmx: don't explicitly split identity EPT map x86/vmx.c | 65 +++++++++++++++++++++++++++++++++++++++++++-------------- x86/vmx.h | 9 +++++--- x86/vmx_tests.c | 7 ------- 3 files changed, 55 insertions(+), 26 deletions(-) -- 2.7.0.rc3.207.g0ac5344