From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796141278; b=TH61+40/tXqjhce/5VHTo0GvjabCaavXjEP8KfrD7QqjI0gTL6U/Im6rWxZsIGXEEdJh WN+3XZbRpD64eRUtDheOPTI/A1Y16qfTU7mH6FW1CiqaIG49vEAkZOE/aX9PWwR9WVC2f f4uAeA113U35ut98ReqKtFzQsrnZ8E+d++cwMSy+VqDmR2GH3J3+uPNrxsAThzIWRXuBj QQtWr+uD29/4pdpW9pWHeJqlpI2cV4k7SdQAb+QVM/ykyBPbZ38LMMhHY+7hKzhak/kMI sCK+b3zDaZKjhrYCmSqWVX4/wz2/1FC7E+jUs+g25aL2edYlPWxHh4Y2a/bW27Re2Xw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796141278; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type; bh=ftr2ycWary1TDstOqYPc7cH1Xqpjd1qjMZ4MGpJeEcs=; b=bowRSn00c+mdVIxtP8YorVpfG6lvMICGjxMTAB6b39i/jD42Fj1Q+sIlxhTl472ADWnI LPuxlx3Ng+DFPC/nDK3qkQSyGziCFe16LaCkp2pyqqFSsYwaoyWu68Gh7nQUkk6OC5JyE lb6sIDfoUSqoGzBG1rEF1q2MtUdajfmCQsY07MpyN0DBfOlVvptE7McwPBEaZcyEeqmwD UYUa1W6MMEaP9ebCBbHQtnJyqoqsJGsaychombSvUKl5q3u8lOhj7UXuIgK+ijxDQT1Rt /JPVEEBngIoolHgHUd/PfdeyOwEdPKRPKF7raBH3pgCdXm+QNJMUkWNquQBHSDyDYYQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Ts1l8sms; arc=none smtp.remote-ip=209.85.128.44 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98937606A322 for ; Tue, 1 Dec 2026 16:07:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 98937606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Ts1l8sms Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a3517554f7so107866495e9.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.linux.dev; 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=Ts1l8smsClh4Mxc33uPjz9J4utyxVaTXlZRJccQ9iiwsDQ9IjCOsNvYkEo62rp7ygw dBgiNT0iIKMYDOLiwOAQQSKhFNapTdYQHB4KSBJAB4k4UZhl3z9lzy9zleu7PsxsDiND QYssvXzYSVTk6aw7TjqW3VWRtAJmMhmsvsWseQZFleuGVkAtWNdFsZN/jY3Lx7glEaDr DyO7SxDEqlSrZ4ppvgqUCECfeDiyatdJPOY7yrKoO/Nj8yWNd/n/mVjwqZTWsIspHpUr dmgtRrAtiRtovo8TZ4waU0htUiC8f5/EMhd0k/8RoDUPToLYW2ecTFkLgw4Vcl2pHA8w OdcA== 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=ftr2ycWary1TDstOqYPc7cH1Xqpjd1qjMZ4MGpJeEcs=; b=SU3/CaNRPsxXtiNmVBA9HBJzM6qvVyLhe6Y/h9MkPFAIqOSPq2XTuUnf+7TdzNWN5w JrQVb4BS11Azs+Y7ONT6wLpJv2m3MliFVfRVezUBgvBkNJ7M907h5rMhjozKJeZORlW2 UsGEa0iBSWW1oyXI4YT8EL3fVZmHYd2NSmr9hzj9H4Rb0VmrpYODAfi6eCjdDHzm+fvF alYean5tPc/Op1F2D+NIRa1ETz3YdGZiEybdVB1W9D7MLg5gIkPbRtPOZ4+WgcvuHeWI alC3bFwHKHCO+wolg1uRtYFB6wVzzyzFWilIEgWIOYF1vf6x5hdwsBtQDOcSLIwVf+cz fuJw== X-Forwarded-Encrypted: i=1; AL+hErFp25NKNB/0jzD7sCWBv3TmfIEew6vtj0NwEvINrMeoa5en5r3fcmdH58sgkCRnynb76ncnb7QXsVIbfA==@lists.linux.dev X-Gm-Message-State: APuU4Z8NtKKQoU6+TDcr92ClxePBgHXg17wizNjMCS0Lkn9CwMvySv5d V8flgSslLGLeHSBDd/CBqkEjBg+u/q1LvAvdJfJC8ApFcQ7dPSgWMIwT X-Gm-Gg: AZFdTZft6hir9R0bvo+6PtuxpeTQ0Z0ULxMKb+yXa5P5uzt1j0oUo52MoXP9x3dlGjy qOl5s+BZk++qrqJZwoQmthws6tNE3DLHWv/byfNIheyFjJn0hcY6MfFK5qPUFkwEh9es+760VT1 g8T0ExYKW02xPP2xE8FFEi/2H1qx/HOtMEOD/e/Tu10v9m9l4oxey367q9NsW9y97vhVSAxoWCo InqGcD2i08j5O8uvf+8yN6sbIdo26R0iGtjKI1d57Z0gJDvzbblUH8Sr9nVRWKXHxQo9U4p3/9a HMzJi1KrZfUgrCgK3kBWov5gU0fJyfVUIr/UrIvRxhZDAf6EcAhT4bVV9fY+s0x5f/H/4AILa/D vojlD+EKvLKBCNNI9fesC6goMg+ogRi9PMXq6Jto+Hs/Q1xkWG/jueOwZX8GRjej7VYHQoQsAMh WxcVOGG5wEkP6oLlm4+csFgAcS7/5q1cfHCIwFqiX6UTcsHBxnniDWRgJOfKNYu9i/yKZRHeNvL XIwhsrrQYzB1x/Qp1QLlNIxU0SssWo22ke5gyNVTitZrU28gjQyld8muym/kUTb5KsdJsIVAXd5 ui4ozyNkTZNH0z0Lk9bqxmJhEIukEp7xwvSWaOLgOgwcCyAXzGgA0HXnB8ixtCM/zY3Yl3797zh cNVyuRmLn9HkoOM2wK3VRykZUo4m8qV67hfb/JmZOzF0UrhgzwGSojMS3t79SDLy4a4/W7mOLff RNiQI0hJ5coz2EHhbrIocZ8DEpxWGe5/KUIesEE3gW0yA20Qk5j1vWzsZZq+P2I+eK7fwlk7JVl mtJzIJ9c6NIy0Dz/2I8q5G3Q2fX7xLFIRIXSCLlI98+A7YGAhRbvvjpYVdm0joB 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-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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