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: refuse to write to a handle that is not open for writing
Date: Tue, 1 Dec 2026 09:03:46 -0600 [thread overview]
Message-ID: <20261201150346.2224260-1-icb@fastmail.org> (raw)
In-Reply-To: <20261201-ksmbd-write-fmode-v1-1-2848c4e5b36b@aclaesson.com>
I tested this on ksmbd-for-next 87ff512becd4 on x86_64 with KASAN. A
client opened a character device node and a block device node in a
share with read and write access and sent a WRITE to each. Without
the patch the warning above appeared and both WRITEs failed with
STATUS_INVALID_HANDLE. With the patch both failed with
STATUS_ACCESS_DENIED and no warning appeared. A WRITE to a FIFO and
to a regular file still succeeded. 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>
next prev parent reply other threads:[~2026-12-01 15:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 13:14 Andreas Claesson via B4 Relay
2026-12-01 15:03 ` Ian Bridges [this message]
2026-12-01 22:32 ` Namjae Jeon
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=20261201150346.2224260-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®