Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp587027pxu; Fri, 4 Dec 2020 10:18:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZXlIwCT48dAbcX8EQlsXvSzMggGGbDbzCy9bZ9E5W8FA7SLBHZTocMi16SMSxtW7FxyZZ X-Received: by 2002:a50:e68b:: with SMTP id z11mr9229826edm.25.1607105910816; Fri, 04 Dec 2020 10:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607105910; cv=none; d=google.com; s=arc-20160816; b=Pece8CHHp5bzZVDYJQL4IHQK6UjJFNOFD9H1a2n75wmXQDdj4fYe9/scBMgR/7zNz3 rEuo5JwvlItrcHRyW2nqzE2NWKoxtayefUKxw2AzZLRz/P1D6Na69k4Q8eX/XFiuolhj kBk1gtlDecNMd6NwqILuN3VKhm6f1Ubgw4chPgXE0l953aRvkAAzVUdkPLFIhkIwihbN h3N32vesPQ7m5Z13gNPg4kAVQfcxrldxF3cOKExjcqBsK5IRV3e/ZQjK9fDNA+L/Js0Z hsFHgrLtGCeMCld6Yqb8SG7jKRp0TwjVMdJLyRdMattjWVyrBISLhAm8m4LOzWdXtU+v s7kQ== 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=kqGXK79089Igpi5A56cNttm6UXf51X+FqX4gQrf7XWk=; b=gbF0QvIJ9M9NfuP1uXISVftDhuGO7mcmo5Lafgsm1m7Q9VqxZ4F3wbRWPlaZbQpSbK b0lDrNI4VP7CWoPQRl4DVelKh2mZlDNeUUUvoS4skPxBeBd2vz8zPCiBnlWuP+NbajFc VY78Y/xc45r5NRkYTjBMbbooa8HATStg5sTkBaTqDQ5XUvn1oyDqL88YBgfmwRrtZfWc VZgla6ZDj4upTfBO1nxGz4otUjP+bJcwFtHFNjRt1gOdlEwujO8VeMcoc6lk4yF+x/IB xDF6KEZ9p5VDFUNl1lcmA64eT4dulZIy72m0ktWQXt3ZeCE7AteRqWqwRXit3x+5s6Yg Fs9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="wCO/6Lvw"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si3342796edq.304.2020.12.04.10.18.06; Fri, 04 Dec 2020 10:18:30 -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=@google.com header.s=20161025 header.b="wCO/6Lvw"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387637AbgLDSOl (ORCPT + 99 others); Fri, 4 Dec 2020 13:14:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387419AbgLDSOk (ORCPT ); Fri, 4 Dec 2020 13:14:40 -0500 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95F1FC0613D1 for ; Fri, 4 Dec 2020 10:14:00 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id 4so3559063plk.5 for ; Fri, 04 Dec 2020 10:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kqGXK79089Igpi5A56cNttm6UXf51X+FqX4gQrf7XWk=; b=wCO/6Lvwmk8upUzjOhryX/gmfrvUQ1tYhDHtArOvGZRgt15t00AfsFwuAZzlfz13fH ldpyxqZ9ICcl2aUDlC2QiXNSoXxHS1OvzDaym0iHVzsWY9pHPG0PiVS8X4cUxyedXfHm 1PZwzrhzGAjfurbGmwV9G6Q9t6CRNUoomGduWfVwgWYeJcwlyNs87y6kvpu+Q5mV6EpJ Bt08UWuxSlPxbT+ZvdBwZdPBz4u1p+QuEj/rOYLh3mSVKyJ4I3npyBl5Jz0M+VqXP2jA RaifWFTox2bsId1FLm4IVQkz9k3W5UPWm7k+6d5xO/X0m2vvKPDEKFeSZIWSBm1lIUew jNOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kqGXK79089Igpi5A56cNttm6UXf51X+FqX4gQrf7XWk=; b=pjcJc2W5SWTgBW99MpUi2vj5msd5Abh8hG0Cf2lZp11mtFBOHGRrIKgHKjRmnLA9rg DrN56D5NtWCjBjxRwK96vmmiRa/K50DPTDWu8ijaum2br3E8V8W5eljIGmzw45fqvOXk hODyQZlcDu4IfuNeg7L19oZoKRi7L646iDsHBmVLanKFqJslZC90GT2gge7zcESYq0Ky zRHq5Bq8WDAJjAiRFHgR3spdULcV8DCT2+nMFJ2UWYp4LnMl3cXx6Barkkg5KDaWbbNG 1UlIhjoOCWYK8898NPcgF3h44HZhPITg20A3/K7Wymfgh0zVbdDtcalvePJoJaaB8JWR temQ== X-Gm-Message-State: AOAM533hHOCjUxT6julgNFZdMjjNEBTxlhBs8zTe88/V6g4/GCTp5LU7 y1pxG8EHWpCSWZ1GHhk1Y3pnRw== X-Received: by 2002:a17:90b:3852:: with SMTP id nl18mr5105143pjb.188.1607105639990; Fri, 04 Dec 2020 10:13:59 -0800 (PST) Received: from google.com (h208-100-161-3.bendor.broadband.dynamic.tds.net. [208.100.161.3]) by smtp.gmail.com with ESMTPSA id i11sm2732864pjl.53.2020.12.04.10.13.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 10:13:58 -0800 (PST) Date: Fri, 4 Dec 2020 10:13:56 -0800 From: Will McVicker To: Christoph Hellwig Cc: Jessica Yu , Masahiro Yamada , Michal Marek , Greg Kroah-Hartman , Saravana Kannan , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v2 0/2] Adds support to capture module's SCM version Message-ID: References: <20201125010541.309848-1-willmcvicker@google.com> <20201204075159.GA29752@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201204075159.GA29752@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 07:51:59AM +0000, Christoph Hellwig wrote: > I think your decription still shows absolutely no benefit for the > kernel, so I'not sure why anyone would want to waste time on this. Hi Christoph, Did you get a chance to read my earlier responses regarding the uses for in-tree modules? The biggest benefit for the upstream community is being about to get the SCM version for *any* module (including in-tree modules) in the initramfs via the sysfs node. Currently there is no way to do that and there is no guarantee that those modules in the initramfs were compiled with the running kernel. In fact, running, modinfo -F vermagic MODULENAME will return an invalid vermagic string if the same module with different vermagic strings exists in the initramfs and on disk because modinfo only looks at the module on disk (not in memory). The second most useful benefit goes hand-in-hand with MODVERSIONS. The purpose of MODVERSIONS is to create a stable interface that allows one to update the kernel and kernel modules (including in-tree modules) independently. So when developers do update their kernels independently (think for security bug fixes), the `scmversion` attribute guarantees developers that they can still identify the modules' or kernel's SCM version. I hope that helps. If not, then please let me know why these reasons "show absolutely no benefit for the kernel?" Thanks, Will