generic: test that encrypted filenames are presented without collisions
Add a test which creates many similarly-named files in an encrypted
directory, then verifies they can be deleted without access to the
encryption key. This is a regression test for two related bugs which
caused presented names to "collide" and point to the wrong inodes.
These bugs were present in the original versions of ext4 and f2fs
encryption, and they were fixed in v4.12-rc1.
Signed-off-by: Eric Biggers <firstname.lastname@example.org>
Reviewed-by: Eryu Guan <email@example.com>
Signed-off-by: Eryu Guan <firstname.lastname@example.org>
3 files changed