Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3933968pxb; Tue, 26 Jan 2021 08:15:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh+cfYhwkx1oC2v0wMKyv0xIp6v33wQR1mOy7rTJ50JJW8BTx0e8a17i2A5yqO04y21JBU X-Received: by 2002:a17:907:2049:: with SMTP id pg9mr4079936ejb.401.1611677748704; Tue, 26 Jan 2021 08:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611677748; cv=none; d=google.com; s=arc-20160816; b=uIOeikR9qrqy1k+QORc7fwA3a7KlccpHz7zXl5/hZP/RE1KtrUKHOgfv2NN0YX7Jhe cuoZcLHPZzyTj3TgAuie6SHU/qFgm01MC1JBu1NedMcyY/2wjG9/6hZTZ112q2wpEXEq aBWP7n+e+/KBaZ9PLnlbRiZDGV4Jy6lUDkcRYHz6KN13Je3ULr00W60N74ePQmoGRpw4 /kokyJwqiO4Lz/Dq5sb7fywwVGQPEhKjRnEprEz0PK7FUodOCUwey8xmSERHlXWv7TM5 4vfzc3W9glPsO9e3PVG1epNr+/xPuIuVFYpComQg9iuceSUl8zhdfQpl5lv753Debn0S QSiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JH2sQI58od0xGBtZkjCcZFqHlgfaX4NaN7zGq9O0+9Y=; b=HHHuAypF+ndMKmblMfTYX7uQ2wSDqtzA3FLK2HAtXwRcTOvrQsGkjnrBh5lALivkbE e2KLT/SEmTee7SDQF7+BdPVnkyamDZ2p+j71ij0IUS0TplwTqt7dKI3uAAQnno+4bWbr +9Emd3q1uZu41YLX71wJD9n5NdSlP2pv78IO5bZLVxJqqsihc0N3hEKSISw/z9aSI7Wq j+5Jh62GNj/fR/NS9c/mbZ5sUuY2LqhP1T/E3uavAKoI8/BAbqUo6q5NMktSZBux4w0h AGOJvLotpGdIBVuhA4mnzI7mI/ZHRnli/vw+JD01qUzlvncllQunG/kaTc8D2zb9FgWY mRXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=imOXpyr+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si8608810edr.176.2021.01.26.08.15.23; Tue, 26 Jan 2021 08:15:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=imOXpyr+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404529AbhAZQLr (ORCPT + 99 others); Tue, 26 Jan 2021 11:11:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404642AbhAZQFy (ORCPT ); Tue, 26 Jan 2021 11:05:54 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F10B7C061A29; Tue, 26 Jan 2021 08:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JH2sQI58od0xGBtZkjCcZFqHlgfaX4NaN7zGq9O0+9Y=; b=imOXpyr+CGs3ITzYf0b3iOjGMk 7+TVcmqZt2bp26YWSnfYjX+DbDjo9eZ43CB3OZrDEjyoVfCU4JoaD3ZA+MdQj0Ktm8URPnojsYVv1 +Fk5/H1h3hYHJTmeLtgHDxpegDiZ4vIBIaCjfpL7VoLlcfpLqGHBZpcpJ6+skN2jd9gHMKmvi5Usm AeohIoZ39cmiHNmywfRUk9IMZbDp3PTGyY5AVNVc7fzcRDleSruFGtQxmAt295gN2t1goR4o4CCkv 6hhfuutOQj7P7btCVm1wj0cccPvZydX7jN3C6IH/9gvvt3ooJ0j3QBTT7Mpn9GzCoCzEQj43NW5Bw Ty2GJlRA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Qq2-0008JW-EJ; Tue, 26 Jan 2021 16:05:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1BFB23019CE; Tue, 26 Jan 2021 17:05:04 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 086E92027D383; Tue, 26 Jan 2021 17:05:04 +0100 (CET) Date: Tue, 26 Jan 2021 17:05:03 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: Greg KH , Justin Forbes , Masahiro Yamada , Kees Cook , Linux Kernel Mailing List , Michal Marek , linux-hardening@vger.kernel.org, Linux Kbuild mailing list , Ondrej Mosnacek Subject: Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules Message-ID: References: <20210125212755.jfwlqogpcarmxdgt@treble> <20210125220757.vxdsf6sttpy46cq7@treble> <20210126145155.kcfbnzfqg5qugvcl@treble> <20210126154651.itfrnhwfistia3ss@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210126154651.itfrnhwfistia3ss@treble> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2021 at 09:46:51AM -0600, Josh Poimboeuf wrote: > On Tue, Jan 26, 2021 at 04:15:37PM +0100, Peter Zijlstra wrote: > > On Tue, Jan 26, 2021 at 08:51:55AM -0600, Josh Poimboeuf wrote: > > > User space mixes compiler versions all the time. The C ABI is stable. > > > > > > What specifically is the harder issue you're referring to? > > > > I don't think the C ABI captures nearly enough. Imagine trying to mix a > > compiler with and without asm-goto support (ok, we fail to build without > > by now, but just imagine). > > > > No C ABI violated, but having that GCC extention vs not having it > > radically changes the kernel ABI. > > > > I think I'm with Greg here, just don't do it. > > Ok, thank you for an actual example. asm goto is a good one. > > But it's not a cut-and-dry issue. Otherwise how could modversions > possibly work? > > So yes, we should enforce GCC versions, but I still haven't seen a > reason it should be more than just "same compiler and *major* version". Why bother? rebuilding the kernel and all modules is a matter of 10 minutes at most on a decently beefy build box. What actual problem are we trying to solve here?