From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbeAJTzu (ORCPT + 1 other); Wed, 10 Jan 2018 14:55:50 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:56886 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295AbeAJTzt (ORCPT ); Wed, 10 Jan 2018 14:55:49 -0500 Date: Wed, 10 Jan 2018 20:55:40 +0100 (CET) From: Thomas Gleixner To: Linus Torvalds cc: Borislav Petkov , David Woodhouse , Andi Kleen , the arch/x86 maintainers , Linux Kernel Mailing List , Paul Turner , Andrew Lutomirski , Peter Zijlstra , Tom Lendacky , Tim Chen , Greg Kroah-Hartman , Dave Hansen , Jiri Kosina , Andi Kleen , Josh Poimboeuf Subject: Re: [PATCH] x86/alternatives: Fix optimize_nops() checking In-Reply-To: Message-ID: References: <20180110003139.10531-1-andi@firstfloor.org> <1515568506.22302.72.camel@infradead.org> <1515578735.22302.91.camel@infradead.org> <20180110112815.mgciyf5acwacphkq@pd.tnic> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, 10 Jan 2018, Linus Torvalds wrote: > On Wed, Jan 10, 2018 at 3:28 AM, Borislav Petkov wrote: > > > > Make sure we scan all bytes before we decide to optimize the NOPs in > > there. > > Can we also add compile-time checking (presumably in objtool, but who > knows) that there are no relocations in the alternative section? Cc'ing the overlor^Haded objtool wizard > Because that was the other "oops, this really doesn't work with > altinstructions" issue, wasn't it? Yes. Thanks, tglx