Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8506544ybl; Thu, 16 Jan 2020 18:20:18 -0800 (PST) X-Google-Smtp-Source: APXvYqz00SxQ98v3eKeK8F3fdzmF7VjRbcSIy//NKh9A1on6+b8hpOYq42oFYqA7tn5ndfRx/QhP X-Received: by 2002:a9d:4c81:: with SMTP id m1mr4340005otf.31.1579227618088; Thu, 16 Jan 2020 18:20:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579227618; cv=none; d=google.com; s=arc-20160816; b=BdmD8B268sQkznWZxGxXzMIHog3n0wNJK9+i8OWAghtWmZb5DA9dmqogeRGs7H4Vs9 /5UuziEK52rGLSMQXgWYhKAbJRi4VoRd9QnxljMV3Nqb1pUmAFVdzdZZOzwpwldRM/Rd eySmyU0E88VcgLLJAO/OXFCCgmgUw3gSBFPmlKabhC7fHiRg2nqoihH9BCZ5JCyxEHal D2tX2LIsHxwV/4ZaAE5YpCji26jaUFi7JGY111aEPqdjIS/u04gNHLC9cevsCSOtLK1C svjEo3pka0n299D/g9iVP9XUf9AxVpI4HD9Y5IavndIQe8t0z5Z3b9K5FfUtTeB2TirP zwjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=z6TETZBxOclFbOix8acV0GCjR0WcI5K4EjJuQxroFlw=; b=t8y7SWNdXZwYu74ujLMYp4yNB9lpS5j7vKNYmJxZKHXRF5R5WkFPtBZPTyjEHwrCNp DNWGAKNvTj6d5eZOl3q2P5xousGGuiSCcye5G3OaUnzb7nH2peXE3yQGctQ0JW8yZ92d eriWMlqcsUxxjU5jz9bdU04Ya/KBkGaxAZwQA+4A2GvKVesU2poMWN2bzkQa2D5MMpeq 1g9j17wYSmEMNywXHW43RjKEao5D77kqg5rDM/6miUIaQTbL8VCsmhZkF3YWxPezJl88 kWqXpWURyQMQdbmhEyIrjAv9l+3aelGGiJr4j0uJMn5JbvUEsNvlAjjcUx0/uzYY7yVU CPLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w5Dp8JpZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si14371086otr.102.2020.01.16.18.20.05; Thu, 16 Jan 2020 18:20:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w5Dp8JpZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388683AbgAPXZu (ORCPT + 99 others); Thu, 16 Jan 2020 18:25:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:54754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388038AbgAPXZN (ORCPT ); Thu, 16 Jan 2020 18:25:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A0192075B; Thu, 16 Jan 2020 23:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217112; bh=DkoLv/PPBCvriwWEPqQKsa4fsMQaQV3G/CykgTUgzik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w5Dp8JpZYX23HeKVjqg+LzQjV5daeub6qobc9Nf0bNlpStquoVGxP//400egx4JTc iKNWE/NWBSfR+4/P0BN51nZIuUQp1MNP2vmSaZHWSVbT7tnBEItw4nJLihcuvAB26E H44kNAphdtyXrZWUM8lWHBYB83ptUlo9UgvYERmk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Seung-Woo Kim , Sylwester Nawrocki , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.4 153/203] media: exynos4-is: Fix recursive locking in isp_video_release() Date: Fri, 17 Jan 2020 00:17:50 +0100 Message-Id: <20200116231758.222710009@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Seung-Woo Kim commit 704c6c80fb471d1bb0ef0d61a94617d1d55743cd upstream. >From isp_video_release(), &isp->video_lock is held and subsequent vb2_fop_release() tries to lock vdev->lock which is same with the previous one. Replace vb2_fop_release() with _vb2_fop_release() to fix the recursive locking. Fixes: 1380f5754cb0 ("[media] videobuf2: Add missing lock held on vb2_fop_release") Signed-off-by: Seung-Woo Kim Reviewed-by: Sylwester Nawrocki Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/exynos4-is/fimc-isp-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/platform/exynos4-is/fimc-isp-video.c +++ b/drivers/media/platform/exynos4-is/fimc-isp-video.c @@ -313,7 +313,7 @@ static int isp_video_release(struct file ivc->streaming = 0; } - vb2_fop_release(file); + _vb2_fop_release(file, NULL); if (v4l2_fh_is_singular_file(file)) { fimc_pipeline_call(&ivc->ve, close);