Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp926447pxu; Thu, 3 Dec 2020 16:41:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJya4w0L/xw4DdypHTH59v23z/tN4QPxufouCo/vuK54kKQrbzq9GomwBXW+Swd3688KZZgC X-Received: by 2002:a05:6402:50c:: with SMTP id m12mr4305605edv.144.1607042478527; Thu, 03 Dec 2020 16:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607042478; cv=none; d=google.com; s=arc-20160816; b=BfM9vQdnzTegTGj6GgNdrF6I01UcKnVDH/sDg5me4Fm+0K9WaSQZ7pWyqFbTZxDp89 gtHPSr2wlhTNz5qbNss34bvrAyBjom+XFrB0DXyroZjuWSRGCdf0y0077Y+FF8Mlzeg1 0PYIVUv1pVnG5lgMzABOS3DnwQLommQZCG0l+UMu9EdMrLxdizqFoXOF+k+2bRLtmXiD Xr2gOxu2FTNHX0e8I2E9lZxk5vL3uvzqEmdl+0whMHptvSETeWLd1ZT58VwSUKnLSWEl HfwfU1QP+cZqZ0tBdFeUTQBeM8dy9oGBgr/JeaHUHIMi2L9PVuwC5e+Z4lp0A6tC7qJp udhA== 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=u42CbjiqH6yH/u4ofLvYgcwvhaYpZ3AArTDQstrAzmY=; b=AYFoqAneuFtQI5BhaY5odcf+Vk9vhTWYIESWnuOOSVtnfD/3PHx5PqdRK9iEczfJLu 4tPaE/UT4PC5O5+a3sUg8UvR8U706+KrrwEt2Hlmkdh4kWP++d7Zy2PFGJqmMyBbH6N6 9U4QNAGFI7MP5Vz+gFvcoKxD47xk3uAdzlY7lUhZPioH9O/jx4Eq/miJoxCyDkoX16xB r1fXe0dqOu6XRYr70XXZFMKpQOS/HKYVkNCyOa4rItxBMrOu+xGh8v/NiwXvzocUZCx0 G+3YLej+C0ICJ4zmaV4pftZwC1A2XTTUj20qwtQC4Tx9XjSDpe0JKRPn3Qze2NZVyjYA DEPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="wIaFO/wS"; 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 fy14si359363ejb.227.2020.12.03.16.40.56; Thu, 03 Dec 2020 16:41:18 -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="wIaFO/wS"; 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 S1728147AbgLDAhE (ORCPT + 99 others); Thu, 3 Dec 2020 19:37:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbgLDAhE (ORCPT ); Thu, 3 Dec 2020 19:37:04 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52286C061A4F for ; Thu, 3 Dec 2020 16:36:24 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id c79so2507800pfc.2 for ; Thu, 03 Dec 2020 16:36:24 -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=u42CbjiqH6yH/u4ofLvYgcwvhaYpZ3AArTDQstrAzmY=; b=wIaFO/wSzHzjZwn1K9BZkWRiMVTHUfLIky33xyclPtHbQNj4cUInEma62So9YDnJBD 4Ygg+MvKHE8OeBie7rddhxhxkGcjq6ncB+tPP9WqwkIt6QOtt79nu3AuehcVCjq7nBvo aR7E1S9kdDStyl/fX+L1svgxyGuuZ3lbmvH2/TbBl8umw1ksQ0ZX1a/+Na9r8qDYQuNQ 6UNUjq5pZTzQx9pWPGuISyHb1iygcO0qla7HqRD4obXPmzLf5V7Jl0pCBN6CaGoppFKj 3mBaWXJ5/lQe7h54ABxPertLI88b1wq8hzkQfMWYIiDn7KDjztNkAFfK9F79EmT7Ed7H JsPA== 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=u42CbjiqH6yH/u4ofLvYgcwvhaYpZ3AArTDQstrAzmY=; b=JbLzx5MHTOjKue9HczBZpbqiVjdu868PciQNDyxdYyfBgWH4b1VvdaCEPuS3Waq0Ig 1rCz2st/E7M3QfZUGefp2yZ2Q+6nZ6eefQCURP8QJFC/dPFfKTglmqQMIvFjB39s2uzw smfeAW9qDrAoT8mHGs0m/ecpFfjfgFTM8DMb3kXjfVxuU97vMDBnFuvFbLj04hGc4gZW qJId0B/dZ9oOsQOYuin5690RZvKpStk/Ixyfp+T335kgFYCEr7RjdaSnPC5W/X3ZlMGQ UF+roKrqK98mdMbfBq2c6ikMNaeSUU4iQQ1cV7HAebNJ/8rGc9jkzKd/QPbPkL35NQjF P4bQ== X-Gm-Message-State: AOAM53137B7RL7I4MGwJ7fqk/WGiZqAIeCe2jmmGl36pQ6F5CgyoHC5l 13Ab9ykbxaZ9LI2bbCtFmmRgQg== X-Received: by 2002:a63:d312:: with SMTP id b18mr5267980pgg.233.1607042183627; Thu, 03 Dec 2020 16:36:23 -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 k1sm2104233pgm.21.2020.12.03.16.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 16:36:22 -0800 (PST) Date: Thu, 3 Dec 2020 16:36:20 -0800 From: William Mcvicker To: Jessica Yu , Masahiro Yamada , Michal Marek Cc: Greg Kroah-Hartman , Christoph Hellwig , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201125010541.309848-1-willmcvicker@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 01:05:39AM +0000, Will McVicker wrote: > Hi All, > > I have updated the patchset to: > > *) Include Documentation. > *) Use a consistent output pattern for the SCM version. > > In my debugging, I found that the vermagic reported by modinfo can actually > vary based on how the module was loaded. For example, if you have a module in > the initramfs that is newer than the module on disk, then the initramfs module > will be loaded (not the one on disk) during boot. Then, when you run the > command: > > $ modinfo MODULENAME > > The vermagic returned will actually be the vermagic of the module on disk and > not the one in the initramfs which was actually loaded. With that being said, > adding this scmversion attribute ensures that you can *always* get the correct > SCM version of the module that loaded. > > Please take a look at the updated patch and provide any comments you find. > > Thanks, > Will > > Will McVicker (2): > scripts/setlocalversion: allow running in a subdir > modules: add scmversion field > > Documentation/ABI/stable/sysfs-module | 17 +++++++++++++++++ > include/linux/module.h | 1 + > kernel/module.c | 2 ++ > scripts/Makefile.modpost | 20 ++++++++++++++++++++ > scripts/mod/modpost.c | 24 +++++++++++++++++++++++- > scripts/setlocalversion | 5 ++--- > 6 files changed, 65 insertions(+), 4 deletions(-) > > -- > 2.29.2.454.gaff20da3a2-goog > Hi Jessica, Masahiro, and Michal, Friendly reminder :) Thanks, Will