Skip to content

Overflow of unspecified length array in include/uapi/linux/lsm.h #347

@broonie

Description

@broonie

Building at least an arm64 defconfig for next 20231220 using GCC 10 we see:

3    include/linux/fortify-string.h:57:29: error: '__builtin_memcpy' offset 32 is out of the bounds [0, 0] [-Werror=array-bounds]
2    security/security.c:810:2: error: 'memcpy' offset 32 is out of the bounds [0, 0] [-Werror=array-bounds]

due to struct lsm_ctx.

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