]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Fixup bad_iret vs noinstr
authorPeter Zijlstra <peterz@infradead.org>
Wed, 17 Jun 2020 16:21:16 +0000 (18:21 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 25 Jun 2020 11:45:39 +0000 (13:45 +0200)
commit670388d0772001bdbddc11235bfbc20388744ddd
tree1f613b0aca09f5304ee45af45ef14f28f17f7a36
parentc2890f7fb26fad128a0dafbfc53b199536ec0a74
x86/entry: Fixup bad_iret vs noinstr

vmlinux.o: warning: objtool: fixup_bad_iret()+0x8e: call to memcpy() leaves .noinstr.text section

Worse, when KASAN there is no telling what memcpy() actually is. Force
the use of __memcpy() which is our assmebly implementation.

Reported-by: Marco Elver <elver@google.com>
Suggested-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Marco Elver <elver@google.com>
Link: https://lkml.kernel.org/r/20200618144801.760070502@infradead.org
arch/x86/kernel/traps.c
arch/x86/lib/memcpy_64.S