diff options
| author | Sean Christopherson <seanjc@google.com> | 2025-12-01 18:03:34 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-12-02 08:49:37 -0800 |
| commit | af62fe2494da84eb01752282c8228c9bb3fe9f67 (patch) | |
| tree | b3e0e2442baad42485af1f35df4033a209e48584 /scripts/objdiff | |
| parent | 9935df5333aa503a18de5071f53762b65c783c4c (diff) | |
KVM: Harden and prepare for modifying existing guest_memfd memslots
Unbind guest_memfd memslots if KVM commits a MOVE or FLAGS_ONLY memslot
change to harden against use-after-free, and to prepare for eventually
supporting dirty logging on guest_memfd memslots, at which point
FLAGS_ONLY changes will be expected/supported.
Add two separate WARNs, once to yell if a guest_memfd memslot is moved
(which KVM is never expected to allow/support), and again if the unbind()
is triggered, to help detect uAPI goofs prior to deliberately allowing
FLAGS_ONLY changes.
Link: https://patch.msgid.link/20251202020334.1171351-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
