Re: [PATCH v2 4/5] x86/kasan: Add helpers to align shadow addresses up and down

From: Andrey Ryabinin
Date: Mon Nov 14 2022 - 09:13:19 EST




On 11/10/22 23:35, Sean Christopherson wrote:
> Add helpers to dedup code for aligning shadow address up/down to page
> boundaries when translating an address to its shadow.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> ---
> arch/x86/mm/kasan_init_64.c | 40 ++++++++++++++++++++-----------------
> 1 file changed, 22 insertions(+), 18 deletions(-)
>


Reviewed-by: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx>