summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorSebastian Alba Vives <sebasjosue84@gmail.com>2026-05-18 22:07:42 +0300
committerXu Yilun <yilun.xu@linux.intel.com>2026-06-01 07:29:40 +0300
commit43a1974da6bc7ce8f4d1dc1d03d56997428c29c3 (patch)
tree8c2b6c81e22af86af37f91c7cdbfe677d4bdf336 /scripts/Makefile.thinlto
parentfc3b071a7c8dc0f5d56defddf6e6fd5aaa3e1e27 (diff)
downloadlinux-43a1974da6bc7ce8f4d1dc1d03d56997428c29c3.tar.xz
fpga: microchip-spi: fix zero header_size OOB read in mpf_ops_parse_header()
mpf_ops_parse_header() reads header_size from the bitstream at MPF_HEADER_SIZE_OFFSET (24). When header_size is zero, the expression *(buf + header_size - 1) reads one byte before the buffer start. Since initial_header_size is set to 71 in mpf_ops, the fpga-mgr core guarantees the buffer is large enough to reach MPF_HEADER_SIZE_OFFSET. The only real gap is the zero header_size case, which cannot be resolved by providing a larger buffer, so return -EINVAL. Fixes: 5f8d4a900830 ("fpga: microchip-spi: add Microchip MPF FPGA manager") Cc: stable@vger.kernel.org Signed-off-by: Sebastian Alba Vives <sebasjosue84@gmail.com> Reviewed-by: Xu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/20260518190742.61426-4-sebasjosue84@gmail.com Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions