aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-06-16 13:39:51 -0700
committerKalle Valo <kvalo@codeaurora.org>2021-06-22 18:23:35 +0300
commit70ca8441ebfc4412dc9d3c56409e73dba959ab34 (patch)
tree8ea07c74e12ea05739f6ba371907fe45debedef5 /tools/perf/scripts/python/stackcollapse.py
parentb38678a73c4d8a3616ca14713154e062b4c4db63 (diff)
downloadlinux-70ca8441ebfc4412dc9d3c56409e73dba959ab34.tar.gz
linux-70ca8441ebfc4412dc9d3c56409e73dba959ab34.tar.bz2
linux-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 <keescook@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210616203952.1248910-1-keescook@chromium.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions