]> git.baikalelectronics.ru Git - kernel.git/commit
x86/uaccess: Add ENDBR to __put_user_nocheck*()
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:24 +0000 (09:50 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 Apr 2022 19:58:49 +0000 (21:58 +0200)
commit64bd27b9222b11fe59194af2cbe763ce75372168
tree784286ece9997c53c29e96065f3ee57a0b1fa2f1
parentcfda45a2ebb5d9278ac2d4d58247394352a6cbe0
x86/uaccess: Add ENDBR to __put_user_nocheck*()

The __put_user_nocheck*() inner labels are exported, so in keeping with
the "allow exported functions to be indirectly called" policy, add
ENDBR.

Fixes: 41b9bc8a5fee ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/207f02177a23031091d1a608de6049a9e5e8ff80.1650300597.git.jpoimboe@redhat.com
arch/x86/lib/putuser.S