Skip to content

staging: vc04_services: vchiq-mmal: fix multiple memory safety issues

Sebastian Josue Alba Vives linux-arm-kernel linux-media linux-staging stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Reframed patch 1 as hardening rather than security fix (Greg)
- Switched pr_err/pr_warn to ratelimited variants (Greg)
- Added Cc: stable to all patches (Greg)
- Note: dev_err() not used as this file has no struct device access

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: vc04_services: vchiq-mmal: validate component index in event_to_host_cb()drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c+9 -21 reply
2/4staging: vc04_services: vchiq-mmal: add buffer size check in inline_receive()drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c+17 -30 replies
3/4staging: vc04_services: vchiq-mmal: prevent stack overflow in port_parameter_set()drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c+8 -00 replies
4/4staging: vc04_services: vchiq-mmal: fix integer underflow in port_parameter_get()drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] staging: vc04_services: vchiq-mmal: fix multiple memory safety issues

Changes since v1:
- Reframed patch 1 as hardening rather than security fix (Greg)
- Switched pr_err/pr_warn to ratelimited variants (Greg)
- Added Cc: stable to all patches (Greg)
- Note: dev_err() not used as this file has no struct device access

This series adds defensive bounds checks to the MMAL VCHIQ driver which handles multimedia message passing between the ARM CPU and the VideoCore GPU on all Raspberry Pi models.