• Linus Torvalds's avatar
    Merge tag 'overflow-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 28576760
    Linus Torvalds authored
    Pull overflow updates from Kees Cook:
     "This adds the new overflow checking helpers and adds them to the
      2-factor argument allocators. And this adds the saturating size
      helpers and does a treewide replacement for the struct_size() usage.
      Additionally this adds the overflow testing modules to make sure
      everything works.
    
      I'm still working on the treewide replacements for allocators with
      "simple" multiplied arguments:
    
         *alloc(a * b, ...) -> *alloc_array(a, b, ...)
    
      and
    
         *zalloc(a * b, ...) -> *calloc(a, b, ...)
    
      as well as the more complex cases, but that's separable from this
      portion of the series. I expect to have the rest sent before -rc1
      closes; there are a lot of messy cases to clean up.
    
      Summary:
    
       - Introduce arithmetic overflow test helper functions (Rasmus)
    
       - Use overflow helpers in 2-factor allocators (Kees, Rasmus)
    
       - Introduce overflow test module (Rasmus, Kees)
    
       - Introduce saturating size helper functions (Matthew, Kees)
    
       - Treewide use of struct_size() for allocators (Kees)"
    
    * tag 'overflow-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      treewide: Use struct_size() for devm_kmalloc() and friends
      treewide: Use struct_size() for vmalloc()-family
      treewide: Use struct_size() for kmalloc()-family
      device: Use overflow helpers for devm_kmalloc()
      mm: Use overflow helpers in kvmalloc()
      mm: Use overflow helpers in kmalloc_array*()
      test_overflow: Add memory allocation overflow tests
      overflow.h: Add allocation size calculation helpers
      test_overflow: Report test failures
      test_overflow: macrofy some more, do more tests for free
      lib: add runtime test of check_*_overflow functions
      compiler.h: enable builtin overflow checkers and add fallback code
    28576760
Name
Last commit
Last update
..
bestcomm Loading commit data...
dw Loading commit data...
dw-axi-dmac Loading commit data...
hsu Loading commit data...
ioat Loading commit data...
ipu Loading commit data...
mediatek Loading commit data...
ppc4xx Loading commit data...
qcom Loading commit data...
sh Loading commit data...
xilinx Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
TODO Loading commit data...
acpi-dma.c Loading commit data...
altera-msgdma.c Loading commit data...
amba-pl08x.c Loading commit data...
at_hdmac.c Loading commit data...
at_hdmac_regs.h Loading commit data...
at_xdmac.c Loading commit data...
bcm-sba-raid.c Loading commit data...
bcm2835-dma.c Loading commit data...
coh901318.c Loading commit data...
coh901318.h Loading commit data...
coh901318_lli.c Loading commit data...
cppi41.c Loading commit data...
dma-axi-dmac.c Loading commit data...
dma-jz4740.c Loading commit data...
dma-jz4780.c Loading commit data...
dmaengine.c Loading commit data...
dmaengine.h Loading commit data...
dmatest.c Loading commit data...
edma.c Loading commit data...
ep93xx_dma.c Loading commit data...
fsl-edma.c Loading commit data...
fsl_raid.c Loading commit data...
fsl_raid.h Loading commit data...
fsldma.c Loading commit data...
fsldma.h Loading commit data...
idma64.c Loading commit data...
idma64.h Loading commit data...
img-mdc-dma.c Loading commit data...
imx-dma.c Loading commit data...
imx-sdma.c Loading commit data...
iop-adma.c Loading commit data...
k3dma.c Loading commit data...
lpc18xx-dmamux.c Loading commit data...
mic_x100_dma.c Loading commit data...
mic_x100_dma.h Loading commit data...
mmp_pdma.c Loading commit data...
mmp_tdma.c Loading commit data...
moxart-dma.c Loading commit data...
mpc512x_dma.c Loading commit data...
mv_xor.c Loading commit data...
mv_xor.h Loading commit data...
mv_xor_v2.c Loading commit data...
mxs-dma.c Loading commit data...
nbpfaxi.c Loading commit data...
of-dma.c Loading commit data...
omap-dma.c Loading commit data...
pch_dma.c Loading commit data...
pl330.c Loading commit data...
pxa_dma.c Loading commit data...
s3c24xx-dma.c Loading commit data...
sa11x0-dma.c Loading commit data...
sirf-dma.c Loading commit data...
sprd-dma.c Loading commit data...
st_fdma.c Loading commit data...
st_fdma.h Loading commit data...
ste_dma40.c Loading commit data...
ste_dma40_ll.c Loading commit data...
ste_dma40_ll.h Loading commit data...
stm32-dma.c Loading commit data...
stm32-dmamux.c Loading commit data...
stm32-mdma.c Loading commit data...
sun4i-dma.c Loading commit data...
sun6i-dma.c Loading commit data...
tegra20-apb-dma.c Loading commit data...
tegra210-adma.c Loading commit data...
ti-dma-crossbar.c Loading commit data...
timb_dma.c Loading commit data...
txx9dmac.c Loading commit data...
txx9dmac.h Loading commit data...
virt-dma.c Loading commit data...
virt-dma.h Loading commit data...
xgene-dma.c Loading commit data...
zx_dma.c Loading commit data...