From: bugzilla-daemon@freedesktop.org Subject: [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le Date: Wed, 19 Jun 2019 13:30:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2139994670==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 7FF696E409 for ; Wed, 19 Jun 2019 13:30:39 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2139994670== Content-Type: multipart/alternative; boundary="15609510392.e7DBAA.16773" Content-Transfer-Encoding: 7bit --15609510392.e7DBAA.16773 Date: Wed, 19 Jun 2019 13:30:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110702 --- Comment #11 from Pierre-Eric Pelloux-Prayer --- (In reply to Christian K=C3=B6nig from comment #10) > (In reply to Pierre-Eric Pelloux-Prayer from comment #9) > > The driver fails when trying to allocate a buffer for this video with a > > ENOMEM error (the requested size is 3 GB). >=20 > Well that strongly sounds like we miscalculated the necessary size somewh= ere. Indeed. The size is computed by the `calc_ctx_size_h265_main10()` function. I'm not familiar enough with hevc to fix it though (but the calculation see= ms to overflow because context_buffer_size_per_ctb_row is 1GB and is multiplie= d by max_references (=3D 23) and the result is stored in an unsigned int). --=20 You are receiving this mail because: You are the assignee for the bug.= --15609510392.e7DBAA.16773 Date: Wed, 19 Jun 2019 13:30:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 11 on bug 11070= 2 from Pierre= -Eric Pelloux-Prayer
(In reply to Christian K=C3=B6nig from comment #10)
> (In reply to Pierre-Eric Pelloux-Prayer from comment #9)
> > The driver fails when trying to allocate a buffer for this video =
with a
> > ENOMEM error (the requested size is 3 GB).
>=20
> Well that strongly sounds like we miscalculated the necessary size som=
ewhere.

Indeed.
The size is computed by the `calc_ctx_size_h265_main10()` function.

I'm not familiar enough with hevc to fix it though (but the calculation see=
ms
to overflow because context_buffer_size_per_ctb_row is 1GB and is multiplie=
d by
max_references (=3D 23) and the result is stored in an unsigned int).


You are receiving this mail because:
  • You are the assignee for the bug.
= --15609510392.e7DBAA.16773-- --===============2139994670== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============2139994670==--