diff options
| author | Rob Herring (Arm) <robh@kernel.org> | 2026-08-27 15:33:04 -0500 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2026-09-03 12:06:45 -0500 |
| commit | 2b39d680c9e0fb4d625f2916980977622e84248c (patch) | |
| tree | 168f8ca01165a6efb4bf84e98ca9bca5ee96fde0 /scripts/Makefile.thinlto | |
| parent | f5376d7e0fb703876199d3b6f9f97e128fa2f8a4 (diff) | |
| download | linux-2b39d680c9e0fb4d625f2916980977622e84248c.tar.gz linux-2b39d680c9e0fb4d625f2916980977622e84248c.zip | |
accel: ethosu: Ensure SRAM region size matches job
It is possible for userspace to set the job SRAM size to 0, but then still
have SRAM accesses in the command stream. When the job SRAM size is 0,
setting the region base register is skipped and a stale base address from
a prior job is used.
Check the region size against the job's SRAM size instead of just the size
of the SRAM. The job's SRAM size was already checked against the total SRAM
size.
Fixes: 9cff90774872 ("accel: ethosu: Validate SRAM size on submit")
Cc: stable@vger.kernel.org
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260827-ethosu-fixes-v1-5-346f9ea8791c@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
