Re: [PATCH] ima: Fix the error code for restoring the PCR value

2021-03-25 Thread Mimi Zohar
On Wed, 2021-03-24 at 09:00 +, Roberto Sassu wrote: > > From: lihuafei > > Sent: Tuesday, March 23, 2021 2:41 PM > > ping. :-) > > > > On 2021/3/3 11:28, Li Huafei wrote: > > > In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a > > > buffer of type u8, which contains the dum

RE: [PATCH] ima: Fix the error code for restoring the PCR value

2021-03-24 Thread Roberto Sassu
> From: lihuafei > Sent: Tuesday, March 23, 2021 2:41 PM > ping. :-) > > On 2021/3/3 11:28, Li Huafei wrote: > > In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a > > buffer of type u8, which contains the dumped 32-bit pcr value. > > Currently, only the least significant byte i

Re: [PATCH] ima: Fix the error code for restoring the PCR value

2021-03-23 Thread Li Huafei
ping. :-) On 2021/3/3 11:28, Li Huafei wrote: In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a buffer of type u8, which contains the dumped 32-bit pcr value. Currently, only the least significant byte is used to restore the pcr value. We should convert hdr[HDR_PCR].data to a

[PATCH] ima: Fix the error code for restoring the PCR value

2021-03-03 Thread Li Huafei
In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a buffer of type u8, which contains the dumped 32-bit pcr value. Currently, only the least significant byte is used to restore the pcr value. We should convert hdr[HDR_PCR].data to a pointer of type u32 before fetching the value to