linux/drivers/staging
Linus Torvalds 2857676045 - 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)
 -----BEGIN PGP SIGNATURE-----
 Comment: Kees Cook <kees@outflux.net>
 
 iQJKBAABCgA0FiEEpcP2jyKd1g9yPm4TiXL039xtwCYFAlsYJ1gWHGtlZXNjb29r
 QGNocm9taXVtLm9yZwAKCRCJcvTf3G3AJlCTEACwdEeriAd2VwxknnsstojGD/3g
 8TTFA19vSu4Gxa6WiDkjGoSmIlfhXTlZo1Nlmencv16ytSvIVDNLUIB3uDxUIv1J
 2+dyHML9JpXYHHR7zLXXnGFJL0wazqjbsD3NYQgXqmun7EVVYnOsAlBZ7h/Lwiej
 jzEJd8DaHT3TA586uD3uggiFvQU0yVyvkDCDONIytmQx+BdtGdg9TYCzkBJaXuDZ
 YIthyKDvxIw5nh/UaG3L+SKo73tUr371uAWgAfqoaGQQCWe+mxnWL4HkCKsjFzZL
 u9ouxxF/n6pij3E8n6rb0i2fCzlsTDdDF+aqV1rQ4I4hVXCFPpHUZgjDPvBWbj7A
 m6AfRHVNnOgI8HGKqBGOfViV+2kCHlYeQh3pPW33dWzy/4d/uq9NIHKxE63LH+S4
 bY3oO2ela8oxRyvEgXLjqmRYGW1LB/ZU7FS6Rkx2gRzo4k8Rv+8K/KzUHfFVRX61
 jEbiPLzko0xL9D53kcEn0c+BhofK5jgeSWxItdmfuKjLTW4jWhLRlU+bcUXb6kSS
 S3G6aF+L+foSUwoq63AS8QxCuabuhreJSB+BmcGUyjthCbK/0WjXYC6W/IJiRfBa
 3ZTxBC/2vP3uq/AGRNh5YZoxHL8mSxDfn62F+2cqlJTTKR/O+KyDb1cusyvk3H04
 KCDVLYPxwQQqK1Mqig==
 =/3L8
 -----END PGP SIGNATURE-----

Merge tag 'overflow-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

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
2018-06-06 17:27:14 -07:00
..
android
board
clocking-wizard
comedi Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2018-06-04 13:57:43 -07:00
dgnc
emxx_udc
fbtft
fsl-dpaa2 staging: fsl-dpaa2/eth: Use debug level for message 2018-03-23 16:42:27 +01:00
fsl-mc bus: fsl-mc: change mc_command in fsl_mc_command 2018-03-23 15:52:48 +01:00
fwserial tty: replace ->proc_fops with ->proc_show 2018-05-16 07:24:30 +02:00
gdm724x
goldfish
greybus treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
gs_fpgaboot
iio Staging/IIO patches for 4.17-rc1 2018-04-04 18:56:27 -07:00
ipx Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2018-06-04 13:57:43 -07:00
ks7010 staging: ks7010: Remove unused member 'reg_net' from 'ks_wlan_private'. 2018-03-29 11:50:40 +02:00
lustre page cache: use xa_lock 2018-04-11 10:28:39 -07:00
media media: imx-media-csi: Fix inconsistent IS_ERR and PTR_ERR 2018-05-04 06:21:06 -04:00
most
mt29f_spinand MTD changes: 2018-04-06 12:15:41 -07:00
mt7621-dma staging: mt7621-dma: Fixing parenthesis alignment 2018-03-23 16:00:18 +01:00
mt7621-dts staging: mt7621-dts: Replace spaces with tabs in indentation 2018-03-29 11:52:25 +02:00
mt7621-eth staging: mt7621-eth: fix spelling mistake: "devictree" -> "devicetree" 2018-03-22 18:31:04 +01:00
mt7621-gpio staging: mt7621-gpio: mt7621: make symbol gc_map static 2018-03-22 18:31:04 +01:00
mt7621-mmc
mt7621-pci
mt7621-pinctrl
mt7621-spi
ncpfs ncp_lookup(): use d_splice_alias() 2018-05-22 14:28:01 -04:00
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433 staging: pi433: cleanup local variable 2018-03-22 18:27:42 +01:00
rtl8188eu headers: untangle kmemleak.h from mm.h 2018-04-05 21:36:27 -07:00
rtl8192e drivers: staging: rtl8192e: fixed a space coding style issue 2018-03-29 11:54:38 +02:00
rtl8192u staging/rtl8192u: simplify procfs code 2018-05-16 07:24:30 +02:00
rtl8712
rtl8723bs staging: rtl8723bs: Remove yield call, replace with cond_resched() 2018-03-29 12:00:15 +02:00
rtlwifi headers: untangle kmemleak.h from mm.h 2018-04-05 21:36:27 -07:00
rts5208
skein
sm750fb
speakup Staging/IIO patches for 4.17-rc1 2018-04-04 18:56:27 -07:00
typec staging: typec: rt1711h typec chip driver 2018-04-22 16:08:25 +02:00
unisys
vboxvideo staging/vboxvideo: Use gem_free_object_unlocked 2018-03-28 17:07:36 +02:00
vc04_services staging: bcm2835-audio: Release resources on module_exit() 2018-03-29 11:54:38 +02:00
vme staging: vme: vme_user: Fix some error handling paths in 'vme_user_probe()' 2018-03-23 15:55:21 +01:00
vt6655 staging: vt6655: Delete unused typedef enum _chip_type 2018-03-28 13:57:44 +02:00
vt6656
wilc1000 staging: wilc1000: fix NULL pointer exception in host_int_parse_assoc_resp_info() 2018-04-23 15:57:38 +02:00
wlan-ng
xgifb Staging: xgifb: XGI_main_26.c: Refactored the function 2018-03-22 18:29:50 +01:00
Kconfig
Makefile