Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1689327imu; Sat, 8 Dec 2018 05:21:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vwn/VcWZ0DutSzHPvZ67iXwnUCXfHheY70Njca7lpaPR1IsseLEgwTwuLL9yx8TTxvO/dD X-Received: by 2002:a62:3a04:: with SMTP id h4mr5803529pfa.119.1544275265562; Sat, 08 Dec 2018 05:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544275265; cv=none; d=google.com; s=arc-20160816; b=SdDCz6p29GjcbStUib3k/5/Ewc3jjkQW1/nUCsfMju4I3UyzOrzu6dmvgSg1kTI7C1 6wbeWQ9iC+a11+3ikrqr1NKD2FxhMtFy7gkHIdxAgIt2Ua9Gy+IH65/wvz6V9dH5jQU+ 7QUsHTBbFPSM2AdgBq+pfB6v4Bw7FwXB7/w1mSk3nO1QsQ5eeKDsm2Kxg730crjl5rlc 2DXb2KIk3Zkhh7OUFrQllLhRIpyztu+fv+6BXnQNlf0E0hdbyNAdaGYeURm3Rpl9q2xA fSIn8C+fWN++1VdQtWtcdgsdCDExziOBttPc+UM47xvcHLyxDp+UExZAzPhYzudP/RCy 8fvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1UJ7Ky9e3j7srxemKzIgzWR4jqh6AHivk3a7SivipN0=; b=wslyTA+ElMLKP0CjtCm8QObqqea5V8mbGhPen/gfS81bNxIYIyDrvd0sThsEN+J9DE 1YfzhQAEMnNB5uRPSI+0qmQGtt6qunRxz6xw3FQoGsYXs7ItRYgPgqbk08g6UfTdnPtC ewuqpFZ981fZZ1eHZ8nB5AolIJAC5rR5gz/v+lOHCNIvYC9WUFySsVVhrCTCdpWs2ijF Meux5SatRnsryqHogU99zhwTatkpAzf2B7HmP9KWDlte+rdee3RDTJ9UeL571t8Lm6Ch zLEC4Of/V30yU0ow7NYiSBdZHKckkzYo/XLn568SJVugbqwVBoiAINJvm4WWsrrObecx foSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mfE2wmMM; 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 a20si5658716pfh.163.2018.12.08.05.20.49; Sat, 08 Dec 2018 05:21:05 -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=@kernel.org header.s=default header.b=mfE2wmMM; 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 S1726161AbeLHNUQ (ORCPT + 99 others); Sat, 8 Dec 2018 08:20:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:53234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbeLHNUQ (ORCPT ); Sat, 8 Dec 2018 08:20:16 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EAAB72081C; Sat, 8 Dec 2018 13:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544275215; bh=CjYODOZFdiZE1LVsY0cajjslPhWdjEj6Q/0FtmXmeGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mfE2wmMMMiXF7A6qbDuw1hS+XoFEdwvMKFXQaC/xycJgicqccMPw/3NquPM8E8wH3 lZVtnZEwmiTTGa+ycSz4vH3AMIxRcAW4wkQ29VPUcNEH/zz0H1PJCdhFIEDatsseG5 ND3saHHOTUooGOmg40ZsGvYF54wviqklGV70Nzdg= Date: Sat, 8 Dec 2018 14:20:05 +0100 From: Greg KH To: Kirill Marinushkin Cc: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Zhenzhong Duan , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] x86/retpoline: Fix forcing me to update my compiler Message-ID: <20181208132005.GA658@kroah.com> References: <20181208123816.22952-1-k.marinushkin@gmail.com> <20181208124240.GE30399@zn.tnic> <7d8aa04f-9611-fb69-b11c-21ebcf4580fd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d8aa04f-9611-fb69-b11c-21ebcf4580fd@gmail.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 08, 2018 at 02:14:47PM +0100, Kirill Marinushkin wrote: > >> First problem: I cannot compile the kernel with my version of compiler > > >> Second problem: when I disable the feature - it cannot take effect, > >> because the parse-time error happens before `syncconfig` > > On 12/08/18 13:42, Borislav Petkov wrote: > > Does this help? > > > > https://git.kernel.org/tip/25896d073d8a0403b07e6dec56f58e6c33678207 > > > > The patch which you mentioned fixes the second problem: now I can disable > CONFIG_RETPOLINE. > But, the first problem is still here: with defconfig and gcc v6.4.0, kernel > doesn't build, with this message: > > ~~~~ > $ make > scripts/kconfig/conf --syncconfig Kconfig > You are building kernel with non-retpoline compiler. > Please update your compiler. > make: *** [arch/x86/Makefile:311: checkbin] Error 1 > ~~~~ > > I don't think that this is a proper behavior. I suggest to allow compilation No, you asked for retpoline, and your compiler can not provide that, so erroring out is the correct behavior. It is worse for you to have an option enabled and it not being enabled just because your compiler does not support it. That way you do not have the false sense of security. thanks, greg k-h