freebsd-skq/sys
Conrad Meyer c02fc9607a mallocarray(9): panic if the requested allocation would overflow
Additionally, move the overflow check logic out to WOULD_OVERFLOW() for
consumers to have a common means of testing for overflowing allocations.
WOULD_OVERFLOW() should be a secondary check -- on 64-bit platforms, just
because an allocation won't overflow size_t does not mean it is a sane size
to request.  Callers should be imposing reasonable allocation limits far,
far, below overflow.

Discussed with:	emaste, jhb, kp
Sponsored by:	Dell EMC Isilon
2018-01-10 21:49:45 +00:00
..
amd64 vmm/svm: contigmalloc of the whole svm_softc is excessive 2018-01-09 14:22:18 +00:00
arm aw_sid(4): Add support for Allwinner H3 2018-01-07 04:59:28 +00:00
arm64 Add a framework to install CPU errata on arm64. Each erratum can encode 2018-01-09 14:33:05 +00:00
bsm sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
cam Release the held refcount on the probe periph when probing is 2018-01-09 21:24:05 +00:00
cddl zfs_mount: restore a bit of ifdef-out illumos code 2018-01-09 13:43:04 +00:00
compat linuxkpi: Simplify kmalloc_array. 2018-01-10 20:50:06 +00:00
conf Include ffsll() on riscv kernels. 2018-01-10 17:36:43 +00:00
contrib Finally, fix Zstd kernel build on MIPS and RISC-V 2018-01-10 06:30:59 +00:00
crypto sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ddb Generalize the gzio API. 2018-01-08 21:27:41 +00:00
dev dev/bxe: make use of mallocarray(9). 2018-01-10 20:05:19 +00:00
dts dts: arm: Remove imx6 related dts 2017-12-04 13:28:56 +00:00
fs Make nullfs properly report MNT_AUTOMOUNTED set on the nullfs mount itself, 2018-01-10 17:51:02 +00:00
gdb sys/gdb: further adoption of SPDX licensing ID tags. 2017-11-27 15:16:59 +00:00
geom Fix handling of read errors during mirror synchronization. 2018-01-10 19:37:21 +00:00
gnu Introduce bwn(4) support for the bhnd(4) bus. 2017-12-02 02:21:27 +00:00
i386 inittodr(0) actually sets the time, so there's no need to call 2018-01-10 17:25:08 +00:00
isa On further testing on actual machines with this hardware, we should 2017-12-30 08:16:31 +00:00
kern mallocarray(9): panic if the requested allocation would overflow 2018-01-10 21:49:45 +00:00
kgssapi sys/kgssapi: general adoption of SPDX licensing ID tags. 2017-11-27 15:49:00 +00:00
libkern SPDX: fix wrong license ID tag in libkern. 2017-12-28 01:20:30 +00:00
mips Set the 'FR' bit in the status register for N32 kernels. 2018-01-10 21:08:43 +00:00
modules Add missing file to gpiobus module 2018-01-07 20:28:17 +00:00
net Disabled the use of flowid for lagg by default 2018-01-04 20:05:47 +00:00
net80211 net80211: sanitize input for ieee80211_output() 2017-12-30 00:40:34 +00:00
netgraph sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netinet Correct the comment describing badrs which is bad router solicitiation, 2017-12-29 07:23:18 +00:00
netinet6 Fix some typos. 2017-12-28 20:40:56 +00:00
netipsec Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
netpfil pf: Avoid integer overflow issues by using mallocarray() iso. malloc() 2018-01-07 13:35:15 +00:00
netsmb sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfs Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
nfsclient sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfsserver sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nlm Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
ofed sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
opencrypto Fix uninitialized crp_retw_id when using asynchronous crypto drivers 2018-01-08 13:43:12 +00:00
powerpc Add XHCI support to powerpc64 GENERIC. This is useful to get input devices 2018-01-09 19:41:10 +00:00
riscv Use the TSLOG framework to record entry/exit timestamps for DELAY and 2017-12-31 09:24:41 +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 Chase r327432... sparc64 clock.c now needs to include sys/tslog.h 2017-12-31 20:30:51 +00:00
sys mallocarray(9): panic if the requested allocation would overflow 2018-01-10 21:49:45 +00:00
teken sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
tests
tools embed_mfs: correctly test grep return value 2018-01-03 19:22:10 +00:00
ufs Use mallocarray(9) in dirhash. 2018-01-10 19:45:38 +00:00
vm Restructure swapout tests after vm map locking was removed. 2018-01-04 18:14:58 +00:00
x86 Make it possible to re-evaluate cpu_features. 2018-01-05 21:06:19 +00:00
xdr sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
xen sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
Makefile Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00