CVE-2026-142863: soc: qcom: geni-se: Fix fw_end computed before round-up; propagate size to caller
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: geni-se: Fix fwend computed before round-up; propagate size to caller
fwend was computed from the raw fwsizeinitems, before the odd-word round-up. A segment with an odd word count could pass the bounds check at the unrounded value but then be copied one word past the validated limit. Move fwend (and the cfg{idx,val}end) calculations to after the round-up so they always reflect the true copy extent.
The caller geniloadsefw() re-read hdr->fwsizeinitems for the memcpytoio() length, bypassing the validated and rounded value established by genifindprotocolfw(). Add a fwsizeout output parameter and use it in the caller.