nvme in-band authentication blktests - nvme/043

Shinichiro Kawasaki shinichiro.kawasaki at wdc.com
Sun Jul 2 23:46:06 PDT 2023


CC+: Hannes,

On Jun 29, 2023 / 12:24, alan.adamson at oracle.com wrote:
> I'm playing around with in-band authentication and using blktests to see how
> to setup it up and use it.  In test nvme/043, a valid hostkey is never
> initialized and a NULL is being used to setup the target and to connect.  Is
> this expected?  The test with the NULL hostkey passes.  I updated the test
> to use a valid key and it also passes.
> 
> 
> diff --git a/tests/nvme/043 b/tests/nvme/043
> index a030884..d5e0d4b 100755
> --- a/tests/nvme/043
> +++ b/tests/nvme/043
> @@ -40,6 +40,8 @@ test() {
>         fi
>         hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}"
> 
> +       hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)"
> +
>         _setup_nvmet
> 
>         truncate -s "${nvme_img_size}" "${file_path}"
> 

Alan's question looks valid for me.

Hannes, may I ask your comment?


More information about the Linux-nvme mailing list