Skip to content
Commit c74d3c18 authored by Kees Cook's avatar Kees Cook Committed by Vasily Gorbik
Browse files

s390/speculation: Use statically initialized const for instructions



In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
confusing the checks when using a static const source.

Move the static const array into a variable so the compiler can perform
appropriate bounds checking.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210616201823.1245603-1-keescook@chromium.org


Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent e5e1bdf0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment