generic: test for creating duplicate filenames in encrypted dir
authorEric Biggers <ebiggers@google.com>
Mon, 14 Dec 2020 23:47:20 +0000 (15:47 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Dec 2020 16:18:42 +0000 (00:18 +0800)
commita225507009a3bbb7bdf1a701efc0d2e11e334594
treebe92e830b22e5d73e8037dca280819346754fbf6
parent90d76997831ed7cd7b86028b8ee60aa3135347db
generic: test for creating duplicate filenames in encrypted dir

Test for a race condition where a duplicate filename could be created in
an encrypted directory while the directory's encryption key was being
added concurrently.

generic/595 was already failing on ubifs due to this bug, but only by
accident.  This new test detects the bug on both ext4 and ubifs.  I
wasn't able to get it to detect the bug on f2fs.

Signed-off-by: Eric Biggers <ebiggers@google.com>
tests/generic/621 [new file with mode: 0755]
tests/generic/621.out [new file with mode: 0644]
tests/generic/group