[all-commits] [llvm/llvm-project] 32d213: [HWASAN] [RISC-V] Update EnableTaggingAbi for RISC...

Tharo via All-commits all-commits at lists.llvm.org
Tue Jan 20 17:20:29 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32d21326f3b60874fd72bbe509c06dbe5b729a32
      https://github.com/llvm/llvm-project/commit/32d21326f3b60874fd72bbe509c06dbe5b729a32
  Author: Tharo <tharo10600 at gmail.com>
  Date:   2026-01-21 (Wed, 21 Jan 2026)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan.h
    M compiler-rt/lib/hwasan/hwasan_linux.cpp

  Log Message:
  -----------
  [HWASAN] [RISC-V] Update EnableTaggingAbi for RISC-V linux. (#176616)

Enabling pointer tagging in the userspace ABI for RISC-V kernels differs
to that of Aarch64. It requires requesting a particular number of masked
pointer bits, an error is returned if the platform could not accommodate
the request:
https://docs.kernel.org/arch/riscv/uabi.html#pointer-masking

While experimenting with enabling RISC-V HWASAN on GCC I was hitting the
error

> HWAddressSanitizer failed to enable tagged address syscall ABI

when attempting to run instrumented programs in the spike simulator
running kernel release 6.18. This patch successfully allows the tagged
address syscall ABI to be enabled by the support runtime.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list