Scott Constable cd8248f3e8
Fixed a bug in -fsanitize-kcfi-arity (#142867)
Compiling with `fsanitize-kcfi-arity` can crash the compiler if a
function has more than 6 arguments, including floating-point arguments
passed in XMM registers. This patch fixes the feature by only counter
integer and stack arguments toward kCFI arity. For example, the compiler
crashed when it attempted to generate kCFI arity information for this
function:
16b70698aa/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h (L680)

As noted in a comment, floating-point registers are not relevant to
enforcing kCFI at this time.
2025-06-18 17:52:55 +08:00
..
2025-02-14 11:38:47 +00:00
2025-03-30 16:38:16 -07:00