aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/lib/putuser.S
diff options
context:
space:
mode:
authorGravatar Peter Zijlstra <peterz@infradead.org> 2023-08-02 12:55:46 +0200
committerGravatar Ingo Molnar <mingo@kernel.org> 2023-09-12 17:50:53 +0200
commit25e73b7e3f72a25aa30cbb2eecb49036e0acf066 (patch)
treeec51d86d83644e810a6ea761725bd6c344654dca /arch/x86/lib/putuser.S
parentx86/platform/uv: Use alternate source for socket to node data (diff)
downloadlinux-25e73b7e3f72a25aa30cbb2eecb49036e0acf066.tar.gz
linux-25e73b7e3f72a25aa30cbb2eecb49036e0acf066.tar.bz2
linux-25e73b7e3f72a25aa30cbb2eecb49036e0acf066.zip
x86/ibt: Suppress spurious ENDBR
It was reported that under certain circumstances GCC emits ENDBR instructions for _THIS_IP_ usage. Specifically, when it appears at the start of a basic block -- but not elsewhere. Since _THIS_IP_ is never used for control flow, these ENDBR instructions are completely superfluous. Override the _THIS_IP_ definition for x86_64 to avoid this. Less ENDBR instructions is better. Fixes: 156ff4a544ae ("x86/ibt: Base IBT bits") Reported-by: David Kaplan <David.Kaplan@amd.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230802110323.016197440@infradead.org
Diffstat (limited to 'arch/x86/lib/putuser.S')
0 files changed, 0 insertions, 0 deletions