Received: by 10.223.176.5 with SMTP id f5csp1252419wra; Wed, 7 Feb 2018 15:46:37 -0800 (PST) X-Google-Smtp-Source: AH8x227NCXmUxEe2JjxKiYs5L+hGAfZyTj3cecLmxGVsU0rAn1uTXISejzWuxbGpo70QAYRahzlg X-Received: by 2002:a17:902:7183:: with SMTP id b3-v6mr4379895pll.331.1518047197667; Wed, 07 Feb 2018 15:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518047197; cv=none; d=google.com; s=arc-20160816; b=DNSHJ+A0ewKlry0dn9ovmgw1nCNLxfNpd8Ty0L1mpDtuCF4UWLlSaebZm/8p0g7eQm XBgTCf8QcJNYv373V67gPFeOBUzgR06i+/dF6XdtWOc44GrMlOd3YMtHFj1vjfxGdZM8 W9ksm8wrz221LhhF2xpr4QU+CJ7P8wGStMg+pz32rNCS5omtiPdjiwavlFDy0O+ozs/E qBLkrRFAlOWk53olZjUzya1ndYKsv16Fssz1qPY3pcasLZL7MwQjqewuEJnZgNCZRUUd FujhkdDAATE/toHiKbyHOQot81Mj+m+3rgaP2MFMTxcpNjauONB4ZuiQbtkXYSyVjxLz B3WA== 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:dkim-filter :arc-authentication-results; bh=0ZESHiE5dG3curQkNH/Hhy0pjb57a2Yh3T7LeL1u+KY=; b=uhdvpM4iLvLFXehO4CHrmnJZ4UKi4pnVi5/MGXdtSAVCFrkvDNxPB4kTTqIAOuV9ce 82AJ/HUDrW8TaXHb9wp84vJlrPpyfm3NJLwJDA4CWMbTC3w3uYloU7shS/sokaj6EImk VL0f3/zzZZj8q9ReTfuHuHSBBb6MoA/KqDMj7cxW9kOBDIL5dCg0zLS6rEnHPQzSbhKO H90lYzJHZ6lY744T6VRlC/deS7OnVj1YfIlu7SzvogJ1Z57rCtcn14qfBeEcivzUxFSF iT3L5uO+lp5eP0lrNW8OzbZMDQRaS/w0GF/pTGSny+SyJbEL7m9m21nmK4K9A63nvfGC 3lRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=kuix1Yd+; 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 y7-v6si1806971plh.806.2018.02.07.15.46.23; Wed, 07 Feb 2018 15:46:37 -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=pass header.i=@nifty.com header.s=dec2015msa header.b=kuix1Yd+; 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 S1751424AbeBGXpr (ORCPT + 99 others); Wed, 7 Feb 2018 18:45:47 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:45766 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbeBGXpq (ORCPT ); Wed, 7 Feb 2018 18:45:46 -0500 Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w17NjZ6Z014050; Thu, 8 Feb 2018 08:45:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w17NjZ6Z014050 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1518047136; bh=0ZESHiE5dG3curQkNH/Hhy0pjb57a2Yh3T7LeL1u+KY=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=kuix1Yd+9lPJbOOpdMCdoavh6bp+ZVXNeZR89snvir8XFwj/5R1CUE2TwwgB/Cjtm mj11fRrFXCpY1ruvQ1tiaG+qEOs3Nc+DxT3KEB9khY69zZ37ipHeOb1mD9PRgXDdq4 gtk1YA/YM6MJtMmOLS+9wHawreEXElVswxx9ex87x0aJ7iCwXaV/f1tDKT14bV+zAh WexSgXv/yi+jbx9KoSUpSvj4MBlNTn6z+uBqiL97yCrz9yUem2Uj5ubuOa3X1nSD5D T6agaj3AAjtIOiDSE2HwBqogmEIVpyNxtQMgMwY+8z4vQuRBilvO5OUE9lXEmcMyt+ t07FD8zHdRXLA== X-Nifty-SrcIP: [209.85.217.175] Received: by mail-ua0-f175.google.com with SMTP id i5so1746780uai.10; Wed, 07 Feb 2018 15:45:35 -0800 (PST) X-Gm-Message-State: APf1xPAPU6Jd/xy18RReTusMYhYwPn7Lqs9YKA+Za/b1SfTMFH5vC7+g aNscbFHcApYp8cG0gUdtru0ORnYXZ5Y2vLvJQuY= X-Received: by 10.176.73.39 with SMTP id z36mr6944741uac.6.1518047134573; Wed, 07 Feb 2018 15:45:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.83.212 with HTTP; Wed, 7 Feb 2018 15:44:54 -0800 (PST) In-Reply-To: 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: Masahiro Yamada Date: Thu, 8 Feb 2018 08:44:54 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/6] s390: introduce execute-trampolines for branches To: Linus Torvalds Cc: Martin Schwidefsky , 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 2018-02-08 2:55 GMT+09:00 Linus Torvalds : > 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. Sorry for slow progress. I agreed this before, and still motivated. (because I also motivated to remove kbuild cache. This turned out not so clever as I first thought) I was trying to do this, but in this development cycle I spent most of my time to flush out lots of piled up Kconfig patches. Sorry. Unless somebody is working, I will. -- Best Regards Masahiro Yamada