Home
last modified time | relevance | path

Searched hist:"6 d14c651" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/security/integrity/ima/
H A Dima_kexec.c6d14c651 Thu Feb 04 11:49:50 CST 2021 Lakshmi Ramasubramanian <nramas@linux.microsoft.com> ima: Free IMA measurement buffer on error

IMA allocates kernel virtual memory to carry forward the measurement
list, from the current kernel to the next kernel on kexec system call,
in ima_add_kexec_buffer() function. In error code paths this memory
is not freed resulting in memory leak.

Free the memory allocated for the IMA measurement list in
the error code paths in ima_add_kexec_buffer() function.

Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Suggested-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Fixes: 7b8589cc29e7 ("ima: on soft reboot, save the measurement list")
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>