Holding a lock and then issuing an SMB2 AIO write on the locked region fails. This can be demonstrated with the smb2.lock.rw-exclusive torture test. Fixing the problem requires these patches: https://git.samba.org/?p=samba.git;a=commitdiff;h=dfef0701c398982226dde8a8e15ff97bba0fef53 https://git.samba.org/?p=samba.git;a=commitdiff;h=eadb2a54d1733a482999eb770182156dad1e184d The same problem exists in 4.0 and 4.1.
Created attachment 9511 [details] Patches for 4.0 branch
Created attachment 9512 [details] Patches for 4.1 branch
Comment on attachment 9511 [details] Patches for 4.0 branch LGTM.
Comment on attachment 9512 [details] Patches for 4.1 branch LGTM.
Re-assigning to Karolin for inclusion in 4.0.next, 4.1.next. Jeremy.
Pushed to autobuild-v4-0-test.
user@host:/data/git/samba/v4-1-test$ git am v4-1-test.patch Applying: smbd: Fix bug 10284 error: patch failed: source3/lib/msg_channel.c:41 error: source3/lib/msg_channel.c: patch does not apply Patch failed at 0001 smbd: Fix bug 10284 (In reply to comment #6) > Pushed to autobuild-v4-0-test. ... and autobuild-v4-1-test.
Pushed to v4-0-test and v4-1-test. Closing out bug report. Thanks!