Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1652804imu; Sat, 8 Dec 2018 04:37:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/UZOVfJdm8UKrp1aYqye6GcnUCs2MP99VKQrKE1BkeJYPf/3vlnx+2XgELgKp7OyrkEP4Mi X-Received: by 2002:a63:30c8:: with SMTP id w191mr5179288pgw.120.1544272633902; Sat, 08 Dec 2018 04:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544272633; cv=none; d=google.com; s=arc-20160816; b=eihnS4ztg5TVE/dPzWlKkW0H0WBmQXiGf6A3NbNrTEg4C/GPezoBSFseg+//HtzplJ npvp7ejkOJ/z+5myZMHsV32Ou+YT1kC96v2/CzQ/RT/gg/dUFIdgZP8ifp/QdW/tHy8r izfkWmu1WTPVTqxESEhkD8FSi2+WiemBpwa7G8+7LOvpzns9cGAF4IScwp6AH96kj/g+ LCUPmq2Sls+/urA+AUho8YsDji7+ynzP3aIf8/4HdyfrkMuxxg0Bz2PlQn6zxf4uVoQn 7gQqRJKA6vyxfVi4d4lAUVFpX44C9SGYHZD/OiAZfJEmSWzsGmyuycwgwWyHEXuMi/UV 4LLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=36A3eDckkylrGVjY8X8hZlZOGZ+jr4cIWWns9IB8/iA=; b=EV4MwwIaH3TcGdUgklc6iRhEQzRympmhFlgjh0HMJijzUeiY6tFTGp43LJxHqjU57x Q2CW6HbpVuOsuRJFo6h4aH3e8R2Cf2W8RBy9+yaz0xfmJYLNgkSG7NROA8Z7/vHBz5wk z4dElf4VxM3MgLV6hJgK9/2K0LY8SG6dfi5kU3Qh/JThTRGQcWHxTRDqKK3m9sSCJrBN AJCdAxVDATjBZs0gEXpav5nYeDw6QRfwIOLBjuKGtmFmL2CvDskrm0ww0l4xazWndzPt uJm3gu/2fWueBXqkeaTQzOQldf3JtJtZ1dxuLtolI13rsbKITqvv3iw0JF3+4MRYPcwJ NSXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ayLx5CYM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si4700081pgb.371.2018.12.08.04.36.57; Sat, 08 Dec 2018 04:37:13 -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=@gmail.com header.s=20161025 header.b=ayLx5CYM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726149AbeLHMgX (ORCPT + 99 others); Sat, 8 Dec 2018 07:36:23 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55988 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbeLHMgX (ORCPT ); Sat, 8 Dec 2018 07:36:23 -0500 Received: by mail-wm1-f68.google.com with SMTP id y139so6696655wmc.5; Sat, 08 Dec 2018 04:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=36A3eDckkylrGVjY8X8hZlZOGZ+jr4cIWWns9IB8/iA=; b=ayLx5CYMymWpDPmeKkE9IFR7gRSFBjVtezz9ztwUzSKRQvRW0iI1Lye0FW4LCS2M1J qpujtsa9DmSFyJ+sGaNZ+6+Q0r6yrGdndu7FlMufM2rYgtez7Yqs1SHlvHOr329meyBt ab4D1dFalGxUdvZXcOrTRskpNgddXHhGAjVtycNVMTOkEZff9yIgdY6eRshZ8NivPGId ol0TyFfVouQ22NIGGSpilpz3nn+57iPY0GEE48LEQtQOM5Ep5OWqHqzH0hXwyIbAqkA4 YYqbkv1ZZHO6sQjL4Suw1qQqYHlCcqRCSwMR/Vh/GQlr+d4enqWEA51GWq07aDjB3v8p Nlcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=36A3eDckkylrGVjY8X8hZlZOGZ+jr4cIWWns9IB8/iA=; b=d1nVT52bUje8XjYdqwqoFOyGPMi4BwuCz+ppTQBAm2fofp9IZLlL9U4IBmOE90DJdX +wIJLP+C4+nvni5Kv+XgC9rp367kEkDAucYbx4roCoOyQ/b6KtxSQDLjAIlkSY+rtf5c +IzM1Nw8bTOQU6PFn6DMADEGBqllxHbhLClFyK7aSE+ZSoLTWOZEk/fgqOarU9O867A5 ef5J5ITXZIcAMKF+NhTkOoAGooaMF7ONn3IpHgq/hsdT1QNJ+wENtDBeROQtUI0Bn3qX imTwEiom4G+lGWNUcWIvkepAP+RzTNRlBIgcU1iV1o5nuYdiW0hfqyzCAhEi90BqqETB DEHw== X-Gm-Message-State: AA+aEWaXaUM9D9h1H6iJnrzSoEIJcRIdtjgJ+FLZmVQMsg2+Ytrdpj8m VEUi4ZPshiEpX6uF7QxDNLw= X-Received: by 2002:a1c:414:: with SMTP id 20mr5012082wme.67.1544272581318; Sat, 08 Dec 2018 04:36:21 -0800 (PST) Received: from gentoo0.localdomain (x4d06ba91.dyn.telefonica.de. [77.6.186.145]) by smtp.gmail.com with ESMTPSA id x76sm15769870wmd.27.2018.12.08.04.36.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Dec 2018 04:36:20 -0800 (PST) From: Kirill Marinushkin To: Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: Kirill Marinushkin , Zhenzhong Duan , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] x86/retpoline: Fix forcing me to update my compiler Date: Sat, 8 Dec 2018 13:38:16 +0100 Message-Id: <20181208123816.22952-1-k.marinushkin@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First problem: I cannot compile the kernel with my version of compiler ~~~~ $ make defconfig *** Default configuration is based on 'i386_defconfig' \# \# configuration written to .config \# $ grep CONFIG_RETPOLINE .config CONFIG_RETPOLINE=y $ make arch/x86/Makefile:224: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop. ~~~~ Second problem: when I disable the feature - it cannot take effect, because the parse-time error happens before `syncconfig` ~~~~ $ scripts/config -d RETPOLINE $ grep CONFIG_RETPOLINE .config \# CONFIG_RETPOLINE is not set $ make arch/x86/Makefile:224: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop. ~~~~ Fixes: 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support") Signed-off-by: Kirill Marinushkin Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Zhenzhong Duan Cc: H. Peter Anvin Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org --- arch/x86/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index f5d7f4134524..26a2198c59b3 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -220,9 +220,6 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables # Avoid indirect branches in kernel to deal with Spectre ifdef CONFIG_RETPOLINE -ifeq ($(RETPOLINE_CFLAGS),) - $(error You are building kernel with non-retpoline compiler, please update your compiler.) -endif KBUILD_CFLAGS += $(RETPOLINE_CFLAGS) endif -- 2.13.6