On 06/16/2015 02:34 PM, Borislav Petkov wrote:
> On Tue, Jun 16, 2015 at 01:16:32PM +0200, Borislav Petkov wrote:
>> Now my hunch is that those entries get overwritten later but I wouldn't
>> want to debug any strange bugs from leftovers in init_level4_pgt so
>> having the clear_page() is actually a good thing.
> 
> So I guess we can do that:
> 
> #ifndef CONFIG_KASAN
>         clear_page(init_level4_pgt);
> #endif
> 

Ugh..

Can't we just move clear_page(init_level4_pgt) higher? Before or right after 
clear_bss() (iow before kasan_early_init()).



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

Reply via email to