]> 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:16:13 +0000 (11:16 +0000)
commite83bee64eec597c79a1539c877781d098422ecf8
tree634eefc1ba12da3e4fd2278d1bbb8afc22d58ed8
parentf9a71d8c465e6dd340ff26b352561344372fda08
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