Bug 107048 - GCC lacks -fsanitize=kcfi
Summary: GCC lacks -fsanitize=kcfi
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: sanitizer (show other bugs)
Version: 13.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-27 07:28 UTC by peterz
Modified: 2023-09-06 14:45 UTC (History)
17 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2023-03-31 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peterz 2022-09-27 07:28:40 UTC
Please implement -fsanitize=kcfi to match llvm/clang:

  https://github.com/samitolvanen/llvm-project/commit/f7bf6a87c4fd945800115a17b8b61390541fabd0

The Linux kernel patches are queued and slated for the next merge window. Things like FineIBT rely on having this feature enabled.
Comment 1 ashimida 2022-10-24 09:25:57 UTC
(In reply to peterz from comment #0)
> Please implement -fsanitize=kcfi to match llvm/clang:
> 
>  
> https://github.com/samitolvanen/llvm-project/commit/
> f7bf6a87c4fd945800115a17b8b61390541fabd0
> 
> The Linux kernel patches are queued and slated for the next merge window.
> Things like FineIBT rely on having this feature enabled.

A related issue:
Bug 107374 - Please expand the size of flag_sanitize to uint64_t

Ref:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107374
Comment 2 Sam James 2023-01-24 05:42:21 UTC
See https://gcc.gnu.org/pipermail/gcc-patches/2022-December/608723.html and so on. kees mentioned this is currently in review and a new version is being spun up.