lkml.org 
[lkml]   [2018]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:x86/pti 14/14] arch/x86/mm/mem_encrypt_boot.o: warning: objtool: .text+0x51: unreachable instruction
On Mon, May 14, 2018 at 09:44:48PM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/pti
> head: 51bad67ffbce0aaa44579f84ef5d05597054ec6a
> commit: 51bad67ffbce0aaa44579f84ef5d05597054ec6a [14/14] x86/asm: Pad assembly functions with INT3 instructions
> config: x86_64-randconfig-x018-201819 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> reproduce:
> git checkout 51bad67ffbce0aaa44579f84ef5d05597054ec6a
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All warnings (new ones prefixed by >>):
>
> >> arch/x86/mm/mem_encrypt_boot.o: warning: objtool: .text+0x51: unreachable instruction
> >> arch/x86/xen/xen-asm.o: warning: objtool: .text+0x1a: unreachable instruction

There are warnings:

arch/x86/lib/clear_page_64.o: warning: objtool: .text+0xb: unreachable instruction

0000000000000000 <clear_page_rep>:
0: b9 00 02 00 00 mov ecx,0x200
5: 31 c0 xor eax,eax
7: f3 48 ab rep stos QWORD PTR es:[rdi],rax
a: c3 ret
===> b: cc int3
c: cc int3
d: cc int3
e: cc int3
f: cc int3

0000000000000010 <clear_page_orig>:

But both function are annotated with ENTRY/ENDPROC.

\
 
 \ /
  Last update: 2018-05-15 00:09    [W:0.058 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site