From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01CCD606A699 for ; Fri, 20 Nov 2026 23:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=yMCmECxB DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=Y1xhucr9FXDF8aR2Vh1H8NQumkyNaaHWnO41SKABElM=; b=yMCmECxBwVNqLLpLPK4N3cJcWb P0h3pKK30oxajsOQtz4mv602HA/G3BjqR1N74CTDHffxOu6sLddKf+p6+D6/XThG86/JZJHwtZtXy ec8ia5X6lwwLDOINlVVA18Wke3b+Ku+uYSc8GMkxIIok3a4GDebXdYNM8Wvwqm9T4/IfgowS4bCJX ASpAQBHjr08ZG6XWsVPQwlLk5Rs522vuOdOCaRETa1YtHM4Bj5KJxKKPSIFJVA4RMg+tu8pWubVpu kj0piACYEAKJo89J3avtmHhpxPNn6mhOIKOq6IwhSRCG/f8mwe6Tp518ONXI0Bk9xlTcw7wFRCbvx KbcCnHcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xUXrr-0000000GPC4-3wQ3; Fri, 20 Nov 2026 23:18:07 +0000 Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xUXro-0000000GPAV-0ic2; Fri, 20 Nov 2026 23:18:06 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from ) id 1xUXrc-000000002XZ-17Ii; Fri, 20 Nov 2026 23:17:52 +0000 Date: Fri, 20 Nov 2026 23:17:42 +0000 From: Daniel Golle To: Nicolas Dufresne Cc: Detlev Casanova , Ezequiel Garcia , Mauro Carvalho Chehab , Heiko Stuebner , Alex Bee , Hans Verkuil , Jonas Karlman , Sebastian Fricke , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] media: rkvdec: hevc: bound the RPS reads by the control size Message-ID: References: <6ae6d1101d3f7095d11462579a5a3313153533e6.camel@collabora.com> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6ae6d1101d3f7095d11462579a5a3313153533e6.camel@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261120_151804_785833_B0776CD3 X-CRM114-Status: GOOD ( 13.55 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "Linux-rockchip" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Nicolas, thanks for the review and sorry about the messy text. On Mon, Nov 16, 2026 at 08:49:44AM -0500, Nicolas Dufresne wrote: > Le samedi 14 novembre 2026 =E0 10:22 +0000, Daniel Golle a =E9crit=A0: > > The RPS helpers read num_short_term_ref_pic_sets elements of the > > EXT_SPS_ST_RPS control and num_long_term_ref_pics_sps elements of the > > EXT_SPS_LT_RPS control, however many elements userspace passed. > > = > = > What did you want to say? The number of RPS entries comes from the SPS control, the entries themselves from the EXT_SPS_ST_RPS/LT_RPS array controls. The driver never checks that the arrays are as long as the SPS says, so it reads past the end of what userspace passed. I will reword the message along these lines in v2. > = > > Beyond > > the passed elements they read stale entries of the control's array, > > and past its allocation once the SPS counts more sets than the control > = > More broken text, can you work a bit on your messages, be concise, precis= e, > don't get into details but into the understanding of what you are achievi= ng. The > code is precise enough. Got it. Reading it again now I understand your point, I may have been a bit too excited about my findings on a Saturday morning... _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip