]> 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)
committerJule Anger <janger@samba.org>
Thu, 17 Apr 2025 11:31:14 +0000 (11:31 +0000)
commit134f84d36764b3ca54afe80662c2c66ef3e1b745
tree377395af9e7869b7d3a022c2477ef0e093e30c7b
parentae0a023845d44165626279232f764556cf1d011b
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>
(cherry picked from commit 7c60498cee7dca5770d4d1f623c472d585ae9cae)
source4/torture/smb2/lock.c