diff options
| author | Daisuke Matsuda <matsuda@preferred.jp> | 2026-07-23 08:19:12 +0000 |
|---|---|---|
| committer | Xu Yilun <yilun.xu@linux.intel.com> | 2026-08-04 17:35:41 +0800 |
| commit | 9da70a43b5fea60d758137f7f0ccfe19356cb5bb (patch) | |
| tree | 910432f3a0ef4b096ffa11b9bbd8e2ecc085c5b6 /tools/perf/scripts/python/flamegraph.py | |
| parent | 2c972f03ccdda4fe9df4833056c5b4bfd953a61c (diff) | |
fpga: altera-cvp: Avoid out-of-bounds read in trailing byte write
The trailing byte path in altera_cvp_send_block() dereferences a u32
pointer even when only 1-3 bytes remain in the input buffer. If the buffer
ends at a page or scatterlist boundary, this can read past the valid image
data and fault.
Copy the remaining bytes into a zero-initialized u32 before writing the
final word so only valid bytes are read from the input buffer.
Fixes: 34d1dc17ce97 ("fpga manager: Add Altera CvP driver")
Cc: stable@vger.kernel.org
Signed-off-by: Daisuke Matsuda <matsuda@preferred.jp>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260723081912.74082-1-dskmtsd@gmail.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
