diff options
author | Mihai Carabas <mihai.carabas@oracle.com> | 2022-01-19 19:14:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-01 19:25:46 +0300 |
commit | c534287a57dc32d89428f10a06650086a4290521 (patch) | |
tree | f465c8be4d796f89394f5a72475fdd98ba0a3346 /drivers/hwmon/lm90.c | |
parent | 3572205b194c75e6d4594cd0376cd5516e65fb94 (diff) | |
download | linux-c534287a57dc32d89428f10a06650086a4290521.tar.xz |
efi/libstub: arm64: Fix image check alignment at entry
[ Upstream commit e9b7c3a4263bdcfd31bc3d03d48ce0ded7a94635 ]
The kernel is aligned at SEGMENT_SIZE and this is the size populated in the PE
headers:
arch/arm64/kernel/efi-header.S: .long SEGMENT_ALIGN // SectionAlignment
EFI_KIMG_ALIGN is defined as: (SEGMENT_ALIGN > THREAD_ALIGN ? SEGMENT_ALIGN :
THREAD_ALIGN)
So it depends on THREAD_ALIGN. On newer builds this message started to appear
even though the loader is taking into account the PE header (which is stating
SEGMENT_ALIGN).
Fixes: c32ac11da3f8 ("efi/libstub: arm64: Double check image alignment at entry")
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon/lm90.c')
0 files changed, 0 insertions, 0 deletions