Received: by 10.223.176.5 with SMTP id f5csp940212wra; Wed, 7 Feb 2018 09:56:52 -0800 (PST) X-Google-Smtp-Source: AH8x224Iqj9TjlGXJQL/hCei0W8NBj2jff6Ct8/KIkfCNZN4Fdt9y55DjNaOvx4xsTxkEHTyUhfl X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr6636871plh.272.1518026211999; Wed, 07 Feb 2018 09:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518026211; cv=none; d=google.com; s=arc-20160816; b=hUEtQgkxgS0pdqU/v9iNFJJNS41jZ32w46tHtrtZuGRGFiPyNULTJQLvLDUXM++gsc sHfmWcIFHP7WuE+dZA2Xfpy0ZE1LL1pd+H7Rsv/A6/rF8rH3i7F3Qr2/k5+euZydBslL zoDjhuNtzZCpi2R8i6UowgjmQfnKbei2wAFwZb4bkClLUUECkFa6UoDrzO8UqsyVdNxU Wl0Ya8LeZTjS2n7JHlIDg1xiQIWxEOutSE7hTW4oYe+ViOnvVkMpX2Xw/vgEQ52kuOhU FES4DHCdBwO/JY7vXOvTkY8GqtuF+7IfvlxIg1TnC1pOvAAZNBlXwMa4/Dq2R4XcxmTt H8Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=eAmQPKhS94027lyhfvDt2LRCq/7BR7nQbHUNSijzlw8=; b=q7qOg07FWrJR6UozuaPDf2lzOPY1wWzC30df29uzEhEcg15kMeA0p7Mwkc9BvcHuj4 lrkilu3gxRB0Yk2Afg/S9eqCbk1odn1biUAOE9rBMudKQaafjMKB+vD2AOYuR+KOcpOw 1UQJ4shHm7wRGon0sedcEA/WeMNF8DgLkPISg5oFjuGVEJ0Agj8T/TN/dEA1S+WuijGu QV0TOc5wwrL7kfkDrhHd1If9bfV3LtLATWCJacZCEMphyq2VE5A8ACemT/Gvdq4CBAw0 5rV4TMFzUef2HML4V+8nONMjO1/r/frnmwPzLj0wskcXLRFCHvOwc6m6clj8XcPA572h rIpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GMu94hRu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si1414986plk.486.2018.02.07.09.56.36; Wed, 07 Feb 2018 09:56:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GMu94hRu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754129AbeBGRzu (ORCPT + 99 others); Wed, 7 Feb 2018 12:55:50 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:37181 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753931AbeBGRzs (ORCPT ); Wed, 7 Feb 2018 12:55:48 -0500 Received: by mail-it0-f67.google.com with SMTP id h129so3239349ita.2; Wed, 07 Feb 2018 09:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eAmQPKhS94027lyhfvDt2LRCq/7BR7nQbHUNSijzlw8=; b=GMu94hRupFKRLsMTM6suBBSiDu6wLIK3PWH80a+JIEt5cM5oYWHPdfg5va2SOEUMJS IPnCMWjmyIIFqD4Iz3VPG94Xky/FnmzewyJgerwsn+Shw+ZehIK5C+WGu6ku0iVv3heJ nr76oPk5ScUPM2CzzLymBje6AEaCkbJMcLl8azsxsgyJ0PHhNq8+2+YKu6QyqrC7scnF m0XQwpgwvsCXIW7hXyFlbVt+pR+uuXnkDesVks1XBAZ9t5yjRARIcoiuXEUbIZF1nPjj hIy1gPydmtAZStaGk+e64rdSqB2KZXJtgx18CL1TVDXnJWQwBxteh2i/ll1PZc/9dyik /9SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eAmQPKhS94027lyhfvDt2LRCq/7BR7nQbHUNSijzlw8=; b=Qz410ksV3EzEDaSUF4e68RabVT5GlaGih76afEjAordgjN12tfTHpEE8c3xqMnRo5H OWSNaBei8vATULAq2gTjwQsGjZLVd206waaBTJMR7utPNA1r+ABkcsZGNvq72CSRBhwL WALHpL7NDVPhO1mFY/F0lT3UM4cCWYWeJL3z/sPWI/ONN75qdjW7x/XleeoY8Y3hMnFQ yIzb/tVj541/PhR25lqFq1q1e9ZUtM3wUR15YnfnHoR/eqawiDGtOPehy/aMm5TgxvLy 3FiKqBjn71BP+L+1G2id2NzCEWipS7uZ6FZMP1jFr6stRqLGKixdnvugSRegc4rse9nG +SSQ== X-Gm-Message-State: APf1xPBNN4mUqTKJXPesVZNzZNYizAwkEuwV041U90swxtVPhwbISHE7 4J0iNIdYiiLAA/rwH1xTW+nkGqoWzJ5fKySlWXI= X-Received: by 10.36.47.5 with SMTP id j5mr8843891itj.123.1518026147643; Wed, 07 Feb 2018 09:55:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Wed, 7 Feb 2018 09:55:47 -0800 (PST) In-Reply-To: <20180207131719.4aeb316e@mschwideX1> References: <1517986811-27819-1-git-send-email-schwidefsky@de.ibm.com> <1517986811-27819-7-git-send-email-schwidefsky@de.ibm.com> <20180207100726.GB31392@amd> <1518005275.3677.112.camel@infradead.org> <20180207131719.4aeb316e@mschwideX1> From: Linus Torvalds Date: Wed, 7 Feb 2018 09:55:47 -0800 X-Google-Sender-Auth: RTtF7ZTBb-XWPP2pE1lElQo9geU Message-ID: Subject: Re: [PATCH 6/6] s390: introduce execute-trampolines for branches To: Martin Schwidefsky , Masahiro Yamada Cc: David Woodhouse , Pavel Machek , Linux Kernel Mailing List , linux-s390 , Heiko Carstens , Christian Borntraeger , Cornelia Huck , David Hildenbrand , Greg Kroah-Hartman , Jon Masters , Marcus Meissner , Jiri Kosina , Dominik Brodowski , Alan Cox , Kees Cook , Ulf Magnusson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 7, 2018 at 4:17 AM, Martin Schwidefsky wrote: >> That isn't, though. Linus asked us to drop the $(warning) part. >> >> ... and then spent a week building with a non-retpoline compiler and >> not noticing, so he might have changed his mind ;) > > I found the warning to have some value, it helps for the case where my > fingers are faster than my brain and I type "make" instead of "smake" > which uses the alternative compiler with the required support. > > @Linus: do you want a warning or prefer not to have one ? Honestly, I think I'd be much happier with the warning as part of the "make config" phase. What really annoyed me was that it showed up at every build. What I would really want - and this is entirely unrelated to this particular case - is to have those damn compiler option tests as part of the config phase in general. We now have about a million of these crazy things, where we have config options that simply depend on which compiler we have, and we have no sane way to show them at configuration time. Though Andrew's tree I got yet another ugly hack (CONFIG_CC_STACKPROTECTOR_AUTO) that handles just _one_ special case by turning it into a special magic Kconfig entry in the main Makefile. See commit 44c6dc940b19 ("Makefile: introduce CONFIG_CC_STACKPROTECTOR_AUTO"). I wasn't sure if I really wanted it, and honestly, I'm still thinking of just reverting it, because it's _so_ ugly and _so_ wrong. What we need is an extension to the Kconfig language itself so that we can do config CC_HAS_RETPOLINE cc_option "-mindirect-branch=thunk -mindirect-branch-table" or something. And then we can make sane _conditional_ dependencies at Kconfig time, and our makefiles would be much cleaner too when you could just do cflags-$(USE_RETPOLINE) += -mfunction-return=thunk -mindirect-branch-table because the validity of the C compiler flag has been tested when configuring. And then we could add that warning at configure time (or just disable the option there thanks to "depends on CC_HAS_xyz" logic). All our compiler option handling right now is just nasty nasty nasty crud. Adding more people in the hopes that somebody gets motivated.. I've talked about this before, so far we haven't made any progress. Linus