Re: [PATCH] crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked

From: Kim Phillips
Date: Fri Jan 26 2024 - 11:33:02 EST


On 1/26/24 5:59 AM, Liam Merwick wrote:
On 25/01/2024 23:12, Kim Phillips wrote:
Fixes: 1b05ece0c9315 ("crypto: ccp - During shutdown, check SEV data pointer before using")

checkpatch warns about SHA1 of Fixes: having more than 12 chars...

However, although 1b05ece0c931 is the last commit to change this
functionality, I think this issue exists prior to that.

5441a07a127f ("crypto: ccp - shutdown SEV firmware on kexec")
might be more appropriate so that it'd get applied to linux-5.15.y
(where 1b05ece0c931 and 5441a07a127f have been backported to also)
This patch applies cleanly to linux-5.15.y.

1b05ece0c931 fixes 5441a07a127f, and I'm assuming Fixes: are transitive.

Cc: stable@xxxxxxxxxxxxxxx
Reviewed-by: Mario Limonciello <mario.limonciello@xxxxxxx>
Signed-off-by: Kim Phillips <kim.phillips@xxxxxxx>

Code changes LGTM, so
Reviewed-by: Liam Merwick <liam.merwick@xxxxxxxxxx>

Thanks for your review!

Kim