[PATCH] arm64: fix strlen() with CONFIG_KASAN_HW_TAGS
Will Deacon
will at kernel.org
Mon Jul 12 05:50:16 PDT 2021
On Mon, 12 Jul 2021 10:00:43 +0100, Mark Rutland wrote:
> When the kernel is built with CONFIG_KASAN_HW_TAGS and the CPU supports
> MTE, memory accesses are checked at 16-byte granularity, and
> out-of-bounds accesses can result in tag check faults. Our current
> implementation of strlen() makes unaligned 16-byte accesses (within a
> naturally aligned 4096-byte window), and can trigger tag check faults.
>
> This can be seen at boot time, e.g.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: fix strlen() with CONFIG_KASAN_HW_TAGS
https://git.kernel.org/arm64/c/5f34b1eb2f8d
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list