acrn-hypervisor/hypervisor/include/arch/x86
Madeeha Javed a257f2fadc HV: Fixes index out of bounds for addressing irq.
NR_MAX_IRQS is defined as 272 and IRQ_INVALID as 273 which implies
that 272 is a valid irq number. In this case, an illegal access can
occur at run time when irq_desc_array[] or irq_count[] is accessed
with index 272. This fix stops the illegal access by renaming
NR_MAX_IRQS to NR_IRQS and then places proper conditions for range
checks. If the index is >= NR_IRQS, then index is invalid otherwise
its considered valid for accessing irq arrays. IRQ_INVALID definition
is also changed to 0xffffffffU to indicate maximum unsigned value.

Signed-off-by: Madeeha Javed <madeeha_javed@mentor.com>
2018-07-19 11:06:42 +08:00
..
guest HV:treewide:Add exec_vmread32 and exec_vmwrite32 functions 2018-07-18 12:31:42 +08:00
apicreg.h HV: vioapic: cleaning up integral-type-related violations 2018-07-17 15:37:45 +08:00
assign.h HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
cpu.h HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
cpufeatures.h HV:CPU: Add 'U/UL' for unsigned const value 2018-07-09 10:27:21 +08:00
cpuid.h HV:CPU: Add 'U/UL' for constant value in CPU module 2018-07-10 10:28:33 +08:00
gdt.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
hob_parse.h HV: Parse SeedList HOB 2018-06-07 09:55:29 +08:00
host_pm.h hv: trap vm0 write/read pm1a/pm1b registers 2018-06-29 00:50:01 +08:00
hv_arch.h hv: implement lowlevel S3 enter/wakeup 2018-06-29 00:50:01 +08:00
idt.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
io.h HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
ioapic.h HV: ioapic: unify the access pattern to RTEs 2018-07-17 15:37:45 +08:00
irq.h HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
lapic.h hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
mmu.h HV: vlapic: save complex expressions to local variables 2018-07-13 10:02:44 +08:00
msr.h [REVERT-ME]: disable turbo mode 2018-07-10 16:37:40 +08:00
mtrr.h hv: basic MTRR virtualization 2018-06-08 12:06:15 +08:00
multiboot.h HV: treewide: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
per_cpu.h HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
reboot.h hv: Add reboot shell command 2018-05-18 16:38:40 +08:00
softirq.h HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
timer.h HV: treewide: enforce unsignedness of pcpu_id 2018-06-21 16:59:21 +08:00
trusty.h [REVERT-ME]:handle discontinuous hpa for trusty 2018-07-11 11:11:24 +08:00
vmexit.h HV: treewide: drop debug-only helpers in release build 2018-07-02 14:35:39 +08:00
vmx.h HV:treewide:Update exec_vmread/exec_vmwrite and exec_vmread64/exec_vmwrite64 2018-07-18 12:31:42 +08:00
vtd.h hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
zeropage.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00