From: Helge Deller Date: Thu, 28 Dec 2023 10:36:03 +0000 (+0100) Subject: linux/export: Ensure natural alignment of kcrctab array X-Git-Tag: v6.1.71~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95e21657ffe90b031ed1e789255389fb2122fdb4;p=thirdparty%2Fkernel%2Fstable.git linux/export: Ensure natural alignment of kcrctab array [ Upstream commit 753547de0daecbdbd1af3618987ddade325d9aaa ] The ___kcrctab section holds an array of 32-bit CRC values. Add a .balign 4 to tell the linker the correct memory alignment. Fixes: f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs") Signed-off-by: Helge Deller Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- diff --git a/include/linux/export-internal.h b/include/linux/export-internal.h index fe7e6ba918f10..29de29af9546c 100644 --- a/include/linux/export-internal.h +++ b/include/linux/export-internal.h @@ -12,6 +12,7 @@ #define SYMBOL_CRC(sym, crc, sec) \ asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \ + ".balign 4" "\n" \ "__crc_" #sym ":" "\n" \ ".long " #crc "\n" \ ".previous" "\n")