Actions
Bug #3021
opensys/dev/drm/i915/i915_gem_stolen.c:115]: (error) Signed integer overflow for expression '65535<<20'
Start date:
04/11/2017
Due date:
% Done:
0%
Estimated time:
Description
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.
Updated by ftigeot over 7 years ago
- 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.
Actions