[PATCH] D135411: Add generic KCFI operand bundle lowering
Sami Tolvanen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 6 17:15:52 PDT 2022
samitolvanen added a comment.
In D135411#3841693 <https://reviews.llvm.org/D135411#3841693>, @kees wrote:
> What's the best way to test this in the kernel? I assume add `ARCH_SUPPORTS_CFI_CLANG` to an arch, and see what blows up? :)
Yes, I think that's the best way.
> Have you tried this on any other arch yet?
The generic lowering pass is not ideal for kernel use as-is, because it doesn't generate a consistent machine instruction sequence, which makes error handling more difficult. The primary target audience here is firmware running on less common architectures.
That being said, I did compile a 64-bit MIPS kernel using this pass, but I didn't try booting it. I would expect to run into quite a few issues initially.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135411/new/
https://reviews.llvm.org/D135411
More information about the cfe-commits
mailing list