platform/x86/intel/ifs: Validate image size
mainline inclusion from mainline-v6.7-rc1 commit 25a76dbb36dd58ad4df7f6a4dc43061a10b0d817 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8RCIK CVE: N/A Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=25a76dbb36dd58ad4df7f6a4dc43061a10b0d817 ------------------------------------- Intel-SIG: commit 25a76dbb36dd ("platform/x86/intel/ifs: Validate image size") Backport to support IFS SAF & Array BIST on GNR & SRF ------------------------------------- Perform additional validation prior to loading IFS image. Error out if the size of the file being loaded doesn't match the size specified in the header. Signed-off-by:Jithu Joseph <jithu.joseph@intel.com> Reviewed-by:
Tony Luck <tony.luck@intel.com> Reviewed-by:
Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Tested-by:
Pengfei Xu <pengfei.xu@intel.com> Link: https://lore.kernel.org/r/20231005195137.3117166-6-jithu.joseph@intel.com Signed-off-by:
Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by:
Aichun Shi <aichun.shi@intel.com>
Loading
Please sign in to comment