Re: [PATCH v3 0/4] Fix endian, overflow, and write-protection bugs in SE firmware loading
From: Bjorn Andersson
Date: Mon Aug 31 2026 - 22:23:34 EST
On Fri, 21 Aug 2026 12:06:16 +0530, Viken Dadhaniya wrote:
> This series fixes four issues in geni_find_protocol_fw() and
> geni_load_se_fw(), all introduced by commit d4bf06592ad6 ("soc: qcom:
> geni-se: Add support to load QUP SE Firmware via Linux subsystem").
>
> The most critical issue (patch 4/4) causes a level-3 permission fault
> and crashes the kernel during QUP firmware load on CentOS; writing through
> a non-const cast into a read-only firmware mapping is undefined behavior
> regardless of whether the fault is raised.
>
> [...]
Applied, thanks!
[1/4] soc: qcom: geni-se: Fix endian conversion for serial_protocol comparison
commit: 0231382f070df26a8b267f9e68c5440928b87c89
[2/4] soc: qcom: geni-se: Widen fw_size to u32 to prevent wrap-around
commit: e976c865bf31b562ab3908f0f1e2160da77fa156
[3/4] soc: qcom: geni-se: Fix fw_end computed before round-up; propagate size to caller
commit: d1750c530e9b9b75c8d1b29d3c76e052a049f51f
[4/4] soc: qcom: geni-se: Fix write to read-only firmware buffer
commit: 28b9c15f1829fff7b26db0dbbbde1c6b466cb156
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>