#FOSSY2026 KCFI Comes to GCC: Code-Reuse Defenses for the Linux Kernel - Kees Co...

@mjw@mastodon.nl

#FOSSY2026 KCFI Comes to GCC: Code-Reuse Defenses for the Linux Kernel - Kees Cook
2026.fossy.ca/schedule/present

Stop any redirection of code (reusing existing code) with indirect function calls. Forward edge. What are the expected targets for indirect function calls. Must have same prototype. Put hash of prototype before function. Crash course on GCC internals. Front end adds -fsanitize=kcfi. itanium c++ mangling, hashed. RTL wrapper for new type of 'CALL". inline handling. 4 backend arches, i386 (x86_64), aarch64, arm, riscv. Half code is regression testing. Fun bug for cross call merging. Create "KCFI check and call" RTL instruction. Hard to get review across the entire series. But looks like all parts have gotten reviews now. Daft Punk - Harder Better Faster Stronger.