[PATCH v3 0/4] Add missing fixes to FastRPC driver

Ling Xu posted 4 patches 1 month, 4 weeks ago
There is a newer version of this series
drivers/misc/fastrpc.c | 89 +++++++++++++++++++++++++++---------------
1 file changed, 58 insertions(+), 31 deletions(-)
[PATCH v3 0/4] Add missing fixes to FastRPC driver
Posted by Ling Xu 1 month, 4 weeks ago
This patch series adds the listed bug fixes that have been missing
in upstream fastRPC driver.
- Store actual size of map and check it against the user passed size.
- Consider map buf for map lookup.
- Fix possible map leak in fastrpc_put_args.
- Skip refcount increment for DMA handles.
Patch [v2]: https://lore.kernel.org/linux-arm-msm/20250806115114.688814-1-quic_lxu5@quicinc.com/

Changes in v3:
  - Remove the unused line.
Changes in v2:
  - Fix possible map leak in fastrpc_put_args.
  - Remove take_ref argument.

Ling Xu (4):
  misc: fastrpc: Save actual DMA size in fastrpc_map structure
  misc: fastrpc: Fix fastrpc_map_lookup operation
  misc: fastrpc: fix possible map leak in fastrpc_put_args
  misc: fastrpc: Skip reference for DMA handles

 drivers/misc/fastrpc.c | 89 +++++++++++++++++++++++++++---------------
 1 file changed, 58 insertions(+), 31 deletions(-)

-- 
2.34.1
Re: [PATCH v3 0/4] Add missing fixes to FastRPC driver
Posted by Srinivas Kandagatla 1 month, 2 weeks ago
On Thu, 07 Aug 2025 15:34:16 +0530, Ling Xu wrote:
> This patch series adds the listed bug fixes that have been missing
> in upstream fastRPC driver.
> - Store actual size of map and check it against the user passed size.
> - Consider map buf for map lookup.
> - Fix possible map leak in fastrpc_put_args.
> - Skip refcount increment for DMA handles.
> Patch [v2]: https://lore.kernel.org/linux-arm-msm/20250806115114.688814-1-quic_lxu5@quicinc.com/
> 
> [...]

Applied, thanks!

[1/4] misc: fastrpc: Save actual DMA size in fastrpc_map structure
      commit: 69fb36431c5e1bd09981f931b3030296cdc6c7b5
[2/4] misc: fastrpc: Fix fastrpc_map_lookup operation
      commit: a8b2a851e3f9a8497ff857d9a152659988612af4
[3/4] misc: fastrpc: fix possible map leak in fastrpc_put_args
      commit: ba7a9771f1e3a622d51f95a1f5a4ff9958ca5c64
[4/4] misc: fastrpc: Skip reference for DMA handles
      commit: cbf27dd4e98e5a3b71dbe89972461ce5bb4c188c

Best regards,
-- 
Srinivas Kandagatla <srini@kernel.org>