+5
−1
Loading
stable inclusion from stable-v5.10.215 commit 44900a8bec03aed77f23b374acb9103dcd3e7a3d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAJJ2D Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=44900a8bec03aed77f23b374acb9103dcd3e7a3d -------------------------------- commit c93db682 upstream. Commit 3fb0fdb3 ("x86/stackprotector/32: Make the canary into a regular percpu variable") modified the stackprotector check on 32-bit x86 to check if gcc supports using %fs as canary. Adjust dummy-tools gcc script to pass this new test by returning "%fs" rather than "%gs" if it detects -mstack-protector-guard-reg=fs on command line. Fixes: 3fb0fdb3 ("x86/stackprotector/32: Make the canary into a regular percpu variable") Signed-off-by:Michal Kubecek <mkubecek@suse.cz> Signed-off-by:
Masahiro Yamada <masahiroy@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng1 <sanglipeng1@jd.com>