Loading
ima: Fix violation digests extending issue in virtcca
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 slot of virtcca is allocated always. Fixes: 24ac42fb ("ima: rot: Adapt VirtCCA into Rot") Signed-off-by:Huaxin Lu <luhuaxin1@huawei.com>