aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/syscalls/Makefile
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-04-13 12:45:03 +0300
committerIngo Molnar <mingo@kernel.org>2014-04-14 08:50:56 +0200
commit86e587623a0ca8426267dad8d3eaebd6fc2d00f1 (patch)
tree9e383ae14c3ab264719ca02f4cd14a1dd0ca6fba /arch/x86/syscalls/Makefile
parentx86/platform: Fix "make O=dir kvmconfig" (diff)
downloadlinux-dev-86e587623a0ca8426267dad8d3eaebd6fc2d00f1.tar.xz
linux-dev-86e587623a0ca8426267dad8d3eaebd6fc2d00f1.zip
x86/gpu: Fix sign extension issue in Intel graphics stolen memory quirks
Have the KB(),MB(),GB() macros produce unsigned longs to avoid unintended sign extension issues with the gen2 memory size detection. What happens is first the uint8_t returned by read_pci_config_byte() gets promoted to an int which gets multiplied by another int from the MB() macro, and finally the result gets sign extended to size_t. Although this shouldn't be a problem in practice as all affected gen2 platforms are 32bit AFAIK, so size_t will be 32 bits. Reported-by: Bjorn Helgaas <bhelgaas@google.com> Suggested-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/1397382303-17525-1-git-send-email-ville.syrjala@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/syscalls/Makefile')
0 files changed, 0 insertions, 0 deletions