Patch "nvme: blank out authentication fabrics options if not configured" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nvme: blank out authentication fabrics options if not configured

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nvme-blank-out-authentication-fabrics-options-if-not.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f5f013a0ccd06da22b24572a61f26880165036dd
Author: Hannes Reinecke <hare@xxxxxxx>
Date:   Thu Nov 16 13:14:35 2023 +0100

    nvme: blank out authentication fabrics options if not configured
    
    [ Upstream commit c7ca9757bda35ff9ce27ab42f2cb8b84d983e6ad ]
    
    If the config option NVME_HOST_AUTH is not selected we should not
    accept the corresponding fabrics options. This allows userspace
    to detect if NVMe authentication has been enabled for the kernel.
    
    Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
    Fixes: f50fff73d620 ("nvme: implement In-Band authentication")
    Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
    Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
    Reviewed-by: Daniel Wagner <dwagner@xxxxxxx>
    Reviewed-by: Christoph Hellwig <hch@xxxxxx>
    Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 8175d49f29090..92ba315cfe19e 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -645,8 +645,10 @@ static const match_table_t opt_tokens = {
 	{ NVMF_OPT_TOS,			"tos=%d"		},
 	{ NVMF_OPT_FAIL_FAST_TMO,	"fast_io_fail_tmo=%d"	},
 	{ NVMF_OPT_DISCOVERY,		"discovery"		},
+#ifdef CONFIG_NVME_HOST_AUTH
 	{ NVMF_OPT_DHCHAP_SECRET,	"dhchap_secret=%s"	},
 	{ NVMF_OPT_DHCHAP_CTRL_SECRET,	"dhchap_ctrl_secret=%s"	},
+#endif
 	{ NVMF_OPT_ERR,			NULL			}
 };
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux