lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <88E181D6-323E-4352-8E4C-7B7191707611@nutanix.com>
Date: Thu, 27 Feb 2025 19:05:27 +0000
From: Jon Kohler <jon@...anix.com>
To: Nikolay Borisov <nik.borisov@...e.com>
CC: Sean Christopherson <seanjc@...gle.com>,
        Paolo Bonzini
	<pbonzini@...hat.com>,
        "kvm@...r.kernel.org" <kvm@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/2] KVM: nVMX: Decouple EPT RWX bits from EPT
 Violation protection bits



> On Feb 27, 2025, at 1:52 AM, Nikolay Borisov <nik.borisov@...e.com> wrote:
> 
> !-------------------------------------------------------------------|
> CAUTION: External Email
> 
> |-------------------------------------------------------------------!
> 
> 
> 
> On 27.02.25 г. 2:07 ч., Sean Christopherson wrote:
>> Define independent macros for the RWX protection bits that are enumerated
>> via EXIT_QUALIFICATION for EPT Violations, and tie them to the RWX bits in
>> EPT entries via compile-time asserts.  Piggybacking the EPTE defines works
>> for now, but it creates holes in the EPT_VIOLATION_xxx macros and will
>> cause headaches if/when KVM emulates Mode-Based Execution (MBEC), or any
>> other features that introduces additional protection information.
>> Opportunistically rename EPT_VIOLATION_RWX_MASK to EPT_VIOLATION_PROT_MASK
>> so that it doesn't become stale if/when MBEC support is added.
>> No functional change intended.
>> Cc: Jon Kohler <jon@...anix.com>
>> Cc: Nikolay Borisov <nik.borisov@...e.com>
>> Signed-off-by: Sean Christopherson <seanjc@...gle.com>
> 
> Reviewed-by: Nikolay Borisov <nik.borisov@...e.com>

LGTM, but any chance we could hold this until I get the MBEC RFC
out? My apologies on the delay, I caught a terrible chest cold after
we met about it, followed by a secondary case of strep! Just getting
back into the grind now, so I need to rebase and send those out.

For anyone curious, the drafts are here:
https://github.com/JonKohler/linux/tree/mbec-rfc-v1-6.12 
https://github.com/JonKohler/qemu/tree/mbec-rfc-v1

I need to incorporate some early off-list review comments and send
it out properly, but in reference to this specific change, you can
see how I approached it here:
https://github.com/JonKohler/linux/commit/0d2e82704ed3eb28c105967c8acd7907523ded5b 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ