From patchwork Fri Sep 21 08:57:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 10609371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B41D3112B for ; Fri, 21 Sep 2018 08:57:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A36782DD54 for ; Fri, 21 Sep 2018 08:57:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 973DE2DD5E; Fri, 21 Sep 2018 08:57:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA41C2DD54 for ; Fri, 21 Sep 2018 08:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389463AbeIUOpc (ORCPT ); Fri, 21 Sep 2018 10:45:32 -0400 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:39900 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389444AbeIUOpc (ORCPT ); Fri, 21 Sep 2018 10:45:32 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2001:1bc8:1a6:d3d5::80:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id 6D680634C7F; Fri, 21 Sep 2018 11:57:39 +0300 (EEST) Received: from sakke by valkosipuli.localdomain with local (Exim 4.89) (envelope-from ) id 1g3HFr-0000YN-8Q; Fri, 21 Sep 2018 11:57:39 +0300 Date: Fri, 21 Sep 2018 11:57:39 +0300 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl Subject: [GIT FIXES for 4.19] Prevent freeing media subscriptions while they're being accessed Message-ID: <20180921085738.mmupbnn7wjzhchxf@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)