summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorKyle Zeng <kylebot@openai.com>2026-06-12 15:58:46 -0700
committerJan Kara <jack@suse.cz>2026-07-08 17:12:17 +0200
commit120ec50984b8645232c2c004310dd94ceff5520e (patch)
tree8cdc67974d9bef47bb4e8a8544f17269e0088926 /tools/perf/scripts/python/bin/stackcollapse-record
parent4a50a141f05a8d1737661b19ee22ff8455b94409 (diff)
udf: validate extent partition references in udf_current_aext()
Long allocation descriptors carry an on-disk extLocation.partitionReferenceNum. udf_current_aext() copies that value into a kernel_lb_addr and returns it to several consumers. If the partition reference is outside s_partitions, callers can later index s_partmaps out of bounds. The truncate/free path can pass such an extent to udf_free_blocks(), where the invalid partition reference causes a slab out-of-bounds read. Validate eloc->partitionReferenceNum in udf_current_aext() before returning a decoded extent. This rejects invalid file extents and indirect allocation descriptor extents in the common parser, so callers do not need to duplicate the partition-map bounds check. Assisted-by: Codex:gpt-5.5 Signed-off-by: Kyle Zeng <kylebot@openai.com> Link: https://patch.msgid.link/20260612225846.97678-1-kylebot@openai.com Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions