Loading
!14095 ima: Fix violation digests extending issue in virtcca
Merge Pull Request from: @HuaxinLuGitee EulerOS inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB98NJ ------------------------------ When ima processes violation measurement, the pre-allocated digest array of all 0xFF are extended. The length of array comes from the slot number of RoT. Currently the slot number of virtcca is zero if the algorithm configuration is same between ima and virtcca, which causes the NULL pointer access. This commit ensures the solt of virtcca is allocated always. Link:https://gitee.com/openeuler/kernel/pulls/14095 Reviewed-by:Zhang Peng <zhangpeng362@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>