mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
c7169fada6
nlink of overlay inode could be dropped indefinitely by adding
un-accounted lower hardlinks underneath a mounted overlay and
trying to remove them.
The simplest way to understand this test is this:
Imagine that you have a tool (e.g. xfs_db) with which you can add
hardlinks, without changing the value of nlink stored on-disk for
the inode. This is exactly what this test does when it adds lower
hardlinks underneath a mounted overlay.
Commit 5f8415d6b87e ("ovl: persistent overlay inode nlink for
indexed inodes") fixes this issue, although the issue was never
exposed in any released kernel.
With overlayfs indexed copy up and without the fix, the test
triggers WARN_ON(inode->i_nlink == 0) in drop_link().
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
40 lines
925 B
Plaintext
40 lines
925 B
Plaintext
# QA groups control file
|
|
# Defines test groups and nominal group owners
|
|
# - do not start group names with a digit
|
|
# - comment line before each group is "new" description
|
|
#
|
|
001 auto quick copyup
|
|
002 auto quick metadata
|
|
003 auto quick whiteout
|
|
004 attr auto copyup quick
|
|
005 auto copyup quick
|
|
006 auto quick copyup whiteout
|
|
007 auto quick
|
|
008 auto quick whiteout
|
|
009 auto quick
|
|
010 auto quick whiteout
|
|
011 auto quick
|
|
012 auto quick
|
|
013 auto quick copyup
|
|
014 auto quick copyup
|
|
015 auto quick whiteout
|
|
016 auto quick copyup
|
|
017 auto quick copyup
|
|
018 auto quick copyup hardlink
|
|
019 auto stress
|
|
020 auto quick copyup perms
|
|
021 auto quick copyup
|
|
022 auto quick
|
|
023 auto quick attr
|
|
024 auto quick
|
|
025 auto quick attr
|
|
026 auto attr quick
|
|
027 auto quick perms
|
|
028 auto copyup quick
|
|
029 auto quick
|
|
030 auto quick perms
|
|
031 auto quick whiteout
|
|
032 auto quick copyup hardlink
|
|
033 auto quick copyup hardlink
|
|
034 auto quick copyup hardlink
|