Skip to content

V4L2 event subscription fixes

Sakari Ailus linux-media stable 1 version Applied

Status from this message: I've queued this up for the next update, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2v4l: event: Prevent freeing event subscriptions while accesseddrivers/media/v4l2-core/v4l2-event.c drivers/media/v4l2-core/v4l2-fh.c include/media/v4l2-fh.h+23 -181 reply
2/2v4l: event: Add subscription to list before calling "add" operationdrivers/media/v4l2-core/v4l2-event.c+24 -195 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHans VerkuilLaurent PinchartDave Stevenson
1/2R-b R-b
2/2R-b T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v3.16 0/2] V4L2 event subscription fixes

Hi Ben,

The two patches fix a use-after-free issue in V4L2 event handling. The first patch that fixes that issue is already in the other stable trees (as well as Linus's tree) whereas the second that fixes a bug in the first one, is in the media tree only as of yet.

<URL:https://git.linuxtv.org/media_tree.git/commit/?id=92539d3eda2c090b382699bbb896d4b54e9bdece>

Sakari Ailus (2):
v4l: event: Prevent freeing event subscriptions while accessed
v4l: event: Add subscription to list before calling "add" operation

 drivers/media/v4l2-core/v4l2-event.c | 63 ++++++++++++++++++++----------------
 drivers/media/v4l2-core/v4l2-fh.c    |  2 ++
 include/media/v4l2-fh.h              |  1 +
 3 files changed, 38 insertions(+), 28 deletions(-)
Signature · 1 line
2.11.0