opnsense-src/sys/amd64/amd64
Pedro F. Giffuni 74641f0bc6 x86: make some use of mallocarray(9).
Focus on code where we are doing multiplications within malloc(9). None of
these ire likely to overflow, however the change is still useful as some
static checkers can benefit from the allocation attributes we use for
mallocarray.

This initial sweep only covers malloc(9) calls with M_NOWAIT. No good
reason but I started doing the changes before r327796 and at that time it
was convenient to make sure the sorrounding code could handle NULL values.

X-Differential revision: https://reviews.freebsd.org/D13837
2018-01-15 21:08:22 +00:00
..
apic_vector.S revert r315959 because it causes build problems 2017-03-27 12:34:29 +00:00
atomic.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
atpic_vector.S Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
bios.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
bpf_jit_machdep.c x86: make some use of mallocarray(9). 2018-01-15 21:08:22 +00:00
bpf_jit_machdep.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
cpu_switch.S Rename COMMON_TSS_RSP0 to TSS_RSP0. 2018-01-11 12:28:08 +00:00
db_disasm.c sys: Replace zero with NULL for pointers. 2017-02-22 02:35:59 +00:00
db_interface.c Remove buggy adjustment of page tables in db_write_bytes(). 2017-03-24 17:34:55 +00:00
db_trace.c Don't access the reserved registers %dr4 and %dr5 on i386. 2017-03-17 13:49:05 +00:00
efirt_machdep.c Fix index calculation for the page table pages for efirt 1:1 map. 2017-11-28 09:34:43 +00:00
elf_machdep.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
exception.S Do not clear %RFLAGS.DF on fast syscall entry. 2018-01-11 12:54:33 +00:00
fpu.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
gdb_machdep.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
genassym.c Rename COMMON_TSS_RSP0 to TSS_RSP0. 2018-01-11 12:28:08 +00:00
in_cksum.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
initcpu.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
io.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
locore.S xen: add PV/PVH kernel entry point 2014-03-11 10:07:01 +00:00
machdep.c Move the hardware setup for fast syscalls into a common function. 2018-01-11 12:40:43 +00:00
mem.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
minidump_machdep.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
mp_machdep.c Move the hardware setup for fast syscalls into a common function. 2018-01-11 12:40:43 +00:00
mpboot.S sys/amd64: Small spelling fixes. 2016-05-03 22:13:04 +00:00
pmap.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
prof_machdep.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
ptrace_machdep.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
sigtramp.S
support.S Fix grammar. 2018-01-11 16:50:03 +00:00
sys_machdep.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
trap.c Avoid re-check of usermode condition. 2018-01-01 20:47:03 +00:00
uio_machdep.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
uma_machdep.c Implement NUMA support in uma(9) and malloc(9). Allocations from specific 2018-01-12 23:25:05 +00:00
vm_machdep.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
xen-locore.S amd64: set the correct LMA values 2015-06-26 07:12:17 +00:00