acrn-hypervisor/hypervisor/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
..
configs
debug HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
guest HV: instr_emul: Replace ASSERT/panic with pr_err 2018-07-18 12:32:28 +08:00
assign.c HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
cpu_primary.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
cpu_state_tbl.c HV:CPU: Add 'U/UL' for unsigned const value 2018-07-09 10:27:21 +08:00
cpu.c HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
cpuid.c HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
ept.c HV:treewide:Update exec_vmread/exec_vmwrite and exec_vmread64/exec_vmwrite64 2018-07-18 12:31:42 +08:00
gdt.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
idt.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
io.c HV: coding style cleanup for TRACE_2L & TRACE_4I usage 2018-07-16 10:32:14 +08:00
ioapic.c HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
irq.c HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
Kconfig HV: build: make relocation-related code configurable 2018-07-11 19:18:26 +08:00
lapic.c hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
mmu.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
mtrr.c HV:Treewide:Update the type of vcpu id as uint16_t 2018-07-04 14:28:52 +08:00
notify.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
pm.c HV: pm: cleanup for misra integral type violations 2018-07-12 17:31:11 +08:00
retpoline-thunk.S
softirq.c HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
timer.c HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
trampoline.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
trusty2.c [REVERT-ME]:handle discontinuous hpa for trusty 2018-07-11 11:11:24 +08:00
trusty.c HV:treewide:Update exec_vmread/exec_vmwrite and exec_vmread64/exec_vmwrite64 2018-07-18 12:31:42 +08:00
virq.c HV:treewide:Add exec_vmread32 and exec_vmwrite32 functions 2018-07-18 12:31:42 +08:00
vmexit.c HV:treewide:Add exec_vmread32 and exec_vmwrite32 functions 2018-07-18 12:31:42 +08:00
vmx_asm.S HV:CPU:Constant values replace with CPU MACRO 2018-07-09 09:24:56 +08:00
vmx.c HV:treewide:Update exec_vmread/exec_vmwrite and exec_vmread64/exec_vmwrite64 2018-07-18 12:31:42 +08:00
vtd.c hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
wakeup.S HV:CPU:Fix a mistake introduced by MARCO replacing patch 2018-07-13 11:27:56 +08:00