diff options
| author | Kees Cook <[email protected]> | 2021-06-16 20:39:51 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2021-06-22 15:23:35 +0000 |
| commit | 70ca8441ebfc4412dc9d3c56409e73dba959ab34 (patch) | |
| tree | 8ea07c74e12ea05739f6ba371907fe45debedef5 /net/switchdev/switchdev.c | |
| parent | rtw88: coex: remove unnecessary variable and label (diff) | |
| download | kernel-70ca8441ebfc4412dc9d3c56409e73dba959ab34.tar.gz kernel-70ca8441ebfc4412dc9d3c56409e73dba959ab34.zip | |
orinoco: Avoid field-overflowing memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring array fields.
Validate the expected key size and introduce a wrapping structure
to use as the multi-field memcpy() destination so that overflows
can be correctly detected.
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
