linux_old1/drivers/reset
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
..
hisilicon reset: hi6220: Set module license so that it can be loaded 2017-05-24 10:53:41 +02:00
sti reset: sti: Use devm_kcalloc() in syscfg_reset_controller_register() 2017-05-15 08:59:08 +02:00
tegra reset: Add Tegra BPMP reset driver 2016-11-18 14:34:56 +01:00
Kconfig reset: stm32mp1: Enable stm32mp1 reset driver 2018-03-27 10:44:04 +02:00
Makefile reset: stm32mp1: Enable stm32mp1 reset driver 2018-03-27 10:44:04 +02:00
core.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
reset-a10sr.c reset: Add Altera Arria10 SR Reset Controller 2017-03-15 12:19:11 +01:00
reset-ath79.c reset: ath79: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-axs10x.c ARC: reset: introduce AXS10x reset driver 2017-09-18 18:41:27 +02:00
reset-berlin.c reset: berlin: make it explicitly non-modular 2016-10-24 10:43:40 +02:00
reset-hsdk.c ARC: reset: remove the misleading v1 suffix all over 2017-09-18 13:02:03 +02:00
reset-imx7.c reset: Add i.MX7 SRC reset driver 2017-03-15 12:18:49 +01:00
reset-lantiq.c reset: Add a reset controller driver for the Lantiq XWAY based SoCs 2017-09-04 21:19:02 +02:00
reset-lpc18xx.c reset: lpc18xx: make it explicitly non-modular 2016-10-24 10:45:38 +02:00
reset-meson.c reset: meson: enable level reset support on Meson8b 2018-02-16 15:32:09 +01:00
reset-oxnas.c reset: oxnas: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-pistachio.c reset: pistachio: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-simple.c reset: simple: Enable for ASPEED systems 2018-02-20 17:42:29 +01:00
reset-simple.h reset: socfpga: use the reset-simple driver 2017-10-18 15:51:02 +02:00
reset-stm32mp1.c reset: stm32mp1: Enable stm32mp1 reset driver 2018-03-27 10:44:04 +02:00
reset-sunxi.c reset: sunxi: use reset-simple driver 2017-10-17 15:35:24 +02:00
reset-ti-sci.c reset: Add the TI SCI reset driver 2017-06-06 09:44:17 +02:00
reset-ti-syscon.c reset: constify reset_control_ops structures 2017-01-12 11:12:07 +01:00
reset-uniphier.c reset: uniphier: fix USB clock line for LD20 2018-04-27 11:51:12 +02:00
reset-zynq.c reset: zynq: make it explicitly non-modular 2016-10-24 10:45:32 +02:00