Bug 11897 - SMB3 multichannel implementation is missing oplock/lease break request replay
Summary: SMB3 multichannel implementation is missing oplock/lease break request replay
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.4.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
: 12376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-04 19:23 UTC by Michael Adam
Modified: 2022-01-13 18:52 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Adam 2016-05-04 19:23:46 UTC
In order to prevent data corruption, if an oplock/lease break request sent from the smb server to the client does not get a response, (if the channel failed) the server needs to resend the break request over other channels as long as there are intact channels left in the (multi-channel) session.

This is required in order to move the multichannel feature from experimental to supported. The purpose of this bug is to track this piece of technical debt.
Comment 1 Michael Adam 2016-10-16 19:59:42 UTC
*** Bug 12376 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Metzmacher 2020-07-24 15:52:28 UTC
This is fixed with 883657a7cfe0788b8c82b58a0379a8ea724df72a in 4.13.0rc1
Comment 3 David Disseldorp 2020-09-09 14:20:37 UTC
(In reply to Stefan Metzmacher from comment #2)
> This is fixed with 883657a7cfe0788b8c82b58a0379a8ea724df72a in 4.13.0rc1

Thanks a lot for fixing this, Metze! Unless I'm missing something, we could now consider removing, or at least toning down, the "this feature is still considered experimental" warning in the manpage. What do you think?
Comment 4 Stefan Metzmacher 2020-09-09 16:39:42 UTC
(In reply to David Disseldorp from comment #3)

We still have these before we can thing about it:
https://bugzilla.samba.org/show_bug.cgi?id=11899
https://bugzilla.samba.org/show_bug.cgi?id=14433
https://bugzilla.samba.org/show_bug.cgi?id=14449

I hope to get to them for 4.14.

We also need people doing real world testing with real hardware
and windows clients.

See also https://www.samba.org/~metze/presentations/2020/SDC/
for my status update
Comment 5 Bjarne D Mathiesen 2022-01-13 18:52:35 UTC
#=> system_profiler SPHardwareDataType SPSoftwareDataType
 Hardware:
       Model Name: Mac mini
       Model Identifier: Macmini2,1
       Processor Name: Intel Core 2 Duo
 Software:
       System Version: Mac OS X 10.6.8 (10K549)
       Kernel Version: Darwin 10.8.0

So, I've got samba 4.15.3 to compile & install

Now, when I'm trying to run it I get when trying to connect :

root@MiniWeb 19:46:29 ~/bin
#=> cat smbd_foreground 
smbd \
    --foreground \
    --interactive \
    --configfile=/opt/local/etc/samba4/smb.conf \
    --debuglevel=4 \
    --debug-stdout

...

Registered MSG_REQ_POOL_USAGE
'server multi channel support' enabled but not supported on Darwin (10.8.0)
Please report this on https://bugzilla.samba.org/show_bug.cgi?id=11897
Allowed connection from fe80::8ef:bdec:d611:b07a (fe80::8ef:bdec:d611:b07a)
init_oplocks: initializing messages.
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
Server exit (failed to receive smb request)
Terminated