Skip to content

fabrics: sanitize traddr & trsvcid handling during connect-all#3313

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-gpy:sanitize_traddr_trsvcid
Apr 24, 2026
Merged

fabrics: sanitize traddr & trsvcid handling during connect-all#3313
igaw merged 1 commit intolinux-nvme:masterfrom
martin-gpy:sanitize_traddr_trsvcid

Conversation

@martin-gpy
Copy link
Copy Markdown
Contributor

During a connect-all using the JSON config file, there are instances where traddr and trsvcid end up with garbage values eventually leading to connect invalid failures:

nvme connect-all -J /usr/local/etc/nvme/config.json.gen.psk.orig -vv ...
connect ctrl, 'nqn=nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_0,transport=tcp,traddr=▒o,host_traddr=192.168.1.6,trsvcid=4420 ,hostnqn=nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a,hostid=e6550026-173e-4959-ba74-be367844bd8a,dhchap_secret=DHHC-1:01:gTtZdM+d+SjkxHcCcJKuI0OQKEnIJiXFASAlNDQP94FD/lKe:,ctrl_loss_tmo=600,concat'
Failed to write to /dev/nvme-fabrics: Invalid argument
free(): double free detected in tcache 2
Aborted (core dumped)
...

During a connect-all using the JSON config file, there are instances
where traddr and trsvcid end up with garbage values eventually leading
to connect invalid failures:

nvme connect-all -J /usr/local/etc/nvme/config.json.gen.psk.orig -vv
...
connect ctrl, 'nqn=nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_0,transport=tcp,traddr=▒o,host_traddr=192.168.1.6,trsvcid=4420                            ,hostnqn=nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a,hostid=e6550026-173e-4959-ba74-be367844bd8a,dhchap_secret=DHHC-1:01:gTtZdM+d+SjkxHcCcJKuI0OQKEnIJiXFASAlNDQP94FD/lKe:,ctrl_loss_tmo=600,concat'
Failed to write to /dev/nvme-fabrics: Invalid argument
free(): double free detected in tcache 2
Aborted (core dumped)
...

Signed-off-by: Martin George <[email protected]>
@igaw igaw merged commit 48969fd into linux-nvme:master Apr 24, 2026
28 of 29 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Apr 24, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants