]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gcc-plugins: arm_ssp_per_task_plugin: sign extend the SP mask
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 18 Jan 2019 10:58:06 +0000 (11:58 +0100)
committerKees Cook <keescook@chromium.org>
Sun, 20 Jan 2019 22:06:40 +0000 (14:06 -0800)
commit560706d5d2589ef510f5436d69ab510a351b8cf7
treeaaf4685dbe212ad2e0b996308905a1cd16ffdf29
parent1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8
gcc-plugins: arm_ssp_per_task_plugin: sign extend the SP mask

The ARM per-task stack protector GCC plugin hits an assert in
the compiler in some case, due to the fact the the SP mask
expression is not sign-extended as it should be. So fix that.

Suggested-by: Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/arm_ssp_per_task_plugin.c