Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp394325pxb; Wed, 3 Feb 2021 07:59:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOFnEeGt5Qx6RN4bv3bmiXBOLkSOqMRoFl+/wTbNE8V3L+7aF2J/hfDQ20tAYvSwfnf5x4 X-Received: by 2002:aa7:dc0d:: with SMTP id b13mr3698657edu.170.1612367945748; Wed, 03 Feb 2021 07:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612367945; cv=none; d=google.com; s=arc-20160816; b=R87CmWd/qXnoMdJqfmfi1Fdb84PQoTr8Ge59QSeYfrVtuUFbhrW/BxK9/oxyFWlHpn qma0mmFutaJ4cQgH1sub1Gjtp5HnDI8Z2WdswlpDC7lkj28DZmE1FgIBwSEHwHOEwwQN FCKi/ZhDh6HGp0Uc5YLLgs+auiGf4NvH86fzzuvZKlhMXK2aqMKtyAiqxocBp3OT2MOe BjzkVE3b9xSeBJuZAB3YOo7e9fCPb0oTTvqHtAbEWhnzg8iYwMx21TD2x7uppPR9xVN9 vyc2tJ0m/mfmlvhcnx1XrxNRkFbUKMHSepVzchGHfnc1//tLQ4jJpjboB8h6uQ9js7ue JgVg== 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=V9aeVur3uq/cCA0IRzI+4HMrKgrDTzt8davIZs3OOnU=; b=nuk4wUwRVXPBBkfcusgayl/kkH7rSyhq3vaXAoA/YQWu23yPhrC8K26vVi0sE9/xEI khiJITBRyfKk9JvNQyg+7aP0Qw7HJ8RlVPZp0Ro2o1sbwLO5I+ssxximw0pmpG21MyZq xSr6MCMDkWSUqc9L+DwVURxLZaOpvv3FGYatK9Oqse4o6SudWWWF4XGHQw+8GjINfSSR sBFWK02ffs780VNxOs8TXzlaSPVRb2bSKJ1OmZ8VqCq1bDuIX2PDQpZaaz0VRT0TUEBM 0lw98/ytswXAoQrOGRHF/hwMCz6EYXzG8gEj/doNEiZTiqbwfv8MvOZB/Paf+Xyz32dL Uxzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w2sF7j3d; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si1510445eju.432.2021.02.03.07.58.41; Wed, 03 Feb 2021 07:59:05 -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=@linuxfoundation.org header.s=korg header.b=w2sF7j3d; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234579AbhBCP5T (ORCPT + 99 others); Wed, 3 Feb 2021 10:57:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:33148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234668AbhBCPzz (ORCPT ); Wed, 3 Feb 2021 10:55:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B71AA64E3D; Wed, 3 Feb 2021 15:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612367681; bh=6klP67F/eJlyfcD5sePw8yJKwGPDEhrxwWlDTcc1Z80=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=w2sF7j3dmDgddukSnhCXQQ1UlATkp2X+YrR5kJ6m86eC6Mzl4ybjK6B7tJzqwEl7o c/WwMbQyUqo7xIkcPDy5GnH3BcXBGuvn3Dp7HLVe9+crZMvMzr30/LTzaauXja2/rm vsJK0Voe/naMBeP58LHZwFutjZHV8XbcfVd6xbbw= Date: Wed, 3 Feb 2021 16:54:38 +0100 From: Greg Kroah-Hartman To: Jessica Yu Cc: Will McVicker , Masahiro Yamada , Michal Marek , Christoph Hellwig , Saravana Kannan , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v6] modules: introduce the MODULE_SCMVERSION config Message-ID: References: <20210121213641.3477522-1-willmcvicker@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 04:46:16PM +0100, Jessica Yu wrote: > +++ Will McVicker [21/01/21 21:36 +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 > > Hi Will, > > First off, thanks for being patient and being responsive throughout the patch > review process. > > Personally, I am rather neutral towards this feature. We already provide > CONFIG_MODULE_SRCVERSION to provide a checksum of a module's source files and I > think the SCMVERSION is a nicer alternative. I can see how an optional > scmversion field might be helpful information for distro developers in testing > environments and in situations where it is possible for the kernel and modules > to be updated/packaged separately (for instance, the kernel selftest modules > under lib/ are in-tree modules that are provided as a separate kernel module > package in SLE). > > Generally, out of principle, I do not want to merge a patch that's been NAK'd > repeatedly; even if I take the patch it'd likely be contested all the way up to > the merge window. So this boils down to whether Christoph (and maybe Greg) are > fine with this being a debug option that's not enabled by default. I am neutral on this, I don't care one way or the other. thanks, greg k-h