Commit f7eb5d5f authored by Dmytro Maluka's avatar Dmytro Maluka Committed by Tomasz Nowicki
Browse files

ANDROID: pkvm: x86: Fix NULL deref in sync_shadow_context_entry()



Fix possible NULL dereference of guest_ce when legacy IOMMU mode is
used. This NULL dereference happens when a shadow context entry is
freed, for instance during the machine reboot, when the host calls
intel_disable_iommus().

Bug: 395299836
Test: Boot, verify cpus are de-privileged and run a minimal protected vm.

Change-Id: I86f00855e838fbc079a28144f38b885eac07b166
Signed-off-by: default avatarDmytro Maluka <dmy@semihalf.com>
Signed-off-by: default avatarVineeth Pillai <vineethrp@google.com>
parent c254b60e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment