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

Christophe Leroy
2019-12-10T14:39:38Z

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@c-s.fr>
>> Signed-off-by: Daniel Axtens <dja@axtens.net>
>
> 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