Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1043927pxu; Wed, 6 Jan 2021 10:47:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyE5UUsIzcNcQxLT1xKbR3hQLen9HROAKoz94DO8FKbdUz0WKFf9PsiBiQh76M365j57O2e X-Received: by 2002:a17:906:fa88:: with SMTP id lt8mr3847157ejb.408.1609958831277; Wed, 06 Jan 2021 10:47:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609958831; cv=none; d=google.com; s=arc-20160816; b=NwBcrliAovR56wqm8yx1S4LY3fR1W904elG0u+wskVR9JyoUSTJWxil0f32+8SmHle 3mX8TlXJ4vgBMSQ7ONBkuE/p7ua7yoHDH35RzFiCF+vTwWN3IEJTfqVUBRCSjnRpTk+X DQzUFAc/XmGpo9yZPFwRQth4PDTzZaA5hIAU/p6AELTxbOPsTY9Dbrlqpg6UqlEs5CIs A7ngaJHqCDIlvMe1LzNKge4PUrIaxAio3qiX3Lh9sNfrGaKgwuaLtnxfuFYqe4jeymdb QxKX0Fk2ubneBtNC+RI43lZxDD6Jp6zbjd32HP3DjAV0xI3ipcYwiQUPZ/y0q9N0vOXV juZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=B3o1kNyxEv4i+lDJkh/+xYzW3JvlkqElwj1t9uUUP2E=; b=JV2uB0YbRjYvDgs06s+JOkAqLpbk9CNnBm7X/SLWDNBzCLv56y+xzoCmpzcRvjyQBR MSMKzacBYHYOZ7KvNqUkdGdRJkqqYjgLX9bzYP7J07liwh2D79+qDOEpTyZSe2fh8Pjt ndbm0Qxl9vJGtq7NEZAAxFU9r2mPhdBSIy2j1w/PNQvdtkaFfQ0IPqm3LEyWBF7U8T7G a+48zlgpqfeKlslW61kEtn+AiBraWih2nXYWfXLwyBaF7P8FEfHJl47JAgisG20Kk0gK UoyQR4YOWZIrvmHPr8rEscwSLieKYZIE1VnON/lpoEe7OYlJCsLxPbQkIOu9Mz6N+JZn Y14g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hhjCHZjL; 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 c7si1220544edr.193.2021.01.06.10.46.47; Wed, 06 Jan 2021 10:47:11 -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=hhjCHZjL; 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 S1726362AbhAFSpB (ORCPT + 99 others); Wed, 6 Jan 2021 13:45:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbhAFSpB (ORCPT ); Wed, 6 Jan 2021 13:45:01 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16EE9C06134C for ; Wed, 6 Jan 2021 10:44:21 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id o17so8852857lfg.4 for ; Wed, 06 Jan 2021 10:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B3o1kNyxEv4i+lDJkh/+xYzW3JvlkqElwj1t9uUUP2E=; b=hhjCHZjLEXie72KKMUYCum6xgiUwm8nDjmI4mbMihbvVAetHfkKnNiU+qDFdIp6lUm RuF/Jahx9XgsyU0KhZQvXbMNAIn1A0hox4jor50RRpuDpmoKK9myfaZb5FG30DuyVkHr tNemfxqeu6fKKofETWxImnhtoX0sk3CgoXNywfmxBGZMpBdT6Nc7GpdlbPrcPmbJAEl5 gm7DqeRqicQbOVvZibsOo7KsKCyQcKf4OjO822Pqhr3LpKUarEr2K8XoxKhPjzZ4uIyb XOW3GreMXR23itlBg8QXMR4fyHUYNDF/P4tHlB6Y3Qz3s/aBn7EfVQKEF2jQQffCxCWV WM7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B3o1kNyxEv4i+lDJkh/+xYzW3JvlkqElwj1t9uUUP2E=; b=NPfbfHlcPeM7AabkObjG8VwzuMLsI78uvnv+3Nn9ktXr3sR4EOgNvEZuQLqCsMkJxK QNYAkecxwTC6gbAiiZKOjZaCdAsgQtY3Q+1Pl12jJbpCCovhXx0LugOwRPlYC/GpLCFQ ZOOQRxNGH6r8oxw8SXQ699JC3bkfOzGWYpHHaQyafAtreo+DNuwErdE65a5hY0TNHNyf A3ERMeavHwbU2CE0c1K3pblqX4pWtC0exvCR7mtdUb6Xc3ANuOSaTpS0OlfxvpCTUj5N RLtM8jAET8pLtZjyXsfM4Z4KrIR+k4GwZzwCYhDtg9gzwH8F42WNETMpy56LCmOVIKIx DeeA== X-Gm-Message-State: AOAM533steC1D/XoalFsBZ+I1qQsJCztNBaR1kRAWAf4lKzNMhv/9aOp df6Qr5fjWOXppPJGYjEX/D607p6NmOgig6nApSeZAV3xGsyQ1g== X-Received: by 2002:a05:651c:316:: with SMTP id a22mr2390349ljp.473.1609958659406; Wed, 06 Jan 2021 10:44:19 -0800 (PST) MIME-Version: 1.0 References: <20201216220850.659584-1-willmcvicker@google.com> <20201218120138.GA5265@linux-8ccs> In-Reply-To: <20201218120138.GA5265@linux-8ccs> From: Will McVicker Date: Wed, 6 Jan 2021 10:44:03 -0800 Message-ID: Subject: Re: [PATCH v4] modules: introduce the MODULE_SCMVERSION config To: Jessica Yu 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the vacation notice Jessica! I'm just letting you know I'm back as well and am happy to respond to any concerns regarding v4 when you get all caught up. I hope you had a relaxing holiday :) Thanks, Will On Fri, Dec 18, 2020 at 4:01 AM Jessica Yu wrote: > > +++ 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 >