[DragonFlyBSD - Bug #3021] (In Progress) sys/dev/drm/i915/i915_gem_stolen.c:115]: (error) Signed integer overflow for expression '65535<<20'

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Apr 11 12:46:14 PDT 2017


Issue #3021 has been updated by ftigeot.

Status changed from New to In Progress

Thanks for the report.

This code is actually from Linux 4.7.10 and the bug has apparently been fixed in Linux commit aac440ff22a27155ae08f4d0fd6ac2971bfc5f3d present in Linux 4.9.

I don't think it is currently necessary to create a DragonFly-specific fix; I intend to import newer drm/i915 code from upstream, which
will fix this issue as a side effect.

----------------------------------------
Bug #3021: sys/dev/drm/i915/i915_gem_stolen.c:115]: (error) Signed integer overflow for expression '65535<<20'
http://bugs.dragonflybsd.org/issues/3021#change-13126

* Author: dcb
* Status: In Progress
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Source code is

        base = bsm & BSM_MASK;

but

$ fgrep BSM_MASK `find dragonfly/sys/dev -name \*.h -print` 
dragonfly/sys/dev/drm/i915/i915_reg.h:#define   BSM_MASK (0xFFFF << 20)
$

Macro BSM_MASK seems to be 36 bits wide, which won't fit into a 32 bit int.




-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list