mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 12:24:18 +00:00
In the transition from using rproc_da_to_va(), the type of the load offset became unsigned. This causes the subsequent check to let negative values less than p_memsz + mem_size through and we write outside of the buffer. Change the type back to a signed value to catch this. Fixes:7f0dd07a9b("remoteproc: qcom: mdt_loader: Refactor MDT loader") Fixes:e7fd252262("remoteproc: qcom: q6v5: Decouple driver from MDT loader") Reported-by: Dan Carpenter <[email protected]> Reported-by: Stanimir Varbanov <[email protected]> Acked-by: Andy Gross <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>