diff options
| author | Paritosh Potukuchi <paritoshpotukuchi@gmail.com> | 2026-06-12 10:18:15 +0000 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@linux.intel.com> | 2026-07-01 10:50:24 +0200 |
| commit | b2f4816a378dc840b605a1235b80e57c5f85b46c (patch) | |
| tree | b7066c433394ec2c433762f7b8e59342d964f1da /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 3ca8d1ec9a5374177b3f93313ac6f3e10cd3b113 (diff) | |
i2c: amd-asf: Validate firmware-reported length
The firmware may sometimes return a length greater than the
allocated buffer size, which can lead to out-of-bounds access
and a kernel panic.
Currently, the driver does not validate the length read from
firmware.
Add a check to ensure the firmware-reported length stays within
the bounds of the data buffer.
Signed-off-by: Paritosh Potukuchi <paritosh.potukuchi@amd.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260612101815.4124804-1-paritosh.potukuchi@amd.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
