]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
f2fs: do sanity check on i_xattr_nid
authorChao Yu <chao@kernel.org>
Fri, 15 Aug 2025 08:14:05 +0000 (16:14 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 15 Aug 2025 16:12:13 +0000 (00:12 +0800)
commit97faf40fc28dd3f14a298dbeb540c2ae3811cdfb
treea0c437d9ff7237e9eca9a7f4b9991000e1a49f35
parent7d38f690bf8556345cd1c499d87946327b40247d
f2fs: do sanity check on i_xattr_nid

This is a regression test:
1. create directory
2. add a new xattr entry to create xattr node
3. use inject.f2fs to inject nid of xattr node w/ ino in a file
4. check whether f2fs kernel module will detect and report such
   corruption in the file

Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/f2fs/020 [new file with mode: 0755]
tests/f2fs/020.out [new file with mode: 0644]