kresults

← Back

nvme-auth: switch to use the kernel keyring

v7.4-rc1-102-gc1f00d7ebc22 no build

Author
Hannes Reinecke <hare@kernel.org>
Date
Fri, 20 Nov 2026 11:13:59 +0000
Change-id
20261120-dhchap-keyring-v4-09f0bac1d8c5
Thread
20261120-dhchap-keyring-v4-v4-0-5f8c7d9926ee@kernel.org
Mailing lists
LKMLlinux-nvme
Ref
b4/20261120-dhchap-keyring-v4-v4-0-5f8c7d9926ee
Patches
9
Base
v7.4-rc1-93-g68099cf27253 (no records of this build) 68099cf27253
Build
no build
Producer
kdevops-ng b1987d2
Machine
AMD Ryzen 7 PRO 8700GE w/ Radeon 780M Graphics, 16 CPUs, 62 GiB
Recorded
2026-11-21 18:53 linux: nvme-auth: switch to use the kernel keyring

Patches

PatchSubjectAuthorCommit
1/9nvme-auth: modify nvme_auth_transform_key() to return statusHannes Reinecke <hare@kernel.org>0eca1044b5ce
2/9nvme-keyring: add 'dhchap' key typeHannes Reinecke <hare@kernel.org>116fd5ce8dac
3/9nvme-auth: switch to use 'struct key'Hannes Reinecke <hare@kernel.org>2f3399626586
4/9nvme: parse dhchap keys during option parsingHannes Reinecke <hare@kernel.org>4fe287533f16
5/9nvmet-auth: parse dhchap key from configfs attributeHannes Reinecke <hare@kernel.org>2126979c85cf
6/9nvme: allow to pass in key description as dhchap secretHannes Reinecke <hare@kernel.org>fe4a46515454
7/9nvme-auth: wait for authentication to finish when changing keysHannes Reinecke <hare@kernel.org>edbcc6dc0d73
8/9nvme-fabrics: allow to pass in keyring by nameHannes Reinecke <hare@kernel.org>5ff6694c886c
9/9nvmet: add configfs attribute 'dhchap_keyring'Hannes Reinecke <hare@kernel.org>c1f00d7ebc22

Each record shows how its output differs from its base's, positions aside: + a line the base's lacks, - one the series' lacks, a compiler's finding marked whole by its first line and drawn as that line, its source and its notes but a macro's.

checkpatch.pl

With checkpatch.pl (tree)

checkpatch.plseries only, introduced3 s

$ scripts/checkpatch.pl --strict --git 68099cf27253a8c89d703a282d3d811446d9453b..c1f00d7ebc220b44de0cfe201e1b9c4d6f315a6a

Run manual at d99, started 2026-11-21T18:53:38Z, 3 s on AMD Ryzen 7 PRO 8700GE w/ Radeon 780M Graphics, 16 CPUs, 62 GiB, exit 1
CPU time 3.227 s, user 2.573 s, system 0.654 s, stalled 0.001 s; memory peak 50.6 MiB, swap peak 0 B, stalled 0.000 s, high events 0, max events 0, OOM kills 0, major faults 14; I/O stalled 0.035 s; tasks peak 3

The first 50 of 212 lines; the whole output.

------------------------------------------------------------------------------------
Commit 0eca1044b5ce ("nvme-auth: modify nvme_auth_transform_key() to return status")
------------------------------------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 221 lines checked

Commit 0eca1044b5ce ("nvme-auth: modify nvme_auth_transform_key() to return status") has no obvious style problems and is ready for submission.
-----------------------------------------------------------
Commit 116fd5ce8dac ("nvme-keyring: add 'dhchap' key type")
-----------------------------------------------------------
total: 0 errors, 0 warnings, 0 checks, 239 lines checked

Commit 116fd5ce8dac ("nvme-keyring: add 'dhchap' key type") has no obvious style problems and is ready for submission.
-------------------------------------------------------------
Commit 2f3399626586 ("nvme-auth: switch to use 'struct key'")
-------------------------------------------------------------
CHECK: Alignment should match open parenthesis
#305: FILE: drivers/nvme/common/keyring.c:475:
+struct key *nvme_dhchap_psk_create(struct key *keyring,
+		const u8 *data, size_t data_len)

CHECK: Comparison to NULL could be written "!data"
#317: FILE: drivers/nvme/common/keyring.c:487:
+	if (data == NULL || !data_len)

CHECK: Alignment should match open parenthesis
#419: FILE: drivers/nvme/host/auth.c:1042:
+	ctrl->host_key = nvme_auth_extract_key(ctrl->opts->keyring,
+				ctrl->opts->dhchap_secret,

CHECK: Alignment should match open parenthesis
#431: FILE: drivers/nvme/host/auth.c:1051:
+	ctrl->ctrl_key = nvme_auth_extract_key(ctrl->opts->keyring,
+				ctrl->opts->dhchap_ctrl_secret,

CHECK: Alignment should match open parenthesis
#705: FILE: include/linux/nvme-keyring.h:23:
+struct key *nvme_dhchap_psk_create(struct key *keyring,
+		const u8 *data, size_t data_len);

CHECK: Please use a blank line after function/struct/union/enum declarations
#726: FILE: include/linux/nvme-keyring.h:46:
+}
+static inline struct key *nvme_dhchap_psk_refresh(struct key *keyring,

CHECK: Alignment should match open parenthesis
#727: FILE: include/linux/nvme-keyring.h:47:
+static inline struct key *nvme_dhchap_psk_refresh(struct key *keyring,
+		const char *hostnqn, const char *subnqn,

CHECK: Please use a blank line after function/struct/union/enum declarations