[GIT,FIXES,for,4.19] Prevent freeing media subscriptions while they're being accessed
mbox series

Message ID 20180921085738.mmupbnn7wjzhchxf@valkosipuli.retiisi.org.uk
State New
Headers show
Series
  • [GIT,FIXES,for,4.19] Prevent freeing media subscriptions while they're being accessed
Related show

Pull-request

ssh://linuxtv.org/git/sailus/media_tree.git tags/event-fix-6

Message

Sakari Ailus Sept. 21, 2018, 8:57 a.m. UTC
Hi Mauro,

There's just a single patch in this pull request: the one that prevents
releasing media event subscription memory while it is still being accessed.

Compared to what was last reviewed on the list, I added Cc to stable, for
this patch applies to 4.14 as well.

Older LTS kernels (3.16, 4.4 and 4.9) need changes to the patch. I'll send
them separately to stable@vger..., cc'ing you, Hans and Laurent as well as
the list once this is in.

Please pull.


The following changes since commit 324493fba77500592bbaa66421729421f139d4b5:

  media: platform: fix cros-ec-cec build error (2018-09-17 14:32:29 -0400)

are available in the git repository at:

  ssh://linuxtv.org/git/sailus/media_tree.git tags/event-fix-6

for you to fetch changes up to 88372fdff68f864316fbd7d9e9941ae24dc110eb:

  v4l: event: Prevent freeing event subscriptions while accessed (2018-09-21 11:52:08 +0300)

----------------------------------------------------------------
v4l2 event memory corruption fix

----------------------------------------------------------------
Sakari Ailus (1):
      v4l: event: Prevent freeing event subscriptions while accessed

 drivers/media/v4l2-core/v4l2-event.c | 38 +++++++++++++++++++-----------------
 drivers/media/v4l2-core/v4l2-fh.c    |  2 ++
 include/media/v4l2-fh.h              |  4 ++++
 3 files changed, 26 insertions(+), 18 deletions(-)