Re: [dm-devel] [PATCH] dm integrity: Use struct_group() to zero struct journal_sector

2021-12-14 Thread Gustavo A. R. Silva
On Thu, Nov 18, 2021 at 12:36:40PM -0800, Kees Cook wrote: > In preparation for FORTIFY_SOURCE performing compile-time and run-time > field bounds checking for memset(), avoid intentionally writing across > neighboring fields. > > Add struct_group() to mark region of struct journal_sector that sho

[dm-devel] [PATCH] dm integrity: Use struct_group() to zero struct journal_sector

2021-11-18 Thread Kees Cook
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring fields. Add struct_group() to mark region of struct journal_sector that should be initialized to zero. Signed-off-by: Kees Cook --- drivers/m