From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0467D20514F for ; Wed, 6 Nov 2024 17:04:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730912666; cv=none; b=TCra/i5cz/rqL6WnNLeXOTh8nI2cVp8cpIqMKpNjNVj52HAYcTR26evhnWmbmMor3hdjDTu3GzFtYLCEY2h/dV/O30nbbReY/vWBzTAjRK+sgH6WH36qGQEpN0+cah9Nq7yP7ZS4JCm2+OhoJkRHT3qOIPDzn5ChjPzBbEJkwig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730912666; c=relaxed/simple; bh=IqW57oiCoBaCk36CniFqvizF47SHTBcgPQmGYek9qt0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ak52WhCk5s1LHvYkRbXc0+dYFy87QCg0zJ37z40edu3sdeXYnpPbDuSpTOOeZYri90e3St9lc4pp/TELGJPD/IKokiRRN4NPvYNlk+z/fwgjL2yB5PIf66UnFCUP/3NlQQZLubRQBTGqVRl+lfMHMMTw2l8dqtLdwuys2xIArkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=E2wpFy1V; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="E2wpFy1V" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-71e7086c231so6094865b3a.0 for ; Wed, 06 Nov 2024 09:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1730912664; x=1731517464; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rDaQLdznzK7seqYSBe/wCoaA0MUN6ZM7xHd32DKGHh8=; b=E2wpFy1V4LcM8Sjf+T9lJHkgp2HZjgkTNCNRFwG9qGmsNMUBBtUNhBb80D0twCHrzx bMFYUFq+sO8wZlQpMd0bKECkSAhALJ8iTIJgzTkooIQsSkZvOLNs1hUOFAt220fGk9tS yfWCygVv7RshrRCSmfy3KKk8EAzEyRbhuZBMzGPSmVh6Djt5GgUMS7IVSvPDRvxN18yv gOsFRCkEV06ZGoJkNYZjArFQyAqJXhgs7SQ8XpfIS0nopGY0cE868Ar7Lo1qZldUsxmq OHoQS87UBu56IM/w1wYKDuwWCfv8vD73LQ++DmK6vccFlKZNGiqybV1K2A9X/nk00Am6 iRRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730912664; x=1731517464; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rDaQLdznzK7seqYSBe/wCoaA0MUN6ZM7xHd32DKGHh8=; b=P0S5OnG6qkDna+kHDtb5GYmvNKUKZ9vNZCRgdpPHykR43HOgW3KFzCHHgsTVxaoSTZ +Ufgqnnx5QpBk6IOWLCsNyhOwZa2ZPRQQPUJf0i8DSWmyZH/ayczusSNIY2nXAMvO31a 9lLLK11viiTz56Y3Xuqr6E0TE8wnZlXY/h9cgGa20VWHIosRqvHgGqV+4YQCy28XUXB6 +bLZpiiZerq69q1DuGUoCjg1iaVDjWwy8fyAbs27PK5MYW461ZpyJ2j9m+7TGF5sM5e9 oVzKDDAjSsHNNVZEnWJhJDATYX9raMitdwt4lQcPTq9kcAH3rbqPhXL22VRoLuO+Xc9i o4Zg== X-Forwarded-Encrypted: i=1; AJvYcCWsw0R1WCUUQu98GByC5Aa0n2Oy2becNFYZ6TSoPB4NGH69ODPfxmvpAfofTtbMK8OW5s3Pj8y9lFs29qbW2mV51w==@vger.kernel.org X-Gm-Message-State: AOJu0YytY5yaDXW1xY4D15GX60cLBwvSiwxF3sW/TA/ZKyzX6w0t9hxR bgTy3nM6ZmlQrp+99EXZ8zWlozZHNgx2jvXJJ8TTdF3mzWEmKaa6Z6C605IeCg== X-Google-Smtp-Source: AGHT+IFTRmyv3jddEWzwMk7l4ToMoo9qEgn6PMk6nfoP7kxnLFshmvLNCipLw+gSEmO7+UOuZw7W7g== X-Received: by 2002:a05:6a21:3292:b0:1db:f68a:d943 with SMTP id adf61e73a8af0-1dbf68ada69mr7915594637.17.1730912664141; Wed, 06 Nov 2024 09:04:24 -0800 (PST) Received: from google.com (128.65.83.34.bc.googleusercontent.com. [34.83.65.128]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7ee452a7ffesm11355388a12.23.2024.11.06.09.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 09:04:23 -0800 (PST) Date: Wed, 6 Nov 2024 09:04:18 -0800 From: William McVicker To: Tudor Ambarus Cc: tfiga@chromium.org, m.szyprowski@samsung.com, mchehab@kernel.org, yunkec@chromium.org, hverkuil@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, stable@vger.kernel.org Subject: Re: [PATCH] media: videobuf2-core: copy vb planes unconditionally Message-ID: References: <20241106121802.2939237-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241106121802.2939237-1-tudor.ambarus@linaro.org> Hi Tudor, On 11/06/2024, Tudor Ambarus wrote: > Copy the relevant data from userspace to the vb->planes unconditionally > as it's possible some of the fields may have changed after the buffer > has been validated. > > Keep the dma_buf_put(planes[plane].dbuf) calls in the first > `if (!reacquired)` case, in order to be close to the plane validation code > where the buffers were got in the first place. > > Cc: stable@vger.kernel.org > Fixes: 95af7c00f35b ("media: videobuf2-core: release all planes first in __prepare_dmabuf()") > Signed-off-by: Tudor Ambarus Thanks for sending this fix! I have tested that this fixes the video playback issues I was seeing on my Pixel 6 device. Feel free to include my Tested-by: Will McVicker Thanks! --Will