From: Ian Bridges <icb@fastmail.org>
To: andreas@aclaesson.com
Cc: linkinjeon@kernel.org, senozhatsky@chromium.org, tom@talpey.com,
chenxiaosong@chenxiaosong.com, linux-cifs@vger.kernel.org,
linux-kernel@vger.kernel.org, Ian Bridges <icb@fastmail.org>
Subject: Re: [PATCH] ksmbd: build a response when the connection state stops a request
Date: Tue, 1 Dec 2026 09:04:56 -0600 [thread overview]
Message-ID: <20261201150456.2224335-1-icb@fastmail.org> (raw)
In-Reply-To: <20261201-ksmbd-conn-state-rsp-v1-1-9a38d57ab0d5@aclaesson.com>
I can confirm both problems that Sashiko reported for this patch.
The tests ran on ksmbd-for-next 87ff512becd4 on x86_64 with KASAN. A
client logged in as a normal user over SMB 3.1.1 with AES-CMAC
signing. The session did not require signing. The client held an
exclusive byte-range lock on one handle of a file. On a second handle
of the file it sent a signed compound of a LOCK that blocks on that
range and a NEGOTIATE. A second connection then sent a SESSION_SETUP
as the same user with the PreviousSessionId of the first session.
In the first test the NEGOTIATE had the SIGNED flag and a random
signature. With the patch the NEGOTIATE got a
STATUS_CONNECTION_DISCONNECTED response that verified under the
signing key of the session. Without the patch no response was signed
for it.
In the second test the NEGOTIATE had a CreditCharge of 65535. With the
patch the compound response ended with the 73-byte error response of
the NEGOTIATE twice. Without the patch that error response appeared
once.
prev parent reply other threads:[~2026-12-01 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 13:14 Andreas Claesson via B4 Relay
2026-12-01 15:04 ` Ian Bridges [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=20261201150456.2224335-1-icb@fastmail.org \
--to=icb@fastmail.org \
--cc=andreas@aclaesson.com \
--cc=chenxiaosong@chenxiaosong.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=senozhatsky@chromium.org \
--cc=tom@talpey.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
all inboxes | Powered by JetHome®