Re: [PATCH v4 21/24] powerpc/pseries: Pass PLPKS password on kexec

2023-01-30 Thread Russell Currey
On Tue, 2023-01-24 at 14:36 +1000, Nicholas Piggin wrote: > On Fri Jan 20, 2023 at 5:43 PM AEST, Andrew Donnellan wrote: > > From: Russell Currey > > > > Before interacting with the PLPKS, we ask the hypervisor to > > generate a > > password for the current boot, which is then required for most

Re: [PATCH v4 21/24] powerpc/pseries: Pass PLPKS password on kexec

2023-01-24 Thread Michael Ellerman
Andrew Donnellan writes: > On Tue, 2023-01-24 at 14:36 +1000, Nicholas Piggin wrote: >> >> > +   prop = of_find_property(of_chosen, "ibm,plpks-pw", ); >> > +   if (prop) { >> > +   ospasswordlength = (u16)len; >> > +   ospassword = kzalloc(ospasswordlength,

Re: [PATCH v4 21/24] powerpc/pseries: Pass PLPKS password on kexec

2023-01-23 Thread Andrew Donnellan
On Tue, 2023-01-24 at 14:36 +1000, Nicholas Piggin wrote: > > > +   prop = of_find_property(of_chosen, "ibm,plpks-pw", ); > > +   if (prop) { > > +   ospasswordlength = (u16)len; > > +   ospassword = kzalloc(ospasswordlength, GFP_KERNEL); > > +   if

Re: [PATCH v4 21/24] powerpc/pseries: Pass PLPKS password on kexec

2023-01-23 Thread Nicholas Piggin
On Fri Jan 20, 2023 at 5:43 PM AEST, Andrew Donnellan wrote: > From: Russell Currey > > Before interacting with the PLPKS, we ask the hypervisor to generate a > password for the current boot, which is then required for most further > PLPKS operations. > > If we kexec into a new kernel, the new

[PATCH v4 21/24] powerpc/pseries: Pass PLPKS password on kexec

2023-01-20 Thread Andrew Donnellan
From: Russell Currey Before interacting with the PLPKS, we ask the hypervisor to generate a password for the current boot, which is then required for most further PLPKS operations. If we kexec into a new kernel, the new kernel will try and fail to generate a new password, as the password has