]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/sm4 - Fix invalid section entry size
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Fri, 15 Oct 2021 03:47:33 +0000 (11:47 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Oct 2021 12:23:01 +0000 (20:23 +0800)
commit2f07fa070328c41c97d8b973c527d7811aca8e96
tree08b5cad3694f9b1ed638c7e76be58f978cbaab32
parentea5f5fd68eeb520ecf24dfdddeeb4872c6392d0e
crypto: x86/sm4 - Fix invalid section entry size

This fixes the following warning:

  vmlinux.o: warning: objtool: elf_update: invalid section entry size

The size of the rodata section is 164 bytes, directly using the
entry_size of 164 bytes will cause errors in some versions of the
gcc compiler, while using 16 bytes directly will cause errors in
the clang compiler. This patch correct it by filling the size of
rodata to a 16-byte boundary.

Fixes: 146c3e35cf81 ("crypto: x86/sm4 - add AES-NI/AVX/x86_64 implementation")
Fixes: 188666b86df7 ("crypto: x86/sm4 - add AES-NI/AVX2/x86_64 implementation")
Reported-by: Peter Zijlstra <peterz@infradead.org>
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tested-by: Heyuan Shi <heyuan@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sm4-aesni-avx-asm_64.S
arch/x86/crypto/sm4-aesni-avx2-asm_64.S