Re: [PATCH 1/1] x86_64: fix KASan shadow region page tables

From: Andrey Ryabinin
Date: Mon May 25 2015 - 04:13:14 EST


On 05/22/2015 07:03 PM, Alexander Popov wrote:
> Physical addresses in KASan shadow region page tables need fixup:
> kernel halts without it if phys_base is not zero.
>

Indeed.
Since we have to patch page tables anyway, compile-time created kasan
page tables become pointless.
So, I'd suggest to create them in runtime. This could be done in plain C
in kasan_map_early_shadow().


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/