From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.148 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796230660; b=SanGu90dNN7M6+h0m3+1PYTlpDaTf9vfMFcC4t0MXzb8bQzNZAp0sDQVOsmFZp1+AYSO XfqnzVnWgN9bw6aly7uQxFv7He5g0a3JQZ055hvPJA/N6CnLHnTU1fcaxCEtYd6Sb0TLm g8+B7EEbqgqdzk1vk04qSriw1ERGJDTawCy7gTOdkbTc9/Ue4gfwYpLtFNHV+5pYkb6GS ucKNP7f8JfzldH3omxQZSnFBl9YJ1ZIZrlEdGZNv+yBkeoLo5Muel35g4/GilTpaauGzM PVTNTrWL/9T6QjnZW/0xp3jnYXSJsDfzdRipUM4aoSJBGaQJ/k8BML7F6hc5dg2JqMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230660; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding: In-Reply-To; bh=WECIwvMINloRXeJHUxKL8NwGLXnHErEQ6Od2ExPe8hc=; b=zv7PmvUM3Epg8grFWXaU6AO32dl9v6ZA36oWUOErFK87T06TdA7ZxRAWtRp6sX5nOpeB s0C18JwcXkDqBBrRYWgauwwBn37OoprJM1H00r4YqiK4pCKeZ8nIqtLHoqddbI1qDk9WR 340Nnh8FDMnJED57aF6KTZZSAk2kaaH3wrO0i2oh9SRiJVIFPUAfp1FbXP52jvXOCNzkz /WovZhjfBeaY5WKCOUQxd1pf5qwASLt5COZ3Y2LrLPr1wdA9zibtaA9ii5Iu0zxam+yfk fkCGCNx/IxrPgP4xWouSZDZWhhLngovktnGVydcfB4beZqWl79iM76PCOpjtFH3i83A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=ragnatech.se; spf=pass smtp.mailfrom=ragnatech.se; dkim=pass header.d=ragnatech.se header.i=@ragnatech.se header.a=rsa-sha256 header.s=fm2 header.b=c3yCHDyM; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=HWUlSFTI; arc=none smtp.remote-ip=103.168.172.148 Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2376606A32F for ; Wed, 2 Dec 2026 16:57:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F2376606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=ragnatech.se header.i=@ragnatech.se header.a=rsa-sha256 header.s=fm2 header.b=c3yCHDyM; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=HWUlSFTI Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 2211BEC0176 for ; Wed, 2 Dec 2026 11:57:34 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 02 Dec 2026 11:57:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1796230654; x=1796317054; bh=WECIwvMINloRXeJHUxKL8NwGLXnHErEQ6Od2ExPe8hc=; b= c3yCHDyMpCS7ygeojlzX218/BobA54wGjrgn1lnMzTiSust9IDSBHXjk/onZ/dB0 pIf6yVooedTMRpZTdjPigNdfCz6GG8QhuoxjlyKG2j+/T7v6KQFuoKrGpugL4rJi E3uPmpLz+k3dkeb81RNGvinTNMOzsqklsJf0uqcBhEkjTcSovQYHnBs6VDT03Aay 8YK6lKSqN1Ye6caC9e0FgscYhBxqvlRzdcCxyjZbEZWy75FzcOT7J+8G62zrEWgz dcTDtobMFUo1keRK2ROBcGXTqJTqcsJtTYyakNZ0wNoJAwikFNBWqGrhMGadLG4Z TrrgIyioTFZ+Sz/amx8eVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1796230654; x= 1796317054; bh=WECIwvMINloRXeJHUxKL8NwGLXnHErEQ6Od2ExPe8hc=; b=H WUlSFTITXOcjPa5QVDO2iyp55lTV1vmxpYrjW5OWj//eXI1wr07vxCew+NYTNbrL 5pED2fVh5KChMlqg40jEkD1zsxQHDw2iWd7gssNKYT0fCitGlQXPEjTXr8GXqFkk VR+WNwxv4zM4dGe6nAYXHzUFLEU5GO8rIufEZjGpsxJii3J3mePdGppT3OTncECm zeWbwMHZ8CPBBAliszH5TQ0hw9NBa0UKDwMyXtR8q9sgiT3xl+RPN+RQxNTCvnv5 o/9QN8BtcwOV6oZtG/MXTVISgFz2PtdOiZfMsGsbnUBjpyZzMx/hqbtwWO7tT4Nv 7uS/roMr2aWWM3QcOg41Q== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=ragnatech.se a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796230654; d=ragnatech.se; mf=PG5pa2xhcy5zb2Rlcmx1bmRAcmFnbmF0ZWNoLnNlPg==; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm2:rsa-sha256:wSTBPYcWbt9Xh2eMqIaLlwuGX8ha2qIW9SF8G06PeJuRjPT CO1qZVkAFOyflj0EY57HpAG4WdC9i120/+HG7DkocpfYOD4JPkdLVsj3GoAZjoQn YrRjcGhNcrlnujqRB9/xHTnNjO9/VGiCjRHL8HKBTHmSc6xtAI3MJbdiWbYnbjfe uKe4P+CEQ1uMGfhwoHreE1dRWgJG8AHppVJPi2rg5cxtdRK1VOMuTppOWxbgfwh/ tP2OJnOouJ1nSteR//vhcdnkdC03NHjRIWLiTtdWLMmUhnQ4wqMA0Fg9grCxiWpU Y/JpT3bE/yUzFyPLtweLch+tEQml5MLSu2r90kQ==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=13; hn=cc,content-disposition,content-transfer-encoding, content-type,date,feedback-id,from,in-reply-to,message-id, mime-version,references,subject,to; Message-Instance: m=1; h=sha256:a4MX9OANkwQTbtnw5epbEUtupOxh39JBeiiiv2/1BH8=:iFaTm3ye0q0WBkXk3pgdhGkZgLrL12fGi9iKx9btSvA=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGJvTVlSbtGyYDawqSVPFGpNYr3DjlZS8NAH/lHvpTce3eCHzk4b6GH+ILQ9qhAPn wpU69bDz1dhNzIZ4H98V0KPsJBtgUgmq5y5P7/fCRYk6P4NE4PFmOUlZrbgAwUizhZ7dUA lwqjeD1++rgAV3RoamsJtPcxfMb3XmW6svkYAEsAfTXPSQCAm+lZSs77BOSRXgaEFyITH+ waoW5KTtkqXT65+hY/2hmO51FpE/Q2nMdSlEvAQgiygfPMZI1qDx4riP/UCWPURtuakD2K kb+huJkmu/0ezokHkP7Fh5qG4vPqLDuzDCmuaj97xxd93ZpfP1qifAGi4BiOW5BMebwZhl wu7piKczUZ95W4R6ZsSQUG4g/OEY6MUzKdNrjns+BC9uCNuBCMM4rTAqDhvvv1T/k3J37k PGzC52twS0GPtCEaLD7hdgwJ99mQoYNoPHcHTRYXSCTStdZD3plJa5hagULTgoPlt2Z1bc L0FcURBvZbLH5SAXGApyq9RMJoFzaQAgPygQgpDmNXY9Hp56WvtPY36aj4cmyLNyqm2j2y Yhlz8jXmRKl1t86/cHet58Sx9PRT5bcuXFkKaoUw54OXC6RQsVSSMCGqRFm4zNRIuCKKqe JEJMu3TOAZn1Lkdf1IKmzoLpZZCUTrbVDYb0LF/0gl2ZyFwJa3C1gKeXa9yg X-ME-Proxy: Feedback-ID: i80c9496c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Dec 2026 11:57:33 -0500 (EST) Date: Wed, 2 Dec 2026 17:57:31 +0100 From: Niklas =?utf-8?Q?S=C3=B6derlund?= To: Hyeonjun Hong Cc: Jacopo Mondi , Jai Luthra , Mauro Carvalho Chehab , Daniel Scally , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] media: rppx1: Validate and process a copy of the parameters buffer Message-ID: <20261202165731.GK3157946@ragnatech.se> References: <20261202161251.GF3157946@ragnatech.se> <20261202165419.750564-1-hyeonjunhong330@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261202165419.750564-1-hyeonjunhong330@gmail.com> On 2026-12-03 01:54:19 +0900, Hyeonjun Hong wrote: > Hi Niklas, > > Thanks for the quick review. > > On 2026-12-02 17:12:51 +0100, Niklas Söderlund wrote: > > Can't this be fixed in the v4l2-isp helpers instead of fixing every > > user? > > Yes, I think it can, and it would be the better end state. > > Today the copy is the driver's job. The kernel-doc of > v4l2_isp_params_validate_buffer() says drivers should copy the buffer > to kernel-only memory after v4l2_isp_params_validate_buffer_size() and > then validate the copy. rkisp1, mali-c55 and c3-isp do that, rppx1 is > the only user that passes the vb2 plane directly, so this patch only > fixes one user. But nothing in the helper enforces it. > > A helper that does the size check, the copy and the block validation > in one call, with the driver passing the destination, would make it > hard to get wrong. > > That is a larger change though: it touches all four drivers and > overlaps with Dan's "Introduce v4l2-isp reset buffers" series, and I > can only compile test the other three drivers. So I would suggest > taking this patch as the minimal fix for now, and I can look into the > helper rework once Dan's series has landed. Can't you base your work on Dan's series and list it as a dependency? > > Would that work for you? > > Thanks, > Hyeonjun -- Kind Regards, Niklas Söderlund