From: Li Huafei <hidden> Date: 2021-03-03 11:41:00
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 restore the correct pcr value.
Fixes: 47fdee60b47f ("ima: use ima_parse_buf() to parse measurements headers")
Signed-off-by: Li Huafei <redacted>
---
security/integrity/ima/ima_template.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Li Huafei <hidden> Date: 2021-03-23 13:41:41
ping. :-)
On 2021/3/3 11:28, Li Huafei wrote:
quoted hunk
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 restore the correct pcr value.
Fixes: 47fdee60b47f ("ima: use ima_parse_buf() to parse measurements headers")
Signed-off-by: Li Huafei <redacted>
---
security/integrity/ima/ima_template.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: lihuafei
Sent: Tuesday, March 23, 2021 2:41 PM
ping. :-)
On 2021/3/3 11:28, Li Huafei wrote:
quoted
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 restore the correct pcr value.
Fixes: 47fdee60b47f ("ima: use ima_parse_buf() to parse measurements
headers")
quoted
Signed-off-by: Li Huafei <redacted>
Hi Li Huafei
yes, correct. Thanks for the patch.
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Roberto
HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063
Managing Director: Li Peng, Li Jian, Shi Yanli
On Wed, 2021-03-24 at 09:00 +0000, Roberto Sassu wrote:
quoted
From: lihuafei
Sent: Tuesday, March 23, 2021 2:41 PM
ping. :-)
On 2021/3/3 11:28, Li Huafei wrote:
quoted
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 restore the correct pcr value.
Fixes: 47fdee60b47f ("ima: use ima_parse_buf() to parse measurements
headers")
quoted
Signed-off-by: Li Huafei <redacted>
Hi Li Huafei
yes, correct. Thanks for the patch.
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
The patch set is now queued in next-integrity-testing.
thanks,
Mimi