1
0
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:
Stefan Metzmacher 2024-08-26 14:42:12 +02:00 committed by Günther Deschner
parent ef4ef04e7f
commit 14875448ca
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
^samba3.blackbox.durable_v2_delay.durable-v2-regressions.durable_v2_reconnect_bug15624

View File

@ -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