[PATCH v3] nvmet: verify the hostid when looking up a controller
Christoph Hellwig
hch at lst.de
Wed Sep 2 07:04:00 PDT 2026
On Mon, Aug 31, 2026 at 10:36:51AM +0800, Yifei Chu wrote:
> nvmet_ctrl_find_get() matches controllers by cntlid and hostnqn only.
> The connect data also carries the connecting host's hostid, but it is
> never compared against the hostid the controller was created with, so
> the lookup can return a controller whose recorded hostid differs.
So? The hostid does not identify a controller.
More information about the Linux-nvme
mailing list