[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-10 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > @AaronBallman I know of no other CFI attribute requests. Excellent, glad to hear there's not some massive set of changes waiting in the wings. > (But keep in mind that I'm not the CFI expert I play on TV.) Sorry, but you touched it last, so you own it. I don't make the

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-09 Thread Bill Wendling via cfe-commits
bwendling wrote: @AaronBallman I know of no other CFI attribute requests. (But keep in mind that I'm not the CFI expert I play on TV.) https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Also, this is ANOTHER bit on function types that we're using for CFI. I'm > wondering if this is actually a generally useful enough feature to be using > this much compiler resources. > > @AaronBallman ? I think CFI is pretty important for security posture (it basically

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-05 Thread Bill Wendling via cfe-commits
bwendling wrote: @erichkeane If the Arm attribute code were merged into `ExtraAttributeInfo`, it would save us a bit in `FunctionTypeExtraBitfields`. I can add more testing I suppose, but the tests I have here are a copy of the current CFI tests, which test all of the ways CFI is used. So I'm

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Testing seems insufficient, particularly around conversion rules/etc of these types. I would like to see quite a bit more for Sema/inside of templates/how this applies to instantiations of all these things, etc. Also, this is ANOTHER bit on function ty

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-04 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 1/2] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt' a

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-04 Thread Bill Wendling via cfe-commits
bwendling wrote: I moved the `cfi_salt` into the `FunctionProtoType` fields. I left it open for further additions. One bit of optimization I could do is merge the Arm stuff into this new struct, but wanted to do something a bit less cluttered first. https://github.com/llvm/llvm-project/pull/14

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-04 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 1/2] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt' a

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-05-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Something along the lines of FunctionTypeArmAttributes seems fine. https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-05-28 Thread Bill Wendling via cfe-commits
bwendling wrote: @efriedma-quic Okay, I'm not entirely sure I understand @erichkeane's concerns, but that's fine. Are you suggesting adding the salt information to the `FunctionType` instead? https://github.com/llvm/llvm-project/pull/141846 ___ cfe-c

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-05-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: See #135836 for discussion of why you can't use AttributedType like this. CC @PiJoules https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-05-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes The new 'cfi_salt' attribute is used to differentiate between two functions with the same type signature. It's applied to the function declaration, function definition, and function typedefs of the functi

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-05-28 Thread Bill Wendling via cfe-commits
https://github.com/bwendling created https://github.com/llvm/llvm-project/pull/141846 The new 'cfi_salt' attribute is used to differentiate between two functions with the same type signature. It's applied to the function declaration, function definition, and function typedefs of the function t