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=1796230655; b=mnxcUt4jQ37HHVMJtRPYfgHKptJMWNcaCLikVjeDubTdwqGitmT2Ys9su/u0Zzr3DqKv YfO8sZcc01TyQ20ZIFcTsoSJccAw82DtKZaZ/xafcyX5M/BqfrY4UyXrwNHRNYCiFFfjd HsYlRBMIv0+QiJFMm3DrNtBSB9OM2u/YpMoUXcPRts4TJ2zt3R9Inc7pV/kP+mC+/+A7Y Gh/paQOHjR6EfDozyd0ZRP/KnAK6lDpn7Nwy/A2+yE5cOZ4uz8p5ExQ1QHm/C98Oi855M P2XD+aaIrFBgzWYKXjmvJG/7F5T6mooQrf3tQW5+hOLbqEiRaFQsoTY0Y11x3AhqYwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230655; 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=Xps9SssZmeX7HJ22DdG5KGmG7YOnpWXUuUcYvUHife8insXF01igqcwm5tn7GCTR9C5r xdffD3iJSMHfI1a7cFeo6S21mKg0uymVF+i3UQM0wUco1fbpzU4QTx4SmIxE6laLVRDeZ 3rjpcbtd1GfDYoOCkmTY7Xt/AZ/Hez/SsxcJB+PWLFTTUuK7aimdIiYYtrQsblL1nSvCQ DOu2uP6FG5NwwQDo8tNOXUHx6CAcyZsBwWv8eW6Ggk6RWsZcEI9T1s7GwdZmfCvnIQKt/ dQTKGwIoMRIqFO372LU+3a1pSRdbuNT416FEeH1kOFWhGwqPt2ULYlGNa/CjTMu5VvQ== 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 F22D4606A32A for ; Wed, 2 Dec 2026 16:57:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F22D4606A32A 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 20538EC0174 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=PGxpbnV4LW1lZGlhQHZnZXIua2VybmVsLm9yZz4=; s=fm2:rsa-sha256:JbMG1m/d2YEcnakqNgzWyNs/LEZzjhTg2N1Sx+DJw27V2PS tAifKhOh9dqzTUpJJ/S3jMvHhQoICCG1iVbBkZ5oodqftjNdVzQEpiABK/MogoNW UWfSj0JAWbcbUObmYNZbaDLt4jfq6HWafV8TKx4CWfsjwIwWhVfWmknlHtbBW5gA dX34jv3k/1l0UVTU8KbhZJUynqr99ISqX+7guPbm4GA9sE2jMdSrzM8JvrRiU8/j GctzPxKEdF1Hi/Tc/wuNJhahCwjjElMdfGjRxdYymr+ae8dXspNA8Waq08dA8KKR 8tLj0k2Vh8+kqZ7T6ipZ32lGmCDZ6NHTzjZpXTg==; 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-media@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