From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 68C173858404; Thu, 28 Oct 2021 07:43:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68C173858404 From: "peterz at infradead dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102952] New code-gen options for retpolines and straight line speculation Date: Thu, 28 Oct 2021 07:43:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: peterz at infradead dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2021 07:43:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102952 --- Comment #21 from peterz at infradead dot org --- (In reply to H.J. Lu from comment #19) > Created attachment 51685 [details] > The v4 patch to add -mharden-sls=3D I seem to have found one 'funny': kernel/bpf/core.o: warning: objtool: ___bpf_prog_run()+0x23: unreachable instruction 27e6: 48 8b 14 d5 00 00 00 mov 0x0(,%rdx,8),%rdx 27ed: 00 27ea: R_X86_64_32S .rodata..c_jump_table 27ee: e9 00 00 00 00 jmp 27f3 <___bpf_prog_run+0x23> 27ef: R_X86_64_PLT32 __x86_indirect_thunk_rdx-0x4 27f3: cc int3 27f4: cc int3 27f5: 8b 53 04 mov 0x4(%rbx),%edx Other than that, it seems I need to go clean up our asm ...=