diff options
author | Kees Cook <[email protected]> | 2021-06-21 12:07:10 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2021-09-25 08:20:47 -0700 |
commit | 3d0107a7fee40402f0a3a325604bcbbc47597b5a (patch) | |
tree | a9cec765a2459179657096962ae6cedeb88aca5f /tools/perf/scripts/python/compaction-times.py | |
parent | e4e737bb5c170df6135a127739a9e6148ee3da82 (diff) |
scsi: ibmvscsi: Avoid multi-field memset() overflow by aiming at srp
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.
Instead of writing beyond the end of evt_struct->iu.srp.cmd, target the
upper union (evt_struct->iu.srp) instead, as that's what is being wiped.
Cc: Tyrel Datwyler <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Acked-by: Martin K. Petersen <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Acked-by: Tyrel Datwyler <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions