freebsd-dev/sys/powerpc/ofw
Leandro Lupori f2c7768cce [PPC] Avoid underflows in NUMA domains
On POWER8 systems with only one memory domain, the "ibm,associativity"
number that corresponds to it is 0, unlike POWER9 systems with two
or more domains, in which the minimum value is 1.

In POWER8 case, subtracting 1 causes an underflow on the unsigned domain
variable and a subsequent index out-of-bounds access.

Reviewed by:	jhibbits
Tested by:	bdragon, luporl
2019-10-22 18:28:58 +00:00
..
ofw_initrd.c [PPC64] Fix ofw_initrd 2019-06-11 11:16:41 +00:00
ofw_machdep.c [PPC] Avoid underflows in NUMA domains 2019-10-22 18:28:58 +00:00
ofw_pcib_pci.c Sprinkle EARLY_DRIVER_MODULE around the tree 2018-12-04 04:55:49 +00:00
ofw_pcibus.c [PPC] Avoid underflows in NUMA domains 2019-10-22 18:28:58 +00:00
ofw_pcibus.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ofw_real.c powerpc/ofw: Fix malloc inside lock 2018-04-08 16:43:56 +00:00
ofw_syscons.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ofw_syscons.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
ofwcall32.S powerpc: Get 32-bit AIM building with secure-PLT 2019-08-05 01:37:18 +00:00
ofwcall64.S powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
openpic_ofw.c powerpc: Bind IRQs to only one interrupt on QorIQ SoCs 2019-02-06 03:52:14 +00:00
rtas.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00