All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
@ 2026-12-02  5:57 kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2026-12-02  5:57 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
References: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
TO: Hannes Reinecke <hare@kernel.org>
TO: Keith Busch <kbusch@kernel.org>
TO: Jens Axboe <axboe@kernel.dk>
TO: Christoph Hellwig <hch@lst.de>
TO: Sagi Grimberg <sagi@grimberg.me>
TO: Hannes Reinecke <hare@suse.de>
TO: Chaitanya Kulkarni <kch@nvidia.com>
TO: Eric Biggers <ebiggers@kernel.org>
TO: David Howells <dhowells@redhat.com>
TO: Jarkko Sakkinen <jarkko@kernel.org>
TO: Jonathan Corbet <corbet@lwn.net>
TO: Shuah Khan <skhan@linuxfoundation.org>
TO: Randy Dunlap <rdunlap@infradead.org>
TO: Kees Cook <kees@kernel.org>
TO: "Gustavo A. R. Silva" <gustavoars@kernel.org>
CC: linux-nvme@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: keyrings@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-hardening@vger.kernel.org

Hi Hannes,

kernel test robot noticed the following build errors:

[auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b]

url:    https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219
base:   68099cf27253a8c89d703a282d3d811446d9453b
patch link:    https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org
patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
:::::: branch date: 6 days ago
:::::: commit date: 6 days ago
config: i386-randconfig-2003-20261202 (https://download.01.org/0day-ci/archive/20261202/20261202065309.Fox0PFPW-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261202/20261202065309.Fox0PFPW-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261202065309.Fox0PFPW-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/nvme/host/tcp.c:15:
   include/linux/nvme-keyring.h:47:5: warning: no previous prototype for 'nvme_keyring_unlink' [-Wmissing-prototypes]
      47 | int nvme_keyring_unlink(struct key *keyring)
         |     ^~~~~~~~~~~~~~~~~~~
   drivers/nvme/host/tcp.c: In function 'nvme_tcp_alloc_admin_queue':
>> drivers/nvme/host/tcp.c:2419:70: error: passing argument 1 of 'nvme_tls_psk_default' from incompatible pointer type [-Wincompatible-pointer-types]
    2419 |                         pskid = nvme_tls_psk_default(ctrl->opts->host->nqn,
         |                                                      ~~~~~~~~~~~~~~~~^~~~~
         |                                                                      |
         |                                                                      char *
   include/linux/nvme-keyring.h:30:61: note: expected 'struct key *' but argument is of type 'char *'
      30 | static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
         |                                                 ~~~~~~~~~~~~^~~~~~~
>> drivers/nvme/host/tcp.c:2419:33: error: too few arguments to function 'nvme_tls_psk_default'
    2419 |                         pskid = nvme_tls_psk_default(ctrl->opts->host->nqn,
         |                                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/nvme-keyring.h:30:28: note: declared here
      30 | static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
         |                            ^~~~~~~~~~~~~~~~~~~~
   include/linux/nvme-keyring.h: At top level:
   include/linux/nvme-keyring.h:43:12: warning: 'nvme_keyring_link' defined but not used [-Wunused-function]
      43 | static int nvme_keyring_link(struct key *keyring)
         |            ^~~~~~~~~~~~~~~~~
   include/linux/nvme-keyring.h:39:20: warning: 'nvme_keyring_name' defined but not used [-Wunused-function]
      39 | static const char *nvme_keyring_name(void)
         |                    ^~~~~~~~~~~~~~~~~


vim +/nvme_tls_psk_default +2419 drivers/nvme/host/tcp.c

3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2409  
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2410  static int nvme_tcp_alloc_admin_queue(struct nvme_ctrl *ctrl)
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2411  {
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2412  	int ret;
be8e82caa68599 Hannes Reinecke 2023-08-24  2413  	key_serial_t pskid = 0;
be8e82caa68599 Hannes Reinecke 2023-08-24  2414  
363895767fbfa0 Hannes Reinecke 2024-07-22  2415  	if (nvme_tcp_tls_configured(ctrl)) {
adf22c520b5ec4 Hannes Reinecke 2023-08-24  2416  		if (ctrl->opts->tls_key)
adf22c520b5ec4 Hannes Reinecke 2023-08-24  2417  			pskid = key_serial(ctrl->opts->tls_key);
e88a7595b57f2a Hannes Reinecke 2025-02-24  2418  		else if (ctrl->opts->tls) {
83137991c12380 Hannes Reinecke 2026-11-26 @2419  			pskid = nvme_tls_psk_default(ctrl->opts->host->nqn,
be8e82caa68599 Hannes Reinecke 2023-08-24  2420  						      ctrl->opts->subsysnqn);
be8e82caa68599 Hannes Reinecke 2023-08-24  2421  			if (!pskid) {
be8e82caa68599 Hannes Reinecke 2023-08-24  2422  				dev_err(ctrl->device, "no valid PSK found\n");
ef184b8844bf98 Guixin Liu      2023-12-31  2423  				return -ENOKEY;
be8e82caa68599 Hannes Reinecke 2023-08-24  2424  			}
be8e82caa68599 Hannes Reinecke 2023-08-24  2425  		}
363895767fbfa0 Hannes Reinecke 2024-07-22  2426  	}
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2427  
be8e82caa68599 Hannes Reinecke 2023-08-24  2428  	ret = nvme_tcp_alloc_queue(ctrl, 0, pskid);
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2429  	if (ret)
ef184b8844bf98 Guixin Liu      2023-12-31  2430  		return ret;
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2431  
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2432  	ret = nvme_tcp_alloc_async_req(to_tcp_ctrl(ctrl));
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2433  	if (ret)
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2434  		goto out_free_queue;
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2435  
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2436  	return 0;
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2437  
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2438  out_free_queue:
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2439  	nvme_tcp_free_queue(ctrl, 0);
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2440  	return ret;
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2441  }
3f2304f8c6d6ed Sagi Grimberg   2018-12-03  2442  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
@ 2026-12-02  5:36 kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2026-12-02  5:36 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
References: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
TO: Hannes Reinecke <hare@kernel.org>
TO: Keith Busch <kbusch@kernel.org>
TO: Jens Axboe <axboe@kernel.dk>
TO: Christoph Hellwig <hch@lst.de>
TO: Sagi Grimberg <sagi@grimberg.me>
TO: Hannes Reinecke <hare@suse.de>
TO: Chaitanya Kulkarni <kch@nvidia.com>
TO: Eric Biggers <ebiggers@kernel.org>
TO: David Howells <dhowells@redhat.com>
TO: Jarkko Sakkinen <jarkko@kernel.org>
TO: Jonathan Corbet <corbet@lwn.net>
TO: Shuah Khan <skhan@linuxfoundation.org>
TO: Randy Dunlap <rdunlap@infradead.org>
TO: Kees Cook <kees@kernel.org>
TO: "Gustavo A. R. Silva" <gustavoars@kernel.org>
CC: linux-nvme@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: keyrings@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-hardening@vger.kernel.org

Hi Hannes,

kernel test robot noticed the following build errors:

[auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b]

url:    https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219
base:   68099cf27253a8c89d703a282d3d811446d9453b
patch link:    https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org
patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
:::::: branch date: 6 days ago
:::::: commit date: 6 days ago
config: openrisc-randconfig-2200-20261202 (https://download.01.org/0day-ci/archive/20261202/20261202063410.ZST29aaT-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.3.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261202/20261202063410.ZST29aaT-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261202063410.ZST29aaT-lkp@intel.com/

All errors (new ones prefixed by >>):

   or1k-linux-ld: drivers/nvme/host/fabrics.o: in function `nvme_keyring_unlink':
>> include/linux/nvme-keyring.h:50: multiple definition of `nvme_keyring_unlink'; drivers/nvme/host/sysfs.o:include/linux/nvme-keyring.h:50: first defined here
   or1k-linux-ld: drivers/nvme/target/configfs.o: in function `nvme_keyring_unlink':
>> include/linux/nvme-keyring.h:50: multiple definition of `nvme_keyring_unlink'; drivers/nvme/host/sysfs.o:include/linux/nvme-keyring.h:50: first defined here


vim +50 include/linux/nvme-keyring.h

83137991c123807 Hannes Reinecke 2026-11-26  22  
9d77eb52778499a Hannes Reinecke 2023-08-24  23  #else
62eb89323cb08f1 Hannes Reinecke 2025-02-24  24  static inline struct key *nvme_tls_psk_refresh(struct key *keyring,
83137991c123807 Hannes Reinecke 2026-11-26  25  		const char *hostnqn, const char *subnqn, u8 hmac_id,
62eb89323cb08f1 Hannes Reinecke 2025-02-24  26  		u8 *data, size_t data_len, const char *digest)
62eb89323cb08f1 Hannes Reinecke 2025-02-24  27  {
83137991c123807 Hannes Reinecke 2026-11-26  28  	return ERR_PTR(-EOPNOTSUPP);
62eb89323cb08f1 Hannes Reinecke 2025-02-24  29  }
501cc6f4aca8dc0 Hannes Reinecke 2023-08-24  30  static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
501cc6f4aca8dc0 Hannes Reinecke 2023-08-24  31  		const char *hostnqn, const char *subnqn)
501cc6f4aca8dc0 Hannes Reinecke 2023-08-24  32  {
501cc6f4aca8dc0 Hannes Reinecke 2023-08-24  33  	return 0;
501cc6f4aca8dc0 Hannes Reinecke 2023-08-24  34  }
9d77eb52778499a Hannes Reinecke 2023-08-24  35  static inline key_serial_t nvme_keyring_id(void)
9d77eb52778499a Hannes Reinecke 2023-08-24  36  {
9d77eb52778499a Hannes Reinecke 2023-08-24  37  	return 0;
9d77eb52778499a Hannes Reinecke 2023-08-24  38  }
83137991c123807 Hannes Reinecke 2026-11-26  39  static const char *nvme_keyring_name(void)
83137991c123807 Hannes Reinecke 2026-11-26  40  {
83137991c123807 Hannes Reinecke 2026-11-26  41  	return NULL;
83137991c123807 Hannes Reinecke 2026-11-26  42  }
83137991c123807 Hannes Reinecke 2026-11-26  43  static int nvme_keyring_link(struct key *keyring)
83137991c123807 Hannes Reinecke 2026-11-26  44  {
83137991c123807 Hannes Reinecke 2026-11-26  45  	return 0;
83137991c123807 Hannes Reinecke 2026-11-26  46  }
83137991c123807 Hannes Reinecke 2026-11-26  47  int nvme_keyring_unlink(struct key *keyring)
83137991c123807 Hannes Reinecke 2026-11-26  48  {
83137991c123807 Hannes Reinecke 2026-11-26  49  	return 0;
83137991c123807 Hannes Reinecke 2026-11-26 @50  }

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
@ 2026-11-27  6:22 kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2026-11-27  6:22 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
References: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
TO: Hannes Reinecke <hare@kernel.org>
TO: Keith Busch <kbusch@kernel.org>
TO: Jens Axboe <axboe@kernel.dk>
TO: Christoph Hellwig <hch@lst.de>
TO: Sagi Grimberg <sagi@grimberg.me>
TO: Hannes Reinecke <hare@suse.de>
TO: Chaitanya Kulkarni <kch@nvidia.com>
TO: Eric Biggers <ebiggers@kernel.org>
TO: David Howells <dhowells@redhat.com>
TO: Jarkko Sakkinen <jarkko@kernel.org>
TO: Jonathan Corbet <corbet@lwn.net>
TO: Shuah Khan <skhan@linuxfoundation.org>
TO: Randy Dunlap <rdunlap@infradead.org>
TO: Kees Cook <kees@kernel.org>
TO: "Gustavo A. R. Silva" <gustavoars@kernel.org>
CC: linux-nvme@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: keyrings@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-hardening@vger.kernel.org

Hi Hannes,

kernel test robot noticed the following build errors:

[auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b]

url:    https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219
base:   68099cf27253a8c89d703a282d3d811446d9453b
patch link:    https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org
patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
:::::: branch date: 16 hours ago
:::::: commit date: 16 hours ago
config: x86_64-buildonly-randconfig-1001-20261127 (https://download.01.org/0day-ci/archive/20261127/20261127141335.b6SnWt2Q-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127141335.b6SnWt2Q-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261127141335.b6SnWt2Q-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: duplicate symbol: __cfi_nvme_keyring_unlink
   >>> defined at sysfs.c
   >>>            drivers/nvme/host/sysfs.o:(__cfi_nvme_keyring_unlink) in archive vmlinux.a
   >>> defined at fabrics.c
   >>>            drivers/nvme/host/fabrics.o:(.text+0x0) in archive vmlinux.a

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
@ 2026-11-27  6:11 kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2026-11-27  6:11 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
References: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
TO: Hannes Reinecke <hare@kernel.org>
TO: Keith Busch <kbusch@kernel.org>
TO: Jens Axboe <axboe@kernel.dk>
TO: Christoph Hellwig <hch@lst.de>
TO: Sagi Grimberg <sagi@grimberg.me>
TO: Hannes Reinecke <hare@suse.de>
TO: Chaitanya Kulkarni <kch@nvidia.com>
TO: Eric Biggers <ebiggers@kernel.org>
TO: David Howells <dhowells@redhat.com>
TO: Jarkko Sakkinen <jarkko@kernel.org>
TO: Jonathan Corbet <corbet@lwn.net>
TO: Shuah Khan <skhan@linuxfoundation.org>
TO: Randy Dunlap <rdunlap@infradead.org>
TO: Kees Cook <kees@kernel.org>
TO: "Gustavo A. R. Silva" <gustavoars@kernel.org>
CC: linux-nvme@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: keyrings@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-hardening@vger.kernel.org

Hi Hannes,

kernel test robot noticed the following build errors:

[auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b]

url:    https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219
base:   68099cf27253a8c89d703a282d3d811446d9453b
patch link:    https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org
patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
:::::: branch date: 16 hours ago
:::::: commit date: 16 hours ago
config: sparc-randconfig-1000-20261127 (https://download.01.org/0day-ci/archive/20261127/20261127140211.GB7lh0Bk-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127140211.GB7lh0Bk-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261127140211.GB7lh0Bk-lkp@intel.com/

All errors (new ones prefixed by >>):

   sparc64-linux-ld: drivers/nvme/host/fabrics.o: in function `nvme_keyring_unlink':
>> fabrics.c:(.text+0x3e00): multiple definition of `nvme_keyring_unlink'; drivers/nvme/host/sysfs.o:sysfs.c:(.text+0x4100): first defined here

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
@ 2026-11-27  3:08 kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2026-11-27  3:08 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "same reports for this branch"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
References: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
TO: Hannes Reinecke <hare@kernel.org>
TO: Keith Busch <kbusch@kernel.org>
TO: Jens Axboe <axboe@kernel.dk>
TO: Christoph Hellwig <hch@lst.de>
TO: Sagi Grimberg <sagi@grimberg.me>
TO: Hannes Reinecke <hare@suse.de>
TO: Chaitanya Kulkarni <kch@nvidia.com>
TO: Eric Biggers <ebiggers@kernel.org>
TO: David Howells <dhowells@redhat.com>
TO: Jarkko Sakkinen <jarkko@kernel.org>
TO: Jonathan Corbet <corbet@lwn.net>
TO: Shuah Khan <skhan@linuxfoundation.org>
TO: Randy Dunlap <rdunlap@infradead.org>
TO: Kees Cook <kees@kernel.org>
TO: "Gustavo A. R. Silva" <gustavoars@kernel.org>
CC: linux-nvme@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: keyrings@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-hardening@vger.kernel.org

Hi Hannes,

kernel test robot noticed the following build errors:

[auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b]

url:    https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219
base:   68099cf27253a8c89d703a282d3d811446d9453b
patch link:    https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org
patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago
config: i386-buildonly-randconfig-1005-20261127 (https://download.01.org/0day-ci/archive/20261127/20261127105430.zJkj0Nm7-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127105430.zJkj0Nm7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261127105430.zJkj0Nm7-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: duplicate symbol: nvme_keyring_unlink
   >>> defined at nvme-keyring.h:48 (include/linux/nvme-keyring.h:48)
   >>>            drivers/nvme/host/sysfs.o:(nvme_keyring_unlink) in archive vmlinux.a
   >>> defined at nvme-keyring.h:48 (include/linux/nvme-keyring.h:48)
   >>>            drivers/nvme/target/configfs.o:(.text+0x0) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: nvme_keyring_unlink
   >>> defined at nvme-keyring.h:48 (include/linux/nvme-keyring.h:48)
   >>>            drivers/nvme/host/sysfs.o:(nvme_keyring_unlink) in archive vmlinux.a
   >>> defined at nvme-keyring.h:48 (include/linux/nvme-keyring.h:48)
   >>>            drivers/nvme/host/fabrics.o:(.text+0x0) in archive vmlinux.a

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH v7 00/14] nvme-auth: switch to use the kernel keyring
@ 2026-11-26 14:12 Hannes Reinecke
  2026-11-26 14:12 ` [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring Hannes Reinecke
  0 siblings, 1 reply; 9+ messages in thread
From: Hannes Reinecke @ 2026-11-26 14:12 UTC (permalink / raw)
  To: Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg,
	Hannes Reinecke, Chaitanya Kulkarni, Eric Biggers, David Howells,
	Jarkko Sakkinen, Jonathan Corbet, Shuah Khan, Randy Dunlap,
	Kees Cook, Gustavo A. R. Silva
  Cc: linux-nvme, linux-kernel, keyrings, linux-doc, linux-hardening,
	Hannes Reinecke, Martin Belanger

Hey all,

the current NVMe authentication code is using a hand-crafted key
structure; idea was to have the initial implementation with a minimal
set of dependencies.
(And me not having a good grasp on how to use the kernel keyring :-)
That had the drawback that keys always had to be specified on the
nvme-cli commandline, which is far from ideal from a security standpoint.

So this patchset switches the authentication code over to use
'struct key' to hold DH-HMAC-CHAP secrets. User-facing interfaces
(namely argument to 'nvme connect') remain the same, but the key data
is converted into keys which are stored as a new key type 'dhchap' with
a random UUID as description in the .nvme keyring.

With this I have updated the dhchap arguments to 'nvme connect' and
the configfs interface to either be the keydata (ie the original
interface), a key description, _or_ a key serial referring to a
pre-populated dhchap key in the kernel keyring. This allows for external
provisioning of keys and avoids the security risk from having to specify
the key data on the kernel commandline.

The entire patchset can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/hare/nvme.git
branch dhchap-keyring.v6

As usual, comments and reviews are welcome.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
---
Changes in v7:
- Fixup next round of issues from sashiko
- Modify to use key_serial_t instead of 'struct key' to pass key references
- Include suggestions from Martin Belanger
- Link to v6: https://lore.kernel.org/r/20261123-dhchap-keyring-v4-v6-0-5082a49715ab@kernel.org

Changes in v6:
- Fixup next round of issues from sashiko
- Fixup kbuild robot issues
- Link to v5: https://lore.kernel.org/r/20261123-dhchap-keyring-v4-v5-0-81eefb4c0724@kernel.org

Changes in v5:
- Fixup issues found by sashiko
- Link to v4: https://lore.kernel.org/r/20261120-dhchap-keyring-v4-v4-0-5f8c7d9926ee@kernel.org

---
Hannes Reinecke (14):
      nvme-auth: modify nvme_auth_transform_key() to return status
      nvme-keyring: add 'dhchap' key type
      nvme-keyring: drop nvme_tls_psk_revoked()
      Documentation/security/keys: fixup function name
      nvme-keyring: link addtional keyring into .nvme keyring
      nvme-auth: switch to use 'struct key'
      nvme: parse dhchap keys during option parsing
      nvmet-auth: parse dhchap key from configfs attribute
      nvme: allow to pass in key description as dhchap secret
      nvme-auth: allow to specify the key by key serial
      nvme-auth: wait for authentication to finish when changing keys
      nvme-fabrics: allow to pass in keyring by name
      nvme-auth: link pre-provisioned keys into .nvme keyring
      nvme-auth: allow to update pre-provisioned keys

 Documentation/ABI/stable/sysfs-nvme  |  10 +
 Documentation/security/keys/core.rst |   2 +-
 drivers/nvme/common/Kconfig          |   2 +
 drivers/nvme/common/auth.c           | 232 ++++++++++------------
 drivers/nvme/common/keyring.c        | 370 ++++++++++++++++++++++++++++++++---
 drivers/nvme/host/Kconfig            |   1 -
 drivers/nvme/host/auth.c             | 176 ++++++++++++-----
 drivers/nvme/host/fabrics.c          | 169 ++++++++++++----
 drivers/nvme/host/fabrics.h          |  12 +-
 drivers/nvme/host/nvme.h             |   6 +-
 drivers/nvme/host/sysfs.c            | 300 ++++++++++++++++++++++------
 drivers/nvme/host/tcp.c              |   5 +-
 drivers/nvme/target/Kconfig          |   1 -
 drivers/nvme/target/auth.c           | 250 +++++++++++++++--------
 drivers/nvme/target/configfs.c       |  84 ++++++--
 drivers/nvme/target/nvmet.h          |  15 +-
 include/linux/nvme-auth.h            |  17 +-
 include/linux/nvme-keyring.h         |  47 ++++-
 18 files changed, 1257 insertions(+), 442 deletions(-)
---
base-commit: 68099cf27253a8c89d703a282d3d811446d9453b
change-id: 20261120-dhchap-keyring-v4-09f0bac1d8c5

Best regards,
-- 
Hannes Reinecke <hare@kernel.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-12-02  5:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  5:57 [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-12-02  5:36 kernel test robot
2026-11-27  6:22 kernel test robot
2026-11-27  6:11 kernel test robot
2026-11-27  3:08 kernel test robot
2026-11-26 14:12 [PATCH v7 00/14] nvme-auth: switch to use the kernel keyring Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring Hannes Reinecke
2026-11-26 14:24   ` sashiko-bot
2026-11-26 19:49   ` kernel test robot
2026-11-26 20:22   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.