[PATCHv2] nvme-tcp: use correct network namespace to resolve addresses
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 26 03:58:36 PST 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] nvme-tcp: missing Fixes trailer for nvme_tcp_alloc_ctrl() netns
and RCU fixes
--
commit a9e44348b8fe94c523f1cf508bd4bb1ce6079725
Author: Hannes Reinecke <hare at kernel.org>
> nvme-tcp: use correct network namespace to resolve addresses
>
> Resolving network addresses should use the current network namespace;
> the passed-in addresses might not exist in the default network namespace.
> And while at use dev_get_by_name_rcu() with proper rcu locks to avoid
> a possible crash on network namespace changes.
>
> Signed-off-by: Hannes Reinecke <hare at kernel.org>
[Severity: Low]
Resolving opts->traddr and opts->host_traddr against init_net dates back
to 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver"), and the
unlocked __dev_get_by_name() call was introduced in 8b43ced64d2b
("nvme-tcp: use __dev_get_by_name instead dev_get_by_name for
OPT_HOST_IFACE"). Should this include:
Fixes: 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver")
Fixes: 8b43ced64d2b ("nvme-tcp: use __dev_get_by_name instead dev_get_by_name for OPT_HOST_IFACE")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126115121.6032-1-hare@kernel.org?part=1
More information about the Linux-nvme
mailing list