diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-09-10 22:54:58 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-09-15 10:11:11 +0200 |
| commit | e9193f2f1ce32d02b9230094ffdbfab715ab6137 (patch) | |
| tree | 64de7a9ad4774e6c0e1e524f13df774973386854 /tools/perf/tests/shell/test_stackcollapse_python.sh | |
| parent | c54110d814c3e8ed6bbbb5e02874994ed9f668ac (diff) | |
| download | linux-next-e9193f2f1ce32d02b9230094ffdbfab715ab6137.tar.gz linux-next-e9193f2f1ce32d02b9230094ffdbfab715ab6137.zip | |
xfs: check di_forkoff correctly in scrub
The di_forkoff check in xchk_dinode is incorrect, according to LOLLM.
XFS_DFORK_BOFF returns a byte count relative to the start of the literal
area, not the start of the inode. Therefore, this check won't flag
di_forkoff values that are larger than the literal area but not the
inode size itself. Fix this check; sadly the old APTR code was correct.
Cc: stable@vger.kernel.org # v6.8
Fixes: 6b5d917780219d ("xfs: dont cast to char * for XFS_DFORK_*PTR macros")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/tests/shell/test_stackcollapse_python.sh')
0 files changed, 0 insertions, 0 deletions
