mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:tests: let test_durable_handle_reconnect.sh run smb2.durable-v2-regressions.durable_v2_reconnect_bug15624
This demonstrates the dead lock after a durable reconnect failed because the stat info changed, the file can't be accessed anymore as we leak the incomplete share mode entry in a still running process. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15624 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
ef4ef04e7f
commit
14875448ca
1
selftest/knownfail.d/samba3.blackbox.durable_v2_delay
Normal file
1
selftest/knownfail.d/samba3.blackbox.durable_v2_delay
Normal file
@ -0,0 +1 @@
|
||||
^samba3.blackbox.durable_v2_delay.durable-v2-regressions.durable_v2_reconnect_bug15624
|
@ -33,4 +33,22 @@ testit "durable_v2_delay.durable_v2_reconnect_delay_msec" $VALGRIND \
|
||||
|
||||
rm $delay_inject_conf
|
||||
|
||||
error_inject_conf=$(dirname $SMB_CONF_PATH)/error_inject.conf
|
||||
|
||||
cat > $error_inject_conf << _EOF
|
||||
kernel share modes = no
|
||||
kernel oplocks = no
|
||||
posix locking = no
|
||||
error_inject:durable_reconnect = st_ex_nlink
|
||||
_EOF
|
||||
|
||||
testit "durable-v2-regressions.durable_v2_reconnect_bug15624" \
|
||||
$VALGRIND $BINDIR/smbtorture //$SERVER_IP/error_inject \
|
||||
-U$USERNAME%$PASSWORD \
|
||||
--option=torture:bug15624=yes \
|
||||
smb2.durable-v2-regressions.durable_v2_reconnect_bug15624 ||
|
||||
failed=$(expr $failed + 1)
|
||||
|
||||
rm $error_inject_conf
|
||||
|
||||
testok $0 $failed
|
||||
|
Loading…
Reference in New Issue
Block a user