Thread (35 messages) 35 messages, 8 authors, 2021-03-29

Re: [PATCH v3 04/17] module: ensure __cfi_check alignment

From: Kees Cook <hidden>
Date: 2021-03-26 04:35:11
Also in: bpf, linux-arch, linux-hardening, linux-kbuild, linux-pci, lkml

On Tue, Mar 23, 2021 at 01:39:33PM -0700, Sami Tolvanen wrote:
CONFIG_CFI_CLANG_SHADOW assumes the __cfi_check() function is page
aligned and at the beginning of the .text section. While Clang would
normally align the function correctly, it fails to do so for modules
with no executable code.

This change ensures the correct __cfi_check() location and
alignment. It also discards the .eh_frame section, which Clang can
generate with certain sanitizers, such as CFI.

Link: https://bugs.llvm.org/show_bug.cgi?id=46293
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Yay macros! :)

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help