Re: [PATCH] misc: lkdtm: Add volatile to intentional NULL pointer reference

2017-04-15 Thread Kees Cook
On Fri, Apr 14, 2017 at 2:15 PM, Matthias Kaehlcke wrote: > From: Michael Davidson > > Add a volatile qualifier where a NULL pointer is deliberately > dereferenced to trigger a panic. > > Without the volatile qualifier clang will issue the following warning: > "indirection of non-volatile null po

[PATCH] misc: lkdtm: Add volatile to intentional NULL pointer reference

2017-04-14 Thread Matthias Kaehlcke
From: Michael Davidson Add a volatile qualifier where a NULL pointer is deliberately dereferenced to trigger a panic. Without the volatile qualifier clang will issue the following warning: "indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]" and replace the p