diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-09-22 23:02:34 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-10-05 12:05:29 +0200 |
| commit | 017dd7a84ff4cd2275eb62f4ee6d63c705bac107 (patch) | |
| tree | dba8b3f9fb91b84633549408946e3d04f5c4105f /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7e55f84434f3a63d59feb8f89076d280ea9aa8e5 (diff) | |
xfs: fix buffer overflow in corrupt inline attr structure
LOLLM noticed a buffer overrun if the xattr scrubber encounters a file
with a shortform attr fork with sf->count > 0 but if_bytes ==
sizeof(struct xfs_attr_sf_hdr). Basically, we have enough data to have
a header with a nonzero count, but no space for any of those shortform
entries. In this case, the xfs_attr_sf_nextentry() call will run off
the end of if_data and blow up.
Cc: stable@vger.kernel.org # v6.4
Fixes: ae0506eba78fd1 ("xfs: check used space of shortform xattr structures")
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/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
