Skip to content

Some sanitizers should be target modifiers #138453

Open
@Darksonn

Description

@Darksonn

Some sanitizers need to be target modifiers, and some do not. For now, we should mark all sanitizers as target modifiers except for these: AddressSanitizer, LeakSanitizer

For kCFI, the helper flag -Zsanitizer-cfi-normalize-integers should also be a target modifier. Same applies to #138311 when it lands.

The shadow-call-stack sanitizer is currently being considered as a target modifier for simplicity. However, there are cases where it does not need to be a target modifier.

Please see the target modifiers tracking issue for more details. See also the Tracking Issue for stabilizing the sanitizers.

cc @rcvalle @azhogin @maurer
@rustbot label F-target_modifiers A-sanitizers

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sanitizersArea: Sanitizers for correctness and code qualityC-bugCategory: This is a bug.F-target_modifiers`#![feature(target_modifiers)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions