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 26FB6606A320 for ; Tue, 1 Dec 2026 16:08:40 +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=rSvGhLML; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=X2jiVoTL DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From: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=ftr2ycWary1TDstOqYPc7cH1Xqpjd1qjMZ4MGpJeEcs=; b=rSvGhLML8k/b1D20B0zKhMmyxk /GmmNPOwQFB9XKyoHdhv5SfFiwBpRspV13a6/j7iar8aEH5M4ZOHKmJxVM//Z/E1MxcUnAwiMA/9c xIjfRAdLfqlYC6ZgvrU0EHTJOAVGTIOMXOExGWU+TOaERAqkBnW+yevAEJqLQuaTHRA/PhSWq9cw5 htgMATxu8BmwAfqg4jIRlXyuEFPqXC30wvTZzfk/Jlp19DznIAj1RCVQGRWIQHbTuquJNMIub/ThQ Bw2Fwoc2JDckZMe2GJ78i4jj4GxjFGFl5oZxuJ5EqfPoOkXnNv6fXsPij9xkYEh0DcibfDtZwbN3S MVxufBpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQOt-00000008fG3-23GJ; Tue, 01 Dec 2026 16:08:15 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQOl-00000008fCO-3RYy for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 16:08:13 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4a3517554f7so107866515e9.2 for ; Tue, 01 Dec 2026 08:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796141276; x=1796746076; darn=lists.infradead.org; h=content-type:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ftr2ycWary1TDstOqYPc7cH1Xqpjd1qjMZ4MGpJeEcs=; b=X2jiVoTLQKVxd7GX2EOX566TI2TdR3KGQAkcBQJFRVCdoYx2trZ4WaUe26yISHBEKC CSo+1eWAWLSsBq7xMxp+Jb9l/nNoDdQyR5ovlFcApUdKolgKXpPbLVcw8zHd7QPS4yiK LR3hJebyuwdomNKm8JbiEKkAXF09QpjPb+3Wm0wjOSFLOkkqyubTm60tbITibmIgaCBx RfRM0WmO4tpbaZeRsnMm517JB7sLNMY/2EqWLNbclg4Fo8qSrVBtxlG6rkoh918CeBJB nsNAzw2zVCfUvZZV4sNLDzpwnUa6+rPc7tUg/gnrvukb56jtBAb8d9PMQieWb534QVdN Z02A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796141276; x=1796746076; h=content-type:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ftr2ycWary1TDstOqYPc7cH1Xqpjd1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Jr7QVlSsBwNfbqcfQRVA0ZqLJYThsuwTI/VGn6V+Vx11gVq3eIhTgRk+c 3ucYJAoJj7fufP5EAP55A0t190+aBTFxfaWrZMHvdXg0zyrjOqN3EUmrlfV3T82zIpSCdSGRQnx FjP9P7ReqimhAarcYFS2mTcLU1WlUzMx4Jk3J7EG1eP05IAuHeqgzY43+tVSoJqThbHuQgkvUz4 mwfOMwnGhsmRWCzL9cFTuvYaeSq92wBM7aVkzPZmrm8G5FpUZjh2phbdlgOosSJWgiUrrD6Rilu HMJ9LRjbGVgNPQLLvqUm95JcDMEC7jGCJ35xWOLz54ALTAKPsIyPK5edPEY5nNCGHQGhmB1ngER Zs/x2jCD8y/nHzROAXcDO1BittAOc0b0FAMAkqydkTI2Ti1gOo4etyVqkiAqPTY X-Received: by 2002:a05:600d:6512:10b0:4bb:685e:cc41 with SMTP id 5b1f17b1804b1-4bba3e35821mr317243445e9.8.1796141275814; Tue, 01 Dec 2026 08:07:55 -0800 (PST) Received: from jernej-laptop.localnet (77-38-7-250.dynamic.telemach.net. [77.38.7.250]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8849e598sm1038567735e9.8.2026.12.01.08.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 08:07:55 -0800 (PST) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , Chen-Yu Tsai , Samuel Holland , Hans Verkuil , aiyengar1990@gmail.com Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Emmanuel Gil Peyrot , Ezequiel Garcia , Dmitry Osipenko , Nicolas Dufresne , stable@vger.kernel.org, Arun Iyengar Subject: Re: [PATCH 0/5] media: staging: cedrus: bound and check the bit reader setup Date: Tue, 01 Dec 2026 17:07:54 +0100 Message-ID: In-Reply-To: <20261201-b4-cedrus-bitreader-v1-0-678ded51faf1@gmail.com> References: <20261201-b4-cedrus-bitreader-v1-0-678ded51faf1@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_080808_068163_11CD9A65 X-CRM114-Status: GOOD ( 15.92 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, 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 Dne torek, 1. december 2026 ob 16:26:56 Srednjeevropski standardni =C4=8Das= je Arun Iyengar via B4 Relay napisal(a): > Cedrus sets up each slice with its bit reader in device_run(), with > req_queue_mutex held when called from the request queue ioctl: >=20 > - patch 1: the H.264 bit skip can wait forever, hanging every close(); > - patches 2-3: userspace bit offsets past the slice can lock up the SoC; > - patches 4-5: H.265 and VP8 ignore bit reader timeouts. Patch 4 is > Dmitry Osipenko's 2022 v1 [1], rebased. >=20 > Tested on an Orange Pi Zero 2 (H616), 7.3 based kernel, with the bit > reader stalled by holding the VE's IOMMU masters in reset. Before: the > H.264 skip spun until a VE reset, H.265 offsets past the slice locked > up the board in 2 of 3 tries, VP8 decoded until the watchdog. After: > -EINVAL or one -ETIMEDOUT within 30 ms, no lockup in 9 tries, and 42 > conformance decodes run afterwards match the control. On this base: > build only. >=20 > Developed with Claude (Anthropic) as a coding assistant; I reviewed and > tested it. Which part of stop sending patch series you didn't understand? Nothing of this will land in v7.4. Jernej >=20 > [1] https://lore.kernel.org/all/20220914150105.209484-1-dmitry.osipenko@c= ollabora.com/ >=20 > --- > Arun Iyengar (5): > media: staging: cedrus: h264: bound the wait for the bit skip > media: staging: cedrus: h264: reject a slice header larger than the= slice > media: staging: cedrus: h265: reject a slice data offset past the s= lice > media: staging: cedrus: h265: fail the job when the bit reader time= s out > media: staging: cedrus: vp8: fail the job on a bit reader timeout >=20 > drivers/staging/media/sunxi/cedrus/cedrus_h264.c | 31 +++-- > drivers/staging/media/sunxi/cedrus/cedrus_h265.c | 40 ++++-- > drivers/staging/media/sunxi/cedrus/cedrus_vp8.c | 159 +++++++++++++----= =2D----- > 3 files changed, 143 insertions(+), 87 deletions(-) > --- > base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6 > change-id: 20261128-b4-cedrus-bitreader-49a8ddfb794e >=20 > Best regards, > -- =20 > Arun Iyengar >=20 >=20 >=20