[PATCH] arm64: mm: kfence: only handle translation faults

Will Deacon will at kernel.org
Tue Nov 15 10:32:57 PST 2022


On Mon, 14 Nov 2022 10:44:11 +0000, Mark Rutland wrote:
> Alexander noted that KFENCE only expects to handle faults from invalid page
> table entries (i.e. translation faults), but arm64's fault handling logic will
> call kfence_handle_page_fault() for other types of faults, including alignment
> faults caused by unaligned atomics. This has the unfortunate property of
> causing those other faults to be reported as "KFENCE: use-after-free",
> which is misleading and hinders debugging.
> 
> [...]

Applied to arm64 (for-next/mm), thanks!

[1/1] arm64: mm: kfence: only handle translation faults
      https://git.kernel.org/arm64/c/0bb1fbffc631

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list