From: "Pali Rohár" <pali@kernel.org>
To: Steve French <sfrench@samba.org>,
Paulo Alcantara <pc@manguebit.com>,
Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/6] cifs: Fix connections over NetBIOS session
Date: Sun, 22 Dec 2024 17:30:44 +0100 [thread overview]
Message-ID: <20241222163050.24359-1-pali@kernel.org> (raw)
This patch series fixes establishment of NetBIOS session for SMB2+
connections which is currently broken. Tested with SMB3 dialect
against Windows Server 2022.
Also it improves autodetection whether NetBIOS session is needed on
specified server port, and allows to initialize NetBIOS session also
over other port than 139. This is needed when testing against virtual
machines when port 139 is forwarded over some non-system port.
Pali Rohár (6):
cifs: Allow to disable or force initialization of NetBIOS session
cifs: Fix establishing NetBIOS session for SMB2+ connection
cifs: Improve establishing SMB connection with NetBIOS session
cifs: Improve handling of NetBIOS packets
cifs: Fix negotiate retry functionality
cifs: Set default Netbios RFC1001 server name to hostname in UNC
fs/smb/client/cifsglob.h | 4 +
fs/smb/client/cifsproto.h | 3 +
fs/smb/client/connect.c | 316 ++++++++++++++++++++++++++++++++++---
fs/smb/client/fs_context.c | 25 ++-
fs/smb/client/fs_context.h | 2 +
fs/smb/client/smb1ops.c | 7 -
fs/smb/client/smb2ops.c | 3 -
fs/smb/client/transport.c | 5 +-
8 files changed, 327 insertions(+), 38 deletions(-)
--
2.20.1
next reply other threads:[~2024-12-22 16:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-22 16:30 Pali Rohár [this message]
2024-12-22 16:30 ` [PATCH 1/6] cifs: Allow to disable or force initialization of NetBIOS session Pali Rohár
2024-12-22 16:30 ` [PATCH 2/6] cifs: Fix establishing NetBIOS session for SMB2+ connection Pali Rohár
2024-12-22 16:30 ` [PATCH 3/6] cifs: Improve establishing SMB connection with NetBIOS session Pali Rohár
2024-12-22 16:30 ` [PATCH 4/6] cifs: Improve handling of NetBIOS packets Pali Rohár
2024-12-22 16:30 ` [PATCH 5/6] cifs: Fix negotiate retry functionality Pali Rohár
2024-12-22 16:30 ` [PATCH 6/6] cifs: Set default Netbios RFC1001 server name to hostname in UNC Pali Rohár
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=20241222163050.24359-1-pali@kernel.org \
--to=pali@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pc@manguebit.com \
--cc=ronniesahlberg@gmail.com \
--cc=sfrench@samba.org \
/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