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] [day] [month] [year] [list]
Message-ID: <174622200919.880464.5585413953831680839.b4-ty@google.com>
Date: Fri,  2 May 2025 14:51:05 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] KVM: x86: Revert kvm_x86_ops.mem_enc_ioctl() back to an
 OPTIONAL hook

On Fri, 02 May 2025 13:34:21 -0700, Sean Christopherson wrote:
> Restore KVM's handling of a NULL kvm_x86_ops.mem_enc_ioctl, as the hook is
> NULL on SVM when CONFIG_KVM_AMD_SEV=n, and TDX will soon follow suit.
> 
>   ------------[ cut here ]------------
>   WARNING: CPU: 0 PID: 1 at arch/x86/include/asm/kvm-x86-ops.h:130 kvm_x86_vendor_init+0x178b/0x18e0
>   Modules linked in:
>   CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.15.0-rc2-dc1aead1a985-sink-vm #2 NONE
>   Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
>   RIP: 0010:kvm_x86_vendor_init+0x178b/0x18e0
>   Call Trace:
>    <TASK>
>    svm_init+0x2e/0x60
>    do_one_initcall+0x56/0x290
>    kernel_init_freeable+0x192/0x1e0
>    kernel_init+0x16/0x130
>    ret_from_fork+0x30/0x50
>    ret_from_fork_asm+0x1a/0x30
>    </TASK>
>   ---[ end trace 0000000000000000 ]---
> 
> [...]

Applied very quickly to kvm-x86 vmx, as I want to get the TDX macro cleanups
applied.  I'll force push if someone finds an issue.

[1/1] KVM: x86: Revert kvm_x86_ops.mem_enc_ioctl() back to an OPTIONAL hook
      https://github.com/kvm-x86/linux/commit/f2d7993314a3

--
https://github.com/kvm-x86/linux/tree/next

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ