From: bugzilla-daemon@freedesktop.org Subject: [Bug 98372] UBSAN in ../drivers/gpu/drm/drm_modes.c:325:49 Date: Fri, 21 Oct 2016 19:55:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0732944106==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A63676EDB0 for ; Fri, 21 Oct 2016 19:55:30 +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 --===============0732944106== Content-Type: multipart/alternative; boundary="14770797231.60BE.3051"; charset="UTF-8" --14770797231.60BE.3051 Date: Fri, 21 Oct 2016 19:55:23 +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=3D98372 Chris Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Chris Wilson --- commit 8a5bbf327aa16025c78491266a6425807c7fbee0 Author: Chris Wilson Date: Fri Oct 21 15:15:40 2016 +0100 drm: Use u64 for intermediate dotclock calculations We have reached the era where monitor bandwidths now exceed 31bits in frequency calculations, though as we stored them in kHz units we are safe from overflow in the modelines for some time. [ 48.723720] UBSAN: Undefined behaviour in ../drivers/gpu/drm/drm_modes.c:325:49 [ 48.726943] signed integer overflow: [ 48.728503] 2240 * 1000000 cannot be represented in type 'int' Reported-by: Martin Li=C5=A1ka Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D98372 Signed-off-by: Chris Wilson Reviewed-by: Alex Deucher Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/20161021141540.26837-1-chris@c= hris-wilson.co.uk --=20 You are receiving this mail because: You are the assignee for the bug.= --14770797231.60BE.3051 Date: Fri, 21 Oct 2016 19:55:23 +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 Chris Wilson changed bug 98372<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED

Comment= # 2 on bug 98372<= /a> from Chris Wilson
commit 8a5bbf327aa16025c78491266a6425807c7fbee0
Author: Chris Wilson <ch=
ris@chris-wilson.co.uk>
Date:   Fri Oct 21 15:15:40 2016 +0100

    drm: Use u64 for intermediate dotclock calculations

    We have reached the era where monitor bandwidths now exceed 31bits in
    frequency calculations, though as we stored them in kHz units we are
    safe from overflow in the modelines for some time.

    [   48.723720] UBSAN: Undefined behaviour in
../drivers/gpu/drm/drm_modes.c:325:49
    [   48.726943] signed integer overflow:
    [   48.728503] 2240 * 1000000 cannot be represented in type 'int'

    Reported-by: Martin Li=C5=A1ka <marxin.liska@gmail.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.c=
gi?id=3D98372
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Link:
http://patchwork.freedesktop.org/patch/ms=
gid/20161021141540.26837-1-chris@chris-wilson.co.uk


You are receiving this mail because:
  • You are the assignee for the bug.
= --14770797231.60BE.3051-- --===============0732944106== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0732944106==--