OpenCloudOS-Kernel/net/mptcp
Kees Cook 63ec72bd58 mptcp: Use struct_group() to avoid cross-field memset()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring fields.

Use struct_group() to capture the fields to be reset, so that memset()
can be appropriately bounds-checked by the compiler.

Cc: Matthieu Baerts <matthieu.baerts@tessares.net>
Cc: mptcp@lists.linux.dev
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Link: https://lore.kernel.org/r/20220121073935.1154263-1-keescook@chromium.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-21 19:26:03 -08:00
..
Kconfig
Makefile
crypto.c
crypto_test.c
ctrl.c
diag.c
mib.c
mib.h
mptcp_diag.c
options.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-01-09 17:00:17 -08:00
pm.c mptcp: do not block subflows creation on errors 2022-01-07 11:27:07 +00:00
pm_netlink.c mptcp: fix removing ids bitmap setting 2022-01-20 20:24:01 -08:00
protocol.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-01-09 17:00:17 -08:00
protocol.h mptcp: Use struct_group() to avoid cross-field memset() 2022-01-21 19:26:03 -08:00
sockopt.c mptcp: cleanup MPJ subflow list handling 2022-01-07 11:27:07 +00:00
subflow.c mptcp: reuse __mptcp_make_csum in validate_data_csum 2022-01-07 19:00:44 -08:00
syncookies.c
token.c mptcp: full disconnect implementation 2022-01-07 11:27:06 +00:00
token_test.c