]> Gentwo Git Trees - linux/.git/commit
ima: verify if the segment size has changed
authorSteven Chen <chenste@linux.microsoft.com>
Mon, 21 Apr 2025 22:25:13 +0000 (15:25 -0700)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 29 Apr 2025 19:54:54 +0000 (15:54 -0400)
commitd0a00ce470e3ea19ba3b9f1c390aee739570a44a
treedc0e448b8342f9ef88b2e7b2c32ae38d9bceba27
parent9f0ec4b16f2b41d663f688a8012e9e52b2657eba
ima: verify if the segment size has changed

kexec 'load' may be called multiple times. Free and realloc the buffer
only if the segment_size is changed from the previous kexec 'load' call.

Signed-off-by: Steven Chen <chenste@linux.microsoft.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Baoquan He <bhe@redhat.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com> # ppc64/kvm
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_kexec.c