Re: [PATCH] lkdtm: Add a tests for NULL pointer dereference

2019-01-09 Thread Kees Cook
On Wed, Jan 9, 2019 at 7:16 AM Kees Cook wrote: > > On Tue, Jan 8, 2019 at 10:31 PM Christophe Leroy > wrote: > > > > > > > > Le 09/01/2019 à 02:14, Kees Cook a écrit : > > > On Fri, Dec 14, 2018 at 7:26 AM Christophe Leroy > > > wrote: > > >> > > >> Introduce lkdtm tests for NULL pointer

Re: [PATCH] lkdtm: Add a tests for NULL pointer dereference

2019-01-09 Thread Kees Cook
On Tue, Jan 8, 2019 at 10:31 PM Christophe Leroy wrote: > > > > Le 09/01/2019 à 02:14, Kees Cook a écrit : > > On Fri, Dec 14, 2018 at 7:26 AM Christophe Leroy > > wrote: > >> > >> Introduce lkdtm tests for NULL pointer dereference: check > >> access or exec at NULL address. > > > > Why is this

Re: [PATCH] lkdtm: Add a tests for NULL pointer dereference

2019-01-08 Thread Christophe Leroy
Le 09/01/2019 à 02:14, Kees Cook a écrit : On Fri, Dec 14, 2018 at 7:26 AM Christophe Leroy wrote: Introduce lkdtm tests for NULL pointer dereference: check access or exec at NULL address. Why is this not already covered by the existing tests? (Is there something special about NULL that

Re: [PATCH] lkdtm: Add a tests for NULL pointer dereference

2019-01-08 Thread Kees Cook
On Fri, Dec 14, 2018 at 7:26 AM Christophe Leroy wrote: > > Introduce lkdtm tests for NULL pointer dereference: check > access or exec at NULL address. Why is this not already covered by the existing tests? (Is there something special about NULL that is being missed?) I'd expect SMAP and SMEP to

[PATCH] lkdtm: Add a tests for NULL pointer dereference

2018-12-14 Thread Christophe Leroy
Introduce lkdtm tests for NULL pointer dereference: check access or exec at NULL address. Signed-off-by: Christophe Leroy --- drivers/misc/lkdtm/core.c | 2 ++ drivers/misc/lkdtm/lkdtm.h | 2 ++ drivers/misc/lkdtm/perms.c | 18 ++ 3 files changed, 22 insertions(+) diff --git