Re: [PATCH v2 2/4] kasan: use MAX_PTRS_PER_* for early shadow

From: Christophe Leroy
Date: Tue Dec 10 2019 - 09:39:40 EST




Le 10/12/2019 Ã 10:36, Balbir Singh a ÃcritÂ:


On 10/12/19 3:47 pm, Daniel Axtens wrote:
This helps with powerpc support, and should have no effect on
anything else.

Suggested-by: Christophe Leroy <christophe.leroy@xxxxxx>
Signed-off-by: Daniel Axtens <dja@xxxxxxxxxx>

If you follow the recommendations by Christophe and I, you don't need this patch

I guess you mean Patch 1 (the one adding the const to all arches) is not needed. Of course this one (Patch 2) is needed as it is the one that changes kasan.h to use const table size instead of impossible variable table size.

And that would also fix the problem reported by the kbuild test robot.

Christophe