Skip to content

Recommend disabling UNWIND_PATCH_PAC_INTO_SCS #2

@a13xp0p0v

Description

@a13xp0p0v

Hello!

In a13xp0p0v/kernel-hardening-checker#105 Daniel Micay @thestinger says that UNWIND_PATCH_PAC_INTO_SCS should be disabled, because it reduces security compared to both PAC and SCS.

Quoting:

PAC is a purely probabilistic security feature which can be bypassed through brute force attacks. PAC normally has 16 bits in the default configuration with 39-bit address space and 4k pages, but it drops to 7 bits with a 48-bit address space. It's even lower in some of the other configurations. SCS is a deterministic security feature, but it lacks a way to protect the shadow stack from arbitrary writes. It's difficult to say which is better, but having both enabled is clearly better for security than only PAC.

Please see more rationale in a13xp0p0v/kernel-hardening-checker#105.

How about changing the UNWIND_PATCH_PAC_INTO_SCS recommendation?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions