Re: [PATCH v4 00/17] khwasan: kernel hardware assisted address sanitizer

From: Matthew Wilcox
Date: Mon Jul 02 2018 - 16:33:58 EST


On Wed, Jun 27, 2018 at 05:04:28PM -0700, Kostya Serebryany wrote:
> The problem is more significant on mobile devices than on desktop/server.
> I'd love to have [K]HWASAN on x86_64 as well, but it's less trivial since x86_64
> doesn't have an analog of aarch64's top-byte-ignore hardware feature.

Well, can we emulate it in software?

We've got 48 bits of virtual address space on x86. If we need all 8
bits, then that takes us down to 40 bits (39 bits for user and 39 bits
for kernel). My laptop only has 34 bits of physical memory, so could
we come up with a memory layout which works for me?