Skip to content
Commit 52a0cab3 authored by Kees Cook's avatar Kees Cook Committed by Jens Axboe
Browse files

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: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20211118203712.1288866-1-keescook@chromium.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 322c4293
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment