Skip to content

media: amphion: fix two out-of-bounds copies

Maoyi Xie linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: amphion: store only whole messages in the instance fifodrivers/media/platform/amphion/vpu_msgs.c+3 -31 reply
2/2media: amphion: reject encoded frames larger than the stream bufferdrivers/media/platform/amphion/venc.c+2 -12 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMing Qian
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] media: amphion: fix two out-of-bounds copies

Two fixes for the amphion VPU driver. The patches are independent.

Found with a CodeQL-based static analysis tool that we are developing. Each case was reproduced in a userspace harness under AddressSanitizer. Not tested on hardware. Compile-tested with W=1 on next-20261116.

I used an LLM to help write the harnesses and these patches.

Maoyi Xie (2):
media: amphion: store only whole messages in the instance fifo
media: amphion: reject encoded frames larger than the stream buffer

 drivers/media/platform/amphion/venc.c     | 3 ++-
 drivers/media/platform/amphion/vpu_msgs.c | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1