Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2042971pxu; Fri, 18 Dec 2020 04:15:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVjYqH3hzARwlhcStfFON74MEqRgjOV8dm6mFSFOfgM2xPYQAjDMVqErTq//D6FQr0Hmco X-Received: by 2002:aa7:d2c9:: with SMTP id k9mr4135982edr.74.1608293757792; Fri, 18 Dec 2020 04:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608293757; cv=none; d=google.com; s=arc-20160816; b=NBb+lbzWKLyyMXgDEBXq+gEH1nmOBLR9a4KY7eGbO1nsg5cNKpsFXhbUDwVHrBBF/n fPCrYBUpTtjxpSI97//mcrwcK2aa/pTbIiSt9kSCE4jzTvQrXk/t87KDGOHZjtMV4QHz rq5T93rlEBfPjE0VkB0yTeYtj6dGLJZqr9CnwezZx7eqpJGZMhwIH7+PG82L1Jo8eAUB TIewRLWyuP+iYx8NAThesoOcpMP9c0DHVqVw7D3+EiAhQHvWiwwK4ohIhx/jj4vkMVEA 9UHQfv318ZONbGsQYFrYToQH0/lC0nBKeASq0gc2LdC+2cYOvUswEafuty/v2IGshvcG RpNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from :dkim-signature:date; bh=QOYOZ+cmVFggEvL3ic5vo+f87owNkYjNGtdpbZFVlCE=; b=KSTmU4+La8BkS21cPKNPFmfHegDFob6rUGuT9QKOeET/lEH5Ty7UvDo0Y302UDZBPe YnczvZjCpo2b41DlZpBQUXSIfTEwbM6dmdHfevsyFWx8rd4zzRfkxFUznhi3leCwHPKu MIDtLmnOOIexTWjVgTihXH8vfEj+sBg3GGWvsvM737OI/c3tCpeiOfY/9hMe0DZ1o0gG 1GFh0nNdoio1gJruowo4OSWw9UTgoInlgCCtX1uC3kiEU6ikOapOt7C2SnaaqkO33e67 7wHI+QBgAvikK6ePGKH9Ey9PMw3waa6gLM8qc263iQl2XqxnCFvGMe92PftIWbk14tCO DZ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CM3Sg7wZ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz24si4746128ejc.72.2020.12.18.04.15.34; Fri, 18 Dec 2020 04:15:57 -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=@kernel.org header.s=k20201202 header.b=CM3Sg7wZ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726499AbgLRMCY (ORCPT + 99 others); Fri, 18 Dec 2020 07:02:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:54180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgLRMCY (ORCPT ); Fri, 18 Dec 2020 07:02:24 -0500 Date: Fri, 18 Dec 2020 13:01:38 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608292904; bh=K6CUqnb/X7ZPJUEKfo8tMazAcE7KHIZB4MD6YANo84A=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=CM3Sg7wZQ3UhDO5QNEmg1lmWfQiLMKbGnFjcc9E11TJH2ThuGm1DAKMtm0ANW0vr8 6cSlJyaBZrKSrIl9ed9qSDvYkcaRYwu60KJWVhKiIB76fxd+GEV5XM6vBeeWVqIsae y7xSCBrxxdBKSsdbIoYNLigeU31UaNaTl6jwos6ncHFLLrq+1cpPDIDYWI5yjtyG0I hQpyNDVBb+JQyhoSRzOXuJGawDRVJY+uV2wrTPHkISTytFIRbUcUajOtpvUNSBJMHA Jp327LnjsOGIbsEGWzegyLkaWMZuH/x1Ne+HAaX/x4KZaaF7OX8N1i4TXyZ7S3kAaG usenRY5bBSrfA== From: Jessica Yu To: Will McVicker Cc: Masahiro Yamada , Michal Marek , Greg Kroah-Hartman , Christoph Hellwig , Saravana Kannan , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v4] modules: introduce the MODULE_SCMVERSION config Message-ID: <20201218120138.GA5265@linux-8ccs> References: <20201216220850.659584-1-willmcvicker@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201216220850.659584-1-willmcvicker@google.com> X-OS: Linux linux-8ccs 4.12.14-lp150.12.61-default x86_64 User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Will McVicker [16/12/20 22:08 +0000]: >Config MODULE_SCMVERSION introduces a new module attribute -- >`scmversion` -- which can be used to identify a given module's SCM >version. This is very useful for developers that update their kernel >independently from their kernel modules or vice-versa since the SCM >version provided by UTS_RELEASE (`uname -r`) will now differ from the >module's vermagic attribute. > >For example, we have a CI setup that tests new kernel changes on the >hikey960 and db845c devices without updating their kernel modules. When >these tests fail, we need to be able to identify the exact device >configuration the test was using. By including MODULE_SCMVERSION, we can >identify the exact kernel and modules' SCM versions for debugging the >failures. > >Additionally, by exposing the SCM version via the sysfs node >/sys/module/MODULENAME/scmversion, one can also verify the SCM versions >of the modules loaded from the initramfs. Currently, modinfo can only >retrieve module attributes from the module's ko on disk and not from the >actual module that is loaded in RAM. > >You can retrieve the SCM version in two ways, > >1) By using modinfo: > > modinfo -F scmversion MODULENAME >2) By module sysfs node: > > cat /sys/module/MODULENAME/scmversion > >Signed-off-by: Will McVicker Hi Will, thanks for v4. I'm on vacation for the next two weeks and with the current merge window almost over, I hope it'd be OK with you if we revisit this early January. Just wanted to give you a heads up. Thanks and happy holidays! Jessica