From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x225p1tZpkPRiXAcHypSQqiPbn4azm9wR5BHHp6+yvpyLx3PrhN23tR+IdcWfFDaYX5jVkeMU ARC-Seal: i=1; a=rsa-sha256; t=1516723446; cv=none; d=google.com; s=arc-20160816; b=xWnU7Fw2Uq+fO2EXRwfXgO9JYivPwSRHgR7ZhmH/BsxKxRdl3usxRFHvKBnp/m7+Mn lBmFWyhv+bpEd8LLcf5pPm+agaumrnWRONu8iY7qAKlUxoDSJYhPvkWdH6ezoNQJW6+A RzSFTDpjFmftgPsmK/yghyP+57xBrezwaHG26e5qDI86iQSLHOydGdSz04WNk2WlJHKv StKCOtqQTDEIUczEXQPRL/aNtfApM2E9mdl1zAb2K3yNR+usJYZKmfLCERR3010Nb4uM WYFF6XnIzCO2QZZ+rFCPfsWFaXkX8hH4NgTprPsEXakHgCCuWxuJrihMrhSQ5F+QXh+W c2Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=4+KXsSJmtQbwH+ut/XdxQYE7yhPfeK2i6EgAF4YxqW8=; b=v/AezptmZkGKu9ingjPUHbWq/u7BRK/9KsGvIIjZ6oeKH8UR+drT0DMBy/YIyZysiM K+pXURmnBoAFJa/RABbyu3AJU1hC2qovz5uTHefKImPdm8mhvd8ztWYDBP8HAk9Bu+p1 utMqPtex/N7G9VG/I7KRJCWmOcW1hdgQu9Ctonoqh4QGua9kA6urLj2ERQDGgGP6HJpu Y6ae+ehNrEbsy0jz+sbjjkPwN8bd/p1ua2LisEZ5lHaGKI7VofEQHGGq4eS/gDC7c2BA px4RjMvi+iDaItPeMXYVodLC7i+0zT0NdtOxKCvt7nSn6FMv7GYEYEVxIX7Ag7JUQ+bT nv6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=uK5p+v/t; spf=pass (google.com: best guess record for domain of peterz@infradead.org designates 205.233.59.134 as permitted sender) smtp.mailfrom=peterz@infradead.org Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=uK5p+v/t; spf=pass (google.com: best guess record for domain of peterz@infradead.org designates 205.233.59.134 as permitted sender) smtp.mailfrom=peterz@infradead.org Date: Tue, 23 Jan 2018 17:03:50 +0100 From: Peter Zijlstra To: David Woodhouse Cc: Thomas Gleixner , Josh Poimboeuf , linux-kernel@vger.kernel.org, Dave Hansen , Ashok Raj , Tim Chen , Andy Lutomirski , Linus Torvalds , Greg KH , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , Dan Williams , Paolo Bonzini , Jun Nakajima , Asit Mallick , Jason Baron Subject: Re: [PATCH 00/24] objtool: retpoline and asm-goto validation Message-ID: <20180123160350.GK2228@hirez.programming.kicks-ass.net> References: <20180123152539.374360046@infradead.org> <20180123154236.GJ2228@hirez.programming.kicks-ass.net> <1516723059.9521.151.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516723059.9521.151.camel@infradead.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590397843204218938?= X-GMAIL-MSGID: =?utf-8?q?1590399804123249593?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On Tue, Jan 23, 2018 at 03:57:39PM +0000, David Woodhouse wrote: > On Tue, 2018-01-23 at 16:42 +0100, Peter Zijlstra wrote: > > drivers/watchdog/.tmp_hpwdt.o: warning: objtool: .text+0x24: indirect call found in RETPOLINE build > > You're calling into BIOS there. Not a lot of point in protecting that > one. This is one of the cases where we were saying you needed to turn > on IBRS to have complete protection, even with retpoline. > That code looked entirely dodgy, which is why I left it. I can easily add the ANNOTATE_RETPOLINE_SAFE thing to shut it up, but given it is an actual problem, maybe we should just keep it?