Netdev List
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Paulo Alcantara <pc@manguebit.org>
Cc: dhowells@redhat.com, "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Frank Sorenson <sorenson@redhat.com>,
	netdev@vger.kernel.org, linux-cifs@vger.kernel.org,
	Pierguido Lambri <plambri@redhat.com>
Subject: Re: [PATCH net-next] net: dns_resolver: allow shorter names in dns_query()
Date: Thu, 23 Jul 2026 13:23:30 +0100	[thread overview]
Message-ID: <615376.1784809410@warthog.procyon.org.uk> (raw)
In-Reply-To: <20260722-net-dns_resolver-v1-1-c3385898ccf9@manguebit.org>

Paulo Alcantara <pc@manguebit.org> 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 <plambri@redhat.com>
> Signed-off-by: Paulo Alcantara <pc@manguebit.org>

Acked-by: David Howells <dhowells@redhat.com>


      reply	other threads:[~2026-07-23 12:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-22 21:28 [PATCH net-next] net: dns_resolver: allow shorter names in dns_query() Paulo Alcantara
2026-07-23 12:23 ` David Howells [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=615376.1784809410@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pc@manguebit.org \
    --cc=plambri@redhat.com \
    --cc=sorenson@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox