Re: [PATCH 03/24] alpha: select ARCH_HAS_UBSAN

From: Magnus Lindholm

Date: Tue Sep 01 2026 - 18:35:12 EST


Hi Matt,

On Tue, Sep 1, 2026 at 5:50 PM Matt Turner <mattst88@xxxxxxxxx> wrote:
>
> GCC's undefined behavior sanitizer has no architecture-specific runtime
> requirements. Enable it for Alpha to allow UBSAN instrumentation of the
> kernel.
>
I tested this patch on top of my rebased Alpha GENERIC_ENTRY patch on an
AlphaServer ES40. The kernel built and booted successfully with
CONFIG_UBSAN=y, and the UBSAN instrumentation is active.

CONFIG_UBSAN_ALIGNMENT did expose a misaligned struct bucket_table
allocation in lib/rhashtable.c. This appears to be a generic rhashtable
allocation-alignment issue rather than an Alpha UBSAN problem.

Tested-by: Magnus Lindholm <linmag7@xxxxxxxxx>
Reviewed-by: Magnus Lindholm <linmag7@xxxxxxxxx>

Regards,
Magnus