aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-11-18 12:37:12 -0800
committerJens Axboe <axboe@kernel.dk>2021-12-13 16:31:24 -0700
commit52a0cab35c568f896067641d8e07f798341954f5 (patch)
tree9b06ef874eaf498509e2da844c682385743f54b0 /lib/string_helpers.c
parent322c4293ecc58110227b49d7e47ae37b9b03566f (diff)
downloadlinux-52a0cab35c568f896067641d8e07f798341954f5.tar.gz
linux-52a0cab35c568f896067641d8e07f798341954f5.tar.bz2
linux-52a0cab35c568f896067641d8e07f798341954f5.zip
drbd: Use struct_group() to zero algs
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring fields. Add a struct_group() for the algs so that memset() can correctly reason about the size. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20211118203712.1288866-1-keescook@chromium.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions