Skip to content

build fails on aarch64 with kernel 6.17+ #17852

@q66

Description

@q66

System information

Type Version/Name
Distribution Name Chimera Linux
Distribution Version rolling
Kernel Version 6.17.x
Architecture aarch64
OpenZFS Version 2.3.4 with backports (affects any version)

The following commit: torvalds/linux@9a6d3ff introduced an __aarch64__ check to the BITS_PER_LONG macro to avoid UB when compiling the 32-bit compat vDSO.

This breaks ZFS build because the zstd module inexplicably undefs __aarch64__ in the aarch64_compat.h header (module/zstd/include/aarch64_compat.h), without specifying any reason why. This causes __BITS_PER_LONG to become 32, which breaks due to __kernel_size_t becoming 4, which makes FORTIFY diagnostic checks in string.h error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions