]> git.baikalelectronics.ru Git - kernel.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)
commit61f2d7e5be83238dab160dbfaa6052dcdbf9d8a8
treeaaf4685dbe212ad2e0b996308905a1cd16ffdf29
parent8b5c1a1b081cff38bca27a6abe1da0f1accff3a0
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