summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorYosry Ahmed <yosry.ahmed@linux.dev>2026-02-18 15:09:53 -0800
committerSean Christopherson <seanjc@google.com>2026-03-04 16:08:59 -0800
commita367b6e10372b46fa10debd889e89aa65ca65aee (patch)
tree6d08564e3b163351fb7a90a16ad620fdde608559 /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent0b97f929831a70e7ad6d9dbd30ae1f65dd43526d (diff)
KVM: nSVM: WARN and abort vmcb02 intercepts recalc if vmcb02 isn't active
WARN and bail early from nested_vmcb02_recalc_intercepts() if vmcb02 isn't the active/current VMCB, as recalculating intercepts for vmcb01 using logic intended for merging vmcb12 and vmcb01 intercepts can yield unexpected and unwanted results. In addition to hardening against general bugs, this will provide additional safeguards "if" nested_vmcb02_recalc_intercepts() is invoked directly from nested_vmcb02_prepare_control(). Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev> [sean: split to separate patch, bail early on "failure"] Link: https://patch.msgid.link/20260218230958.2877682-4-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions