Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp189909imj; Fri, 15 Feb 2019 21:22:32 -0800 (PST) X-Google-Smtp-Source: AHgI3Iai0PmcAIP+pO4/folTSSFWLrkSMaqhb0+MT6AWNWE33AEmCCEDekpvsXvBHrdku04xVIJT X-Received: by 2002:a17:902:9a81:: with SMTP id w1mr13464096plp.19.1550294552273; Fri, 15 Feb 2019 21:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550294552; cv=none; d=google.com; s=arc-20160816; b=znSAJ3dxnwoGo3zbK/NfEsdH9tErlfuDRn8A7FyCN/aC8uUMnk/9CQ1tMPP7fU7cmj w0N8YLj/x+rUOS1m9UU3ACb60YWQlAI5JFMHUnk8tiVFDjTlCAq06lhoXKF4RaWxDwoH wlbfAm9imKocg+gsM2pXTUzAxasVhxoTrYm2dCwkTQxuueWBZMFCSN04tpaAFqVB/C/4 Q1vT2TExtrWE3oH9VWw3IeQJ50XvsdZ8MaHz2SP2hMKZADP6V8UvpYLXTWhqyVWsKvgd HQsQFKCn33n580jOV1kmGkO72/eaGGjdme41Gb5mBA8Vz2KBux+qpR3uP4tjIdrBfmOY b+PQ== 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; bh=JE8hY9Oyq0jjwH7DeydavHzhsq6TIa6bMQjfho0iU+4=; b=zRXg+5e6XeUAcRFACZ2FtIOYlke95hGmZntmm4MVXeqMfYhEQoTRthNxKLSuOB8hFC Iah3Z3DdnSb88QIzMfTu1bov3J/aiQYTzMxkHW8Ngd1TqJ8ejszbS9xmg4JR9LFBP9cF BgtZzPuPjALpXcvLJ5x4oO+winMhbfFzg9LwGLgFZI6BduxADHn7aY58PVxWeC7qiUY6 lBa4qA3Thd50dTUNSZDVK6hk0K2YSgA4ZovKIXLAtxvYJeJXItx7n0C8OHmHerR9LMrU FMbIKsXFtZgzUsQNoyF6AqiWzl+f/DUNG2iED80WSVv297rslCZfmHiPcDWj3dTMWf3P Eukg== ARC-Authentication-Results: i=1; mx.google.com; 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 z33si7563124plb.415.2019.02.15.21.22.08; Fri, 15 Feb 2019 21:22:32 -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; 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 S2389164AbfBOSUo (ORCPT + 99 others); Fri, 15 Feb 2019 13:20:44 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37266 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388282AbfBOSUo (ORCPT ); Fri, 15 Feb 2019 13:20:44 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 899E0A78; Fri, 15 Feb 2019 10:20:43 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DCE553F589; Fri, 15 Feb 2019 10:20:40 -0800 (PST) Date: Fri, 15 Feb 2019 18:20:38 +0000 From: Catalin Marinas To: Andre Przywara Cc: Jeremy Linton , linux-arm-kernel@lists.infradead.org, stefan.wahren@i2se.com, mlangsdo@redhat.com, suzuki.poulose@arm.com, marc.zyngier@arm.com, julien.thierry@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, steven.price@arm.com, Christoffer Dall , kvmarm@lists.cs.columbia.edu, ykaukab@suse.de, dave.martin@arm.com, shankerd@codeaurora.org Subject: Re: [PATCH v4 03/12] arm64: Remove the ability to build a kernel without ssbd Message-ID: <20190215182037.GI100037@arrakis.emea.arm.com> References: <20190125180711.1970973-1-jeremy.linton@arm.com> <20190125180711.1970973-4-jeremy.linton@arm.com> <20190130180415.0cab24e0@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190130180415.0cab24e0@donnerap.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 06:04:15PM +0000, Andre Przywara wrote: > On Fri, 25 Jan 2019 12:07:02 -0600 > Jeremy Linton wrote: > > Buried behind EXPERT is the ability to build a kernel without > > SSBD, this needlessly clutters up the code as well as creates > > the opportunity for bugs. It also removes the kernel's ability > > to determine if the machine its running on is vulnerable. > > I don't know the original motivation for this config option, typically > they are not around for no reason. > I see the benefit of dropping those config options, but we want to make > sure that people don't start hacking around to remove them again. > > > Since its also possible to disable it at boot time, lets remove > > the config option. > > Given the level of optimisation a compiler can do with the state being > known at compile time, I would imagine that it's not the same (though > probably very close). > > But that's not my call, it would be good to hear some maintainer's > opinion on this. Having spoken to Will, we'd rather keep the config options if possible. Even if they are behind EXPERT and default y, they come in handy when debugging. Can we still have the sysfs information regardless of whether the config is enabled or not? IOW, move the #ifdefs around to always have the detection while being able to disable the actual workarounds via config? Are the code paths between config and cmdline disabling identical? At a quick look I got the impression they are not exactly the same. -- Catalin