Re: [PATCH 5/6] notifiers: Use CHECK_DATA_CORRUPTION() on checks

2017-03-22 Thread Kees Cook
On Wed, Mar 22, 2017 at 12:32 PM, Arjan van de Ven wrote: > On 3/22/2017 12:29 PM, Kees Cook wrote: >>> >>> When performing notifier function pointer sanity checking, allow >>> CONFIG_BUG_ON_DATA_CORRUPTION to upgrade from a WARN to a BUG. >>> Additionally enables CONFIG_DEBUG_NOTIFIERS when selec

Re: [PATCH 5/6] notifiers: Use CHECK_DATA_CORRUPTION() on checks

2017-03-22 Thread Arjan van de Ven
On 3/22/2017 12:29 PM, Kees Cook wrote: When performing notifier function pointer sanity checking, allow CONFIG_BUG_ON_DATA_CORRUPTION to upgrade from a WARN to a BUG. Additionally enables CONFIG_DEBUG_NOTIFIERS when selecting CONFIG_BUG_ON_DATA_CORRUPTION. Any feedback on this change? By defa

Re: [PATCH 5/6] notifiers: Use CHECK_DATA_CORRUPTION() on checks

2017-03-22 Thread Kees Cook
On Mon, Mar 6, 2017 at 11:09 AM, Kees Cook wrote: > When performing notifier function pointer sanity checking, allow > CONFIG_BUG_ON_DATA_CORRUPTION to upgrade from a WARN to a BUG. > Additionally enables CONFIG_DEBUG_NOTIFIERS when selecting > CONFIG_BUG_ON_DATA_CORRUPTION. Any feedback on this

[PATCH 5/6] notifiers: Use CHECK_DATA_CORRUPTION() on checks

2017-03-06 Thread Kees Cook
When performing notifier function pointer sanity checking, allow CONFIG_BUG_ON_DATA_CORRUPTION to upgrade from a WARN to a BUG. Additionally enables CONFIG_DEBUG_NOTIFIERS when selecting CONFIG_BUG_ON_DATA_CORRUPTION. Signed-off-by: Kees Cook --- kernel/notifier.c | 5 +++-- lib/Kconfig.debug |