diff options
| author | Gao Xiang <xiang@kernel.org> | 2026-08-14 14:59:46 +0800 |
|---|---|---|
| committer | Gao Xiang <xiang@kernel.org> | 2026-08-17 16:14:28 +0800 |
| commit | 862427ebb81d1f6abbf74d799790e1694b37b187 (patch) | |
| tree | 13d76a215ff08da21a144cac5ca7199eadba0fb5 /tools/perf/scripts/python/flamegraph.py | |
| parent | e587a984d332b76ab89fab546f1594f61f73d5f6 (diff) | |
erofs: fix interlaced ztailpacking pclusters
On-disk sizes of interlaced pclusters should be block-aligned, and
ztailpacking interlaced pclusters should be invalid at all.
Currently, mkfs.erofs won't generate any interlaced pcluster with
ztailpacking enabled, so this doesn't affect any existing valid
filesystems.
However, crafted images can contain invalid interlaced ztailpacking
pclusters, resulting in an out-of-bounds read from a kmap'd page and
copying irrelevant kernel memory into userspace-visible page cache.
Reported-by: Haiyang Huang <huanghaiyang83@gmail.com>
Closes: https://lore.kernel.org/r/20260806065253.1083865-1-huanghaiyang83@gmail.com
Fixes: fdffc091e6f9 ("erofs: support interlaced uncompressed data for compressed files")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <xiang@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
