From: Michael Adam <obnox-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Tom Talpey <ttalpey-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>,
linux-cifs <linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
samba-technical
<samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org>
Subject: Re: Channel Sequence handling - was RE: [PATCH] [SMB3] Send durable handle v2 contexts when use of persistent handles required
Date: Thu, 15 Oct 2015 13:15:21 +0200 [thread overview]
Message-ID: <20151015111520.GA5143@samba.org> (raw)
In-Reply-To: <CAH2r5msW2+Mbui=jR3r2TaFspEUJFvLZYSQ5AXwGZ7qK2N5fkA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2382 bytes --]
On 2015-10-05 at 14:50 -0500, Steve French wrote:
> On Mon, Oct 5, 2015 at 9:44 AM, Tom Talpey <ttalpey-0li6OtcxBFHby3iVrkZq2A@public.gmane.org> wrote:
> >> -----Original Message-----
> >> From: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:linux-cifs-
> >> owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Steve French
> >> Sent: Saturday, October 3, 2015 10:03 PM
> >> ...
> >> I don't know if channel sequence number in the SMB3 request would also
> >> need to be incremented on disconnect though (the documentation is
> >> confusing on that in MS-SMB2) in the case where we only have one
> >> channel.
> >
> > There's nothing special about replay on one channel, after any disconnect you should increment the channel sequence so the server's replay detection can work properly.
> >
> > Can you point me to the MS-SMB2 text that you find confusing? We can address it.
>
>
> (the doc text in 3.2.4.1 and 3.2.7.1 of MS-SMB2 seems to
> conflict)
>
> On disconnect "If Connection.Dialect belongs to the SMB 3.x dialect
> family, and if the Session has more than one channel in
> Session.ChannelList, the client MUST perform the following actions:
>
> "Session.ChannelSequence MUST be incremented by 1."
>
> but 3.2.4.1 indicates that it is not just for multichannel but also
> for PersistentHandle that it must be incremented (see below)
>
> "If Connection.Dialect belongs to the SMB 3.x dialect family and if
> Connection.SupportsMultiChannel or
> Connection.SupportsPersistentHandles is TRUE, the
> client MUST set ChannelSequence in the SMB2 header to Session.ChannelSequence."
I don't see a contradiction / conflict here:
- 3.2.7.1 tells when to bump the seqnum.
- 3.2.4.1 tells when to send it to the server
(this makes no statement about the value)
So the document seems to indicate this:
Bumping the channel sequence number is only done
by the Windows client upon connection loss on a
multi-channel session (i.e. a real one, with
more than one channel) and not for a single channel
session (also not on a formerly multi-channel
session, when the last channel goes down).
A new smbtorture test case that I am currently reviewing
indicates that the windows server is OK with this
client behaviour (i.e. not bumping when the last
channel of a session goes down).
Cheers - Michael
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2015-10-15 11:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 14:44 Channel Sequence handling - was RE: [PATCH] [SMB3] Send durable handle v2 contexts when use of persistent handles required Tom Talpey
[not found] ` <BN3PR03MB15107EF8D31A9F3B463FD753A0480-TOgqXkWMcuxshltC/NOAfWP7xZHs9kq/vxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-10-05 19:50 ` Steve French
[not found] ` <CAH2r5msW2+Mbui=jR3r2TaFspEUJFvLZYSQ5AXwGZ7qK2N5fkA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-15 11:15 ` Michael Adam [this message]
2015-10-15 13:25 ` Tom Talpey
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=20151015111520.GA5143@samba.org \
--to=obnox-eunubhrolfbytjvyw6ydsg@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=ttalpey-0li6OtcxBFHby3iVrkZq2A@public.gmane.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