Re: [PATCH net-next] net: dns_resolver: allow shorter names in dns_query()
Frank Sorenson <[email protected]> Mon, 27 Jul 2026 13:40:48 -0500
| Newsgroups | org.kernel.vger.linux-cifs,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On 7/22/26 4:28 PM, Paulo Alcantara 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]> > return -EINVAL; Acked-by: Frank Sorenson <[email protected]>