Re: [RFC PATCH 6/7] kasan: allow arches to hook into global registration

2019-05-23 Thread Daniel Axtens
Christophe Leroy writes: > Le 23/05/2019 à 07:21, Daniel Axtens a écrit : >> Not all arches have a specific space carved out for modules - >> some, such as powerpc, just use regular vmalloc space. Therefore, >> globals in these modules cannot be backed by real shadow memory. > > Can you explain

Re: [RFC PATCH 6/7] kasan: allow arches to hook into global registration

2019-05-23 Thread Christophe Leroy
Le 23/05/2019 à 07:21, Daniel Axtens a écrit : Not all arches have a specific space carved out for modules - some, such as powerpc, just use regular vmalloc space. Therefore, globals in these modules cannot be backed by real shadow memory. Can you explain in more details the reason why ?

[RFC PATCH 6/7] kasan: allow arches to hook into global registration

2019-05-22 Thread Daniel Axtens
Not all arches have a specific space carved out for modules - some, such as powerpc, just use regular vmalloc space. Therefore, globals in these modules cannot be backed by real shadow memory. In order to allow arches to perform this check, add a hook. Signed-off-by: Daniel Axtens ---