Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2273863pxb; Fri, 5 Mar 2021 11:20:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwWM6zR4xciMdonxILGPZc/xQwmuGfFKN6r/uU9lB6rKsm8sYdCwo+tu+FmVJu1ZUdFoY4 X-Received: by 2002:a17:907:1b21:: with SMTP id mp33mr3730130ejc.358.1614972022970; Fri, 05 Mar 2021 11:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614972022; cv=none; d=google.com; s=arc-20160816; b=JUrYV4OyIhepOMLPVwZ1VJFGbxIfg9GfdRLvHfM7/ssOmWIPi27nQTXtFAl1y41C2g pmU3z4E9OYGzmalkaIuSWOZQeXnJDXcwwA9Wcw2VF00YCba1dIVKY3SvekUzf06Xbffe no2g278Uw7EM78Kh0bZ/VjLheGz4XmNyy6CKIHFCc0EwudGsUQ8MS8kFZ4B22HYW72uc xgdUwmYaW1dpFPBnU0YR2BTsHBHnrjq1zt2V9F4tfzIcgh5abfw90uB6Nv/mx1SVNS8P pNRybUYbrqdpnPIW2NcHp9uCNhEJKsFonTippyeO+DxWKQYMUS1hN59YzAw8NX1epZk2 c34A== 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=wo3BPsLRoEcARqi/I2GE+yDj8s8Utt89EBG5Ym/er0o=; b=HR3k7c4Fp7VEIi+8M7PPxnBD7H8UtEGiEdYWcfI1n/YS/pUBS0WSjdw2N1rRElvbtY JYaAxIwDs+4atCR8i/KlXSIsoCz6MNgEReClMeerbS8uKdhf7trza//ppjp7VRoyh/F8 PKJlkPM1CTmbg3cR+onkWQhlLxjFgCghu76SEotmsOAPXdpXhIGcjy2FwvekyLIo3hA2 RRZTmpRk85U0R3OiHO2z+RoeadSYvTzc2m056V/IrjV25Z8GMQYkiDBf8KvIifSZ//XH /mzKc9LNGSAcej4sv0vtSvUgCP6POXkEEbvOk6iNi6uuM+bmEQW3uE37c3kJkL1Iz2lx CTbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FNWkDtKa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si2076434edq.597.2021.03.05.11.19.59; Fri, 05 Mar 2021 11:20:22 -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=@redhat.com header.s=mimecast20190719 header.b=FNWkDtKa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbhCETSz (ORCPT + 99 others); Fri, 5 Mar 2021 14:18:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37178 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbhCETSo (ORCPT ); Fri, 5 Mar 2021 14:18:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614971924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wo3BPsLRoEcARqi/I2GE+yDj8s8Utt89EBG5Ym/er0o=; b=FNWkDtKaIDeZedOig+LjwICewusz8YBlxUkqnImFuuCkyZ9HBDp600HHLx6MVvMtITGBXO QVoE1OAUm36OnWeojNZhZAGUSx49zP+nONW1/yp+0grfyNuHImWGhyIUzED4ksCkVu1ig0 mSav5jFtk0YK0l+fSUsXTMV4bWxRaVQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-UJwHOQoCN-2BC7Rin_2KHg-1; Fri, 05 Mar 2021 14:18:42 -0500 X-MC-Unique: UJwHOQoCN-2BC7Rin_2KHg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 08D4E800D53; Fri, 5 Mar 2021 19:18:41 +0000 (UTC) Received: from treble (ovpn-116-51.rdu2.redhat.com [10.10.116.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3EE9A5D6B1; Fri, 5 Mar 2021 19:18:38 +0000 (UTC) Date: Fri, 5 Mar 2021 13:18:35 -0600 From: Josh Poimboeuf To: Masahiro Yamada Cc: Linus Torvalds , Linux Kernel Mailing List , Michal Marek , linux-hardening@vger.kernel.org, Linux Kbuild mailing list , Peter Zijlstra , Justin Forbes , Ondrej Mosnacek , Frank Eigler , Kees Cook Subject: Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules Message-ID: <20210305191835.4e54dei3dmslbo3a@treble> References: <20210303202406.bxgdx5a25j6wc43b@treble> <20210303214534.guyoxcwrgxgcqzy4@treble> <20210304150812.rzya7ewmerwhe4m4@treble> <20210305024140.fv4i4ujreem2w7sw@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 06, 2021 at 01:03:32AM +0900, Masahiro Yamada wrote: > > Ok. So it sounds like the best/easiest option is the original patch in > > this thread: when building an external module with a GCC mismatch, just > > disable the GCC plugin, with a warning (or an error for randstruct). > > Just for clarification, > I believe "the original patch" pointed to this one: > https://lore.kernel.org/lkml/efe6b039a544da8215d5e54aa7c4b6d1986fc2b0.1611607264.git.jpoimboe@redhat.com/ > > This is dead. Please do not come back to this. Sorry, no. The patch may have been crap, but that doesn't make the problem I'm trying to solve any less valid. > See negative comments not only from me, but also from Greg, Peter, > Christoph. I responded to those. Summarizing my replies once again... - "External modules aren't supported" This doesn't even remotely match reality. Are you honestly using this "negative comment" as a reason to NAK the patch? - "External modules must be built with the same GCC version" As has been stated repeatedly, by Linus and others, there's no technical reason behind this claim. It ignores the realities of how distros release the kernel and compiler independently, with separate cadences. Minor variances in compiler version are ABI compatible. Also, for features which are dependent on compiler version, many of those are now enabled by kbuild. As I suggested to you previously, kbuild should warn when such features get disabled (which can happen due to a compiler/toolchain change or due to a .config copied from another system). -- Josh