diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-16 12:20:14 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-16 22:38:20 +0200 |
commit | 8cf14c21b3bc55454728bf48b23f696e15c92aea (patch) | |
tree | 5a235ea1f083432d2c816d38784c7fcb9c9c4a42 /selftest/in_screen | |
parent | fe21bdc43c0aeacfc8592998e6a90f6f83c939e0 (diff) | |
download | samba-8cf14c21b3bc55454728bf48b23f696e15c92aea.tar.gz samba-8cf14c21b3bc55454728bf48b23f696e15c92aea.tar.bz2 samba-8cf14c21b3bc55454728bf48b23f696e15c92aea.zip |
Fix the SMB2 showstopper, found by an extended torture test from Volker.
In the oplock refactoring, the algorithm underwent an unnoticed change.
In 3.5.x stat_opens were silently (i.e. no explicit code had comments
explaining this) ignored when looking for oplock breaks and share mode
violations. After the refactoring, the function find_oplock_types()
no longer ignored stat_open entries in the share mode table when looking
for batch and exclusive oplocks. This patch adds two changes to find_oplock_types()
to ignore the case where the incoming open request is a stat open being
tested against existing opens, and also when the incoming open request
is a non-stat open being tested against existing stat opens. Neither
of these cause an oplock break or share mode violation. Thanks a *lot*
to Volker, who persevered in reproducing this problem.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon May 16 22:38:20 CEST 2011 on sn-devel-104
Diffstat (limited to 'selftest/in_screen')
0 files changed, 0 insertions, 0 deletions