freebsd-nq/sys
Pedro F. Giffuni 0cee6dcdb0 misc geom and gnu: 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.

Differential revision: https://reviews.freebsd.org/D13837
2018-01-15 21:23:16 +00:00
..
amd64 x86: make some use of mallocarray(9). 2018-01-15 21:08:22 +00:00
arm arm: make some use of mallocarray(9). 2018-01-15 21:09:58 +00:00
arm64 arm: make some use of mallocarray(9). 2018-01-15 21:09:58 +00:00
bsm
cam cam: make some use of mallocarray(9). 2018-01-15 21:15:25 +00:00
cddl Use the thread's ucred struct when fetching jid or jailname. 2018-01-14 17:55:40 +00:00
compat ndis: make some use of mallocarray(9). 2018-01-15 21:11:38 +00:00
conf Move VM_NUMA_ALLOC and DEVICE_NUMA under the single global config option NUMA. 2018-01-14 03:36:03 +00:00
contrib zstd: Use mallocarray(9) for calloc macro. 2018-01-13 19:02:51 +00:00
crypto Merge ^/head r327624 through r327885. 2018-01-12 18:23:35 +00:00
ddb Implement 'domainset', a cpuset based NUMA policy mechanism. This allows 2018-01-12 22:48:23 +00:00
dev When re-evaluating cpu_features, also re-print CPU identification. 2018-01-14 12:33:05 +00:00
dts Add a rudimentary PWM driver for the RaspberryPi. 2018-01-14 20:36:21 +00:00
fs nfsclient: make some use of mallocarray(9). 2018-01-15 21:14:56 +00:00
gdb
geom misc geom and gnu: make some use of mallocarray(9). 2018-01-15 21:23:16 +00:00
gnu misc geom and gnu: make some use of mallocarray(9). 2018-01-15 21:23:16 +00:00
i386 x86: make some use of mallocarray(9). 2018-01-15 21:08:22 +00:00
isa On further testing on actual machines with this hardware, we should 2017-12-30 08:16:31 +00:00
kern kern: make some use of mallocarray(9). 2018-01-15 21:18:04 +00:00
kgssapi
libkern SPDX: fix wrong license ID tag in libkern. 2017-12-28 01:20:30 +00:00
mips mips: make some use of mallocarray(9). 2018-01-15 21:13:30 +00:00
modules Add a rudimentary PWM driver for the RaspberryPi. 2018-01-14 20:36:21 +00:00
net net*: make some use of mallocarray(9). 2018-01-15 21:21:51 +00:00
net80211 net80211: sanitize input for ieee80211_output() 2017-12-30 00:40:34 +00:00
netgraph netgraph: make some use of mallocarray(9). 2018-01-15 21:19:21 +00:00
netinet libalias: small memory allocation cleanups. 2018-01-12 23:12:30 +00:00
netinet6 net*: make some use of mallocarray(9). 2018-01-15 21:21:51 +00:00
netipsec Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
netpfil Implement 'domainset', a cpuset based NUMA policy mechanism. This allows 2018-01-12 22:48:23 +00:00
netsmb
nfs Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
nfsclient
nfsserver
nlm Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
ofed
opencrypto Change the type of 'crp_opaque' from caddr_t to void *. 2018-01-11 18:09:24 +00:00
powerpc powerpc: make some use of mallocarray(9). 2018-01-15 21:10:40 +00:00
riscv Implement NUMA support in uma(9) and malloc(9). Allocations from specific 2018-01-12 23:25:05 +00:00
rpc Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
security Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
sparc64 Implement NUMA support in uma(9) and malloc(9). Allocations from specific 2018-01-12 23:25:05 +00:00
sys Add RTC clock conversions for BCD values, with non-panic validation. 2018-01-14 17:01:37 +00:00
teken
tests
tools embed_mfs: correctly test grep return value 2018-01-03 19:22:10 +00:00
ufs Softlink inodes can own buffers with dependencies. 2018-01-11 13:37:45 +00:00
vm Move VM_NUMA_ALLOC and DEVICE_NUMA under the single global config option NUMA. 2018-01-14 03:36:03 +00:00
x86 x86: make some use of mallocarray(9). 2018-01-15 21:08:22 +00:00
xdr
xen
Makefile