diff options
| author | 2025-12-01 18:03:34 -0800 | |
|---|---|---|
| committer | 2025-12-02 08:49:37 -0800 | |
| commit | af62fe2494da84eb01752282c8228c9bb3fe9f67 (patch) | |
| tree | b3e0e2442baad42485af1f35df4033a209e48584 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | KVM: Disallow toggling KVM_MEM_GUEST_MEMFD on an existing memslot (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 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
