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

From: Alexander Popov
Date: Wed Jun 03 2015 - 04:36:57 EST


On 03.06.2015 10:44, Ingo Molnar wrote:
>
> * Alexander Popov <alpopov@xxxxxxxxxxxxxx> wrote:
>> + kasan_early_init();
>> + kasan_map_early_shadow(early_level4_pgt);
>
> So why isn't kasan_map_early_shadow() called in kasan_early_init()?
>
> High level x86 init code should not be polluted with too many low level details.

Hello, Ingo.

kasan_map_early_shadow() is called twice in x86_64_start_kernel():
once for early_level4_pgt and then later for init_level4_pgt.

I've decided to introduce separate kasan_early_init() to avoid big changes
which can bring consequences that I don't understand.

Best regards,
Alexander
--
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/