From: Ian Bridges <icb@fastmail.org>
To: linkinjeon@kernel.org
Cc: 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 0/2] ksmbd: exclude metadata-only opens from sharing checks
Date: Fri, 6 Nov 2026 06:13:16 -0600 [thread overview]
Message-ID: <20261106121316.979438-1-icb@fastmail.org> (raw)
In-Reply-To: <CAKYAXd9fstqtRHh8+Y1zkr47oq4F4nf99uU2tTuMcP0peXwnCQ@mail.gmail.com>
Hi Namjae,
Both issues are older than this series. A test that runs smb2_open()
on the base and on v2 gives the same results for each.
The first is about the earlier open. When an open overwrites or
supersedes the file, or creates a named stream, without asking for
FILE_WRITE_DATA, a later open that does not share write is still
checked only against the earlier open's requested access. So it is not
refused, also in the window before the earlier open truncates. v2
counts the implied write for the new open, which is the case you
reported on v1. For the earlier open, v2 uses the implied write only
to decide whether the pair is checked.
The second is about attribute-only stream opens. Such an open that
creates or overwrites a named stream is still skipped against opens
that are not attribute-only, as before. The series keeps that rule
unchanged. In the stream delete check, the base already refused every
stream open without FILE_SHARE_DELETE, so patch 2 gives this open the
same result as before.
So both look like real bugs, but they are separate from what this
series changes. I'd argue that they should be dealt with in separate
patches. But if you prefer, I can look into addressing them as part of
this patch series. I suspect the fixes won't be small, though.
Thanks,
Ian
prev parent reply other threads:[~2026-11-06 12:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 3:53 Ian Bridges
2026-11-06 3:53 ` [PATCH v2 1/2] ksmbd: skip metadata-only opens in " Ian Bridges
2026-11-06 3:53 ` [PATCH v2 2/2] ksmbd: skip metadata-only stream opens in the delete check Ian Bridges
2026-11-06 10:45 ` [PATCH v2 0/2] ksmbd: exclude metadata-only opens from sharing checks Namjae Jeon
2026-11-06 12:13 ` 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=20261106121316.979438-1-icb@fastmail.org \
--to=icb@fastmail.org \
--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®