]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
misc: amend unicode confusing name tests to check for hidden tag characters
authorDarrick J. Wong <djwong@kernel.org>
Wed, 16 Oct 2024 23:15:48 +0000 (16:15 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 25 Oct 2024 03:24:11 +0000 (11:24 +0800)
commit9c3762ceafd430bb4442d07d7bd89c55987729ed
tree2e95d7d5f69344a511017739d85cdad1480bb242
parent0ee667ece05c790f2d91422ff7c54eeee49d57fb
misc: amend unicode confusing name tests to check for hidden tag characters

The Unicode consortium has twice defined (and later deprecated) special
"tag" codepoints.  These tag codepoints are not supposed to be rendered
(i.e. they're invisible) but you can certainly encode them in
directories and labels to try to confuse users.

xfs_scrub already knows how complain about these tag characters because
libicu can detect both their presence and their use in confusing name
attacks, so add this as an explicit regression test.

Link: https://embracethered.com/blog/posts/2024/hiding-and-finding-text-with-unicode-tags/
Link: https://arstechnica.com/security/2024/10/ai-chatbots-can-read-and-write-invisible-text-creating-an-ideal-covert-channel/
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/453
tests/generic/454
tests/xfs/504