diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-07-22 18:28:37 -0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-27 18:25:36 -0700 |
| commit | a50eba1e778ad4da5b6f9ddbbf57dabbea59bc05 (patch) | |
| tree | ae5c891ac5ad637d4c2e4d0f89e148d88292362b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 0b7763e3a0ec1cb4b9fd749e29377083ba93d392 (diff) | |
net: dns_resolver: allow shorter names in dns_query()
Customer reported a problem with mounting CIFS shares where the server
hostname was 2 chars long. Turned out that the CIFS client wasn't
able to resolve NetBIOS names shorter than 3 chars.
Fix this by allowing a minimum of one character per hostname in
dns_query().
Reproducer with samba server:
# 'ab' and 'srv' hotnames resolve to same ip address
$ ssh srv ln -s 'msdfs:\\ab\\share' /home/shares/dfs/link1
$ mount.cifs //srv/dfs/link1 /mnt -o ... [EINVAL]
Reported-by: Pierguido Lambri <plambri@redhat.com>
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Frank Sorenson <sorenson@redhat.com>
Link: https://patch.msgid.link/20260722-net-dns_resolver-v1-1-c3385898ccf9@manguebit.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
