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 v2] ksmbd: build a response when the connection state stops a request
Date: Wed, 2 Dec 2026 17:25:35 -0600 [thread overview]
Message-ID: <20261202232535.2582601-1-icb@fastmail.org> (raw)
In-Reply-To: <20261202-ksmbd-conn-state-rsp-v2-1-055ed29234dd@aclaesson.com>
I tested this on ksmbd-for-next 030c481c019b on x86_64 with KASAN,
with the same probes as for v1. A signed compound of a blocked LOCK and
a NEGOTIATE was stopped by a SESSION_SETUP with the PreviousSessionId
of its session. Without the patch the warning appeared and the LOCK
response carried a wrong status and a signature that did not verify.
With the patch no warning appeared. The LOCK response was signed and
verified, and an unsigned STATUS_CONNECTION_DISCONNECTED response
followed it. The same held when the stopped NEGOTIATE had a forged
signature, and when it had a CreditCharge of 65535. With the second
NEGOTIATE trigger no warning appeared either. smbtorture gives the same
results as on the base, and KASAN reported nothing.
Reviewed-by: Ian Bridges <icb@fastmail.org>
Tested-by: Ian Bridges <icb@fastmail.org>
prev parent reply other threads:[~2026-12-02 23:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 7:45 Andreas Claesson via B4 Relay
2026-12-02 23:25 ` 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=20261202232535.2582601-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®