1. 24 Jun, 2022 1 commit
    • Tom Lendacky's avatar
      crypto: ccp - During shutdown, check SEV data pointer before using · 1b05ece0
      Tom Lendacky authored
      On shutdown, each CCP device instance performs shutdown processing.
      However, __sev_platform_shutdown_locked() uses the controlling psp
      structure to obtain the pointer to the sev_device structure. However,
      during driver initialization, it is possible that an error can be received
      from the firmware that results in the sev_data pointer being cleared from
      the controlling psp structure. The __sev_platform_shutdown_locked()
      function does not check for this situation and will segfault.
      
      While not common, this scenario should be accounted for. Add a check for a
      NULL sev_device structure before attempting to use it.
      
      Fixes: 5441a07a ("crypto: ccp - shutdown SEV firmware on kexec")
      Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      1b05ece0
  2. 17 Jun, 2022 7 commits
  3. 10 Jun, 2022 20 commits
  4. 06 Jun, 2022 3 commits
  5. 05 Jun, 2022 9 commits