Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4628165ybl; Wed, 22 Jan 2020 01:34:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxZO8HDmy523jvVDNFmwLfPS7zRUPIL3jtoVh4GZXkdZwB3AUzCVPRlLEpFeo6ZSqZyQDdB X-Received: by 2002:a9d:7305:: with SMTP id e5mr6520874otk.64.1579685650072; Wed, 22 Jan 2020 01:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579685650; cv=none; d=google.com; s=arc-20160816; b=yE6QIFzOlmjJ7bYP8zwM/88bqPUKw0CuZEu9HQ/he43XzHdLhRU2icBWxFS1oQsjxH ptaCKHhZq3BdTdOpk6yD3zCntnGdm/OsWQhU4bXyybSPn8c94hvjzfBtAIJ/XmKe2Y+g re7NOX+7MvBvFUdc+0xId+9gmPRROO8HbFIUAuhshuIO3gDrufW9P36J3f9ZCfjjQJqt 9kOdi0r171PiJhDbnmxLIh+lOXG5miV3CGtde2O3FwkN7Ps7hZ1A1PXbbdpSizrhW/W+ HGOydMPENVEwXhvWOwW61MDieiqqiKuR59u73zb1iwuH4vOgbyNxSyCxBR0AAhq9PXep aFaA== 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=L9SNuYGR45t3LvHvGUg2RJaK+lS/pGVAt+ke66g0BaI=; b=aTK1FuhQsoO3v5JCQTpLFQ4oYEhtPPqIGp7tlJKYxulu3x7SJ3tAhR9DBdXZMBT5B5 yuVst29PCgbWdc73QzUnWqDht8vM3XzTg+QyqIsXjpfDRLbhQUDK1f0wPM31yPiUVc24 DhZSA3QFe4G569fxpAGw4kmP3P5csOTAEeuTXEXQXCIlkETTyy5qIvdPEd1Vm+z1P45M PiX7p+dkge3nK1JXJJUNScmJF+oFy7V6vuTUVYgf0hoH6neIBMsEPE9YiICqGc7z4jfv mqOFBUQ1ckIhkIa6YN4hIkc42i5q8haxTPkDoey+jMA97GkofUI9+EB3GJxoplTHxOX7 wSlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FtyTWqph; 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 v12si24145484otn.193.2020.01.22.01.33.58; Wed, 22 Jan 2020 01:34:10 -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=FtyTWqph; 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 S1730154AbgAVJcf (ORCPT + 99 others); Wed, 22 Jan 2020 04:32:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:45522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730136AbgAVJcd (ORCPT ); Wed, 22 Jan 2020 04:32:33 -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 29D002071E; Wed, 22 Jan 2020 09:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579685552; bh=wV4sBakQ3b/c4Lez57pR0uixWdNUh8E6EcO69dxaw7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FtyTWqphfB8yaehboktIzBSVzaOxgS5fWh0qXkKekJo2qxB6TiEheLaoWQ1EUSHDX VVLh12R0EJXpw7yKfkqA676s8kZYdl7zkJ97ZLp8dHwBUnlOvLFz+yql/6jkOidxUY AexnrBMf2tmNxPyenehvDZLOLsV1BebTteKKxCTo= 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 4.4 33/76] media: exynos4-is: Fix recursive locking in isp_video_release() Date: Wed, 22 Jan 2020 10:28:49 +0100 Message-Id: <20200122092755.304524185@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092751.587775548@linuxfoundation.org> References: <20200122092751.587775548@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 @@ -323,7 +323,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);