diff options
author | Kees Cook <[email protected]> | 2022-09-26 17:39:53 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-09-27 18:13:44 -0700 |
commit | 8f1e1658d365401159f407d78c240262673d1314 (patch) | |
tree | d13ddfb6807732bfe62bb867d1e11737690aef55 /kernel/gcov/gcc_base.c | |
parent | 0d92efdee9152e400aa973229861c3cb84069a98 (diff) |
s390/qeth: Split memcpy() of struct qeth_ipacmd_addr_change flexible array
To work around a misbehavior of the compiler's ability to see into
composite flexible array structs (as detailed in the coming memcpy()
hardening series[1]), split the memcpy() of the header and the payload
so no false positive run-time overflow warning will be generated.
[1] https://lore.kernel.org/linux-hardening/[email protected]/
Cc: Wenjia Zhang <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Sven Schnelle <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Alexandra Winter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'kernel/gcov/gcc_base.c')
0 files changed, 0 insertions, 0 deletions