Linux mainline fork with MSM8998 patches | https://mainline.space | Currently supported devices: OnePlus 5/5T, Xiaomi Mi 6, F(x)tec Pro¹ (2019 QX1000 model) & Sony Xperia XZ Premium (UNTESTED!)
Find a file
Paolo Bonzini 9191b8f074 KVM: x86/mmu: avoid NULL-pointer dereference on page freeing bugs
WARN and bail if KVM attempts to free a root that isn't backed by a shadow
page.  KVM allocates a bare page for "special" roots, e.g. when using PAE
paging or shadowing 2/3/4-level page tables with 4/5-level, and so root_hpa
will be valid but won't be backed by a shadow page.  It's all too easy to
blindly call mmu_free_root_page() on root_hpa, be nice and WARN instead of
crashing KVM and possibly the kernel.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-02-25 08:20:16 -05:00
arch KVM: x86/mmu: avoid NULL-pointer dereference on page freeing bugs 2022-02-25 08:20:16 -05:00
block
certs
crypto
Documentation KVM: x86: Provide per VM capability for disabling PMU virtualization 2022-02-25 08:20:14 -05:00
drivers
fs
include KVM: x86: Provide per VM capability for disabling PMU virtualization 2022-02-25 08:20:14 -05:00
init
ipc
kernel
lib
LICENSES
mm
net
samples
scripts
security
sound
tools KVM: selftests: Verify disabling PMU virtualization via KVM_CAP_CONFIG_PMU 2022-02-25 08:20:15 -05:00
usr
virt KVM: Move VM's worker kthreads back to the original cgroup before exiting. 2022-02-25 08:20:14 -05:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.