diff options
| author | Jann Horn <jannh@google.com> | 2026-08-10 17:33:59 +0200 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-30 06:40:48 -0700 |
| commit | 97818b2fa7082e940ddd36dab12a68615300e798 (patch) | |
| tree | ffeb3d493b93ca6c290151a4d6841a94d6c6f7e1 /tools/perf/scripts/python/libxed.py | |
| parent | 88c15bbd43ae95a2c81f3f21a7fd8f4fb0914902 (diff) | |
KVM: SEV: Fix page dirtying in sev_gmem_post_populate()
set_page_dirty() requires that the caller holds some kind of lock to
ensure that the page's mapping does not concurrently go away.
That is not the case for a random page we got from get_user_pages_fast(),
so use set_page_dirty_lock().
Fixes: 97cd21d57e9b ("KVM: SEV: Mark source page dirty when writing back CPUID data on failure")
Cc: stable@vger.kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Link: https://patch.msgid.link/20260810-x86-kvm-setpagedirty-v1-1-85f180892d4f@google.com
[sean: tag for stable]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
