Re: [PATCH net-next] net: dns_resolver: allow shorter names in dns_query()
David Howells <[email protected]> Thu, 23 Jul 2026 13:23:30 +0100
| Newsgroups | org.kernel.vger.linux-cifs,org.kernel.vger.netdev |
|---|---|
| Organization | Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 |
| Message-ID | <[email protected]> |
Paulo Alcantara <[email protected]> wrote: > 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 <[email protected]> > Signed-off-by: Paulo Alcantara <[email protected]> Acked-by: David Howells <[email protected]>