From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbcBOUCK (ORCPT ); Mon, 15 Feb 2016 15:02:10 -0500 Received: from one.firstfloor.org ([193.170.194.197]:32882 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbcBOUCF (ORCPT ); Mon, 15 Feb 2016 15:02:05 -0500 Date: Mon, 15 Feb 2016 21:02:01 +0100 From: Andi Kleen To: Linus Torvalds Cc: Josh Poimboeuf , Thomas Gleixner , Alok Kataria , Ingo Molnar , Guenter Roeck , Anil S Keshavamurthy , Herbert Xu , Andrew Morton , Rusty Russell , Bernd Petrovitsch , linux-watchdog@vger.kernel.org, Pedro Alves , Pavel Machek , Konrad Rzeszutek Wilk , Michal Marek , Namhyung Kim , Jeremy Fitzhardinge , Waiman Long , "Rafael J. Wysocki" , Jiri Slaby , kvm@vger.kernel.org, x86@kernel.org, Arnaldo Carvalho de Melo , Paolo Bonzini , Masami Hiramatsu , Borislav Petkov , Chris Wright , Andy Lutomirski , Alexei Starovoitov , "David S. Miller" , Wim Van Sebroeck , David Vrabel , live-patching@vger.kernel.org, netdev@vger.kernel.org, Boris Ostrovsky , Gleb Natapov , Matt Fleming , Chris J Arges , linux-kernel@vger.kernel.org, Borislav Petkov , Andi Kleen , Len Brown , Ananth N Mavinakayanahalli , "H. Peter Anvin" , Peter Zijlstra Subject: Re: [PATCH 00/33] Compile-time stack metadata validation Message-ID: <20160215200201.GN3696@two.firstfloor.org> References: <56BDB5A8.9030006@suse.cz> <20160212144543.GA29004@treble.redhat.com> <20160212171037.GV6357@twins.programming.kicks-ass.net> <20160212183206.GB29004@treble.redhat.com> <20160212201011.GW6357@twins.programming.kicks-ass.net> <20160215163134.GA20585@treble.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > There are two ways to fix the warnings: > > > > 1. get rid of the thunks and call the C functions directly; or > > No. Not until gcc learns about per-function callibg conventions (so that it can > be marked as not clobbering registers). It does already for static functions in 5.x (with -fipa-ra). And with LTO it can be used even somewhat globally. Even older version supported it, for only for x86->SSE on 32bit, which is useless for the kernel. But the new IPA-RA propagates which registers are clobbered. That said it will probably be a long time until we can drop support for older compilers. So for now the manual method is still needed. -Andi