Skip to content

Some sanitizers are always recoverable #154670

@Darksonn

Description

@Darksonn

Clang currently declares that the three kernel- sanitizers are always recoverable.

  • kernel-address
  • kernel-hwaddress
  • kcfi

See the code here.

This means that in clang, you do not need to specify -fsanitize-recover for these sanitizers (it is implied), and -fnosanitize-recover is an error for them. Whereas in Rust, you do in fact have to explicitly specify that you want the recoverable version when you enable kernel-address or kernel-hwaddress. In fact, if you do not specify it with kernel-hwaddres, this leads to different hwasan symbols being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sanitizersArea: Sanitizers for correctness and code qualityC-bugCategory: This is a bug.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions