]> git.ipfire.org Git - thirdparty/samba.git/commit
smbtorture: add test "open-brlock-deadlock"
authorRalph Boehme <slow@samba.org>
Thu, 9 Jan 2025 11:27:43 +0000 (12:27 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 2 Apr 2025 18:05:48 +0000 (18:05 +0000)
commit7c60498cee7dca5770d4d1f623c472d585ae9cae
tree923d7a1f5cc6e303bec15ea3a88453369faf10e5
parent7eb135c42d530a16e80e165d9e8e99d920797f12
smbtorture: add test "open-brlock-deadlock"

smbtorture reproducer for bug 15767. As it needs a very specific setup that
can't easily be done in selftest, the test is only executed when manually called
with

  --option=torture:open_brlock_deadlock_timemout=SEC

To prepare the setup for the test set:

  tdb_hash_size:locking.tdb = 1
  tdb_hash_size:brlock.tdb = 1

and remove both tdb from disk which is needed so the TDBs get recreated with the
new hash_size.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/lock.c