Commit ccf7c82
committed
fabrics: sanitize traddr & trsvcid handling during connect-all
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]>1 parent d801e1e commit ccf7c82
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
| 2086 | + | |
| 2087 | + | |
2086 | 2088 | | |
2087 | 2089 | | |
2088 | 2090 | | |
| |||
2747 | 2749 | | |
2748 | 2750 | | |
2749 | 2751 | | |
| 2752 | + | |
| 2753 | + | |
2750 | 2754 | | |
2751 | 2755 | | |
2752 | 2756 | | |
| |||
0 commit comments