android_kernel_motorola_sm6375/drivers/gpu
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nick Lopez acc887ba88 drm/nouveau: fix off by one in BIOS boundary checking
commit 1b777d4d9e383d2744fc9b3a09af6ec1893c8b1a upstream.

Bounds checking when parsing init scripts embedded in the BIOS reject
access to the last byte. This causes driver initialization to fail on
Apple eMac's with GeForce 2 MX GPUs, leaving the system with no working
console.

This is probably only seen on OpenFirmware machines like PowerPC Macs
because the BIOS image provided by OF is only the used parts of the ROM,
not a power-of-two blocks read from PCI directly so PCs always have
empty bytes at the end that are never accessed.

Signed-off-by: Nick Lopez <[email protected]>
Fixes: 4d4e9907ff ("drm/nouveau/bios: guard against out-of-bounds accesses to image")
Cc: <[email protected]> # v4.10+
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-02-08 18:24:28 +01:00
..
drm drm/nouveau: fix off by one in BIOS boundary checking 2022-02-08 18:24:28 +01:00
host1x
ipu-v3 gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats 2021-09-12 08:56:39 +02:00
vga
Makefile