Skip to content

Detect out of bounds array indexes #25

@kees

Description

@kees

The use of the Undefined Behavior Sanitizer (UBSan)'s "bounds checker" can detect array indexing outside the of known arrays sizes. This feature needs separated from the general UBSan features so it can be enabled independently.

Since builds with libubsan grow the kernel size by almost 5% (for all the debugging), there also needs to be a "trap only" mode for UBSan, which creates a trade-off of having minimal image size impact, but make bounds failures fatal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Linux] v5.7Released in Linux kernel v5.7compilerNeeds compiler support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions