Re: [kernel-hardening] Re: [PATCH v3 4/5] bug: Provide toggle for BUG on data corruption

2016-08-22 Thread Kees Cook
On Mon, Aug 22, 2016 at 10:53 AM, Paul E. McKenney wrote: > On Mon, Aug 22, 2016 at 03:15:35PM +0200, Arnd Bergmann wrote: >> On Wednesday, August 17, 2016 2:42:11 PM CEST Kees Cook wrote: >> > + >> > +/* >> > + * Since detected data corruption should stop operation on the affected >> > + * struct

Re: [PATCH v3 4/5] bug: Provide toggle for BUG on data corruption

2016-08-22 Thread Paul E. McKenney
On Mon, Aug 22, 2016 at 03:15:35PM +0200, Arnd Bergmann wrote: > On Wednesday, August 17, 2016 2:42:11 PM CEST Kees Cook wrote: > > + > > +/* > > + * Since detected data corruption should stop operation on the affected > > + * structures, this returns false if the corruption condition is found. > >

Re: [PATCH v3 4/5] bug: Provide toggle for BUG on data corruption

2016-08-22 Thread Arnd Bergmann
On Wednesday, August 17, 2016 2:42:11 PM CEST Kees Cook wrote: > + > +/* > + * Since detected data corruption should stop operation on the affected > + * structures, this returns false if the corruption condition is found. > + */ > +#define CHECK_DATA_CORRUPTION(condition, fmt, ...)