All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: Remove VLA usage from skcipher
@ 2018-09-04 18:16 ` Kees Cook
  0 siblings, 0 replies; 54+ messages in thread
From: Kees Cook @ 2018-09-04 18:16 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Kees Cook, Eric Biggers, Ard Biesheuvel, Gilad Ben-Yossef,
	Antoine Tenart, Boris Brezillon, Arnaud Ebalard, Corentin Labbe,
	Maxime Ripard, Chen-Yu Tsai, Christian Lamparter,
	Philippe Ombredanne, Jonathan Cameron, linux-crypto,
	linux-kernel, linux-arm-kernel

This removes VLAs[1] from SKCIPHER_REQUEST_ON_STACK by making it possible
for crypto_skcipher_set_reqsize() to fail. Callers are updated to handle
the error condition.

-Kees

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Kees Cook (2):
  crypto: skcipher: Allow crypto_skcipher_set_reqsize() to fail
  crypto: skcipher: Remove VLA usage for SKCIPHER_REQUEST_ON_STACK

 crypto/cryptd.c                                |  7 +++++--
 crypto/ctr.c                                   |  7 +++++--
 crypto/cts.c                                   |  7 +++++--
 crypto/lrw.c                                   |  9 ++++++---
 crypto/simd.c                                  |  7 +++++--
 crypto/xts.c                                   | 11 ++++++++---
 drivers/crypto/amcc/crypto4xx_core.c           |  8 +++++++-
 drivers/crypto/cavium/nitrox/nitrox_algs.c     |  9 +++++++--
 drivers/crypto/ccree/cc_cipher.c               |  6 ++++--
 drivers/crypto/hisilicon/sec/sec_algs.c        |  5 ++++-
 drivers/crypto/inside-secure/safexcel_cipher.c |  5 ++++-
 drivers/crypto/marvell/cipher.c                |  4 +---
 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c      |  4 +---
 include/crypto/internal/skcipher.h             |  7 ++++++-
 include/crypto/skcipher.h                      |  4 +++-
 15 files changed, 71 insertions(+), 29 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 54+ messages in thread

end of thread, other threads:[~2018-09-06 22:23 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04 18:16 [PATCH 0/2] crypto: Remove VLA usage from skcipher Kees Cook
2018-09-04 18:16 ` Kees Cook
2018-09-04 18:16 ` [PATCH 1/2] crypto: skcipher: Allow crypto_skcipher_set_reqsize() to fail Kees Cook
2018-09-04 18:16   ` Kees Cook
2018-09-04 18:16 ` [PATCH 2/2] crypto: skcipher: Remove VLA usage for SKCIPHER_REQUEST_ON_STACK Kees Cook
2018-09-04 18:16   ` Kees Cook
2018-09-05  6:05   ` Alexander Stein
2018-09-05  6:05     ` Alexander Stein
2018-09-05  6:05     ` Alexander Stein
2018-09-05  9:18   ` Ard Biesheuvel
2018-09-05  9:18     ` Ard Biesheuvel
2018-09-05  9:18     ` Ard Biesheuvel
2018-09-05 21:05     ` Kees Cook
2018-09-05 21:05       ` Kees Cook
2018-09-05 21:05       ` Kees Cook
2018-09-05 22:49       ` Ard Biesheuvel
2018-09-05 22:49         ` Ard Biesheuvel
2018-09-05 22:49         ` Ard Biesheuvel
2018-09-06  0:43         ` Kees Cook
2018-09-06  0:43           ` Kees Cook
2018-09-06  0:43           ` Kees Cook
2018-09-06 20:22           ` Kees Cook
2018-09-06 20:22             ` Kees Cook
2018-09-06 20:22             ` Kees Cook
2018-09-06 22:23             ` Kees Cook
2018-09-06 22:23               ` Kees Cook
2018-09-06 22:23               ` Kees Cook
2018-09-06  4:53         ` Gilad Ben-Yossef
2018-09-06  4:53           ` Gilad Ben-Yossef
2018-09-06  4:53           ` Gilad Ben-Yossef
2018-09-06  7:21           ` Ard Biesheuvel
2018-09-06  7:21             ` Ard Biesheuvel
2018-09-06  7:21             ` Ard Biesheuvel
2018-09-06  8:11             ` Ard Biesheuvel
2018-09-06  8:11               ` Ard Biesheuvel
2018-09-06  8:11               ` Ard Biesheuvel
2018-09-06  8:51               ` Herbert Xu
2018-09-06  8:51                 ` Herbert Xu
2018-09-06  8:51                 ` Herbert Xu
2018-09-06  9:29                 ` Ard Biesheuvel
2018-09-06  9:29                   ` Ard Biesheuvel
2018-09-06  9:29                   ` Ard Biesheuvel
2018-09-06 13:11                   ` Herbert Xu
2018-09-06 13:11                     ` Herbert Xu
2018-09-06 13:11                     ` Herbert Xu
2018-09-06 14:49                     ` Ard Biesheuvel
2018-09-06 14:49                       ` Ard Biesheuvel
2018-09-06 14:49                       ` Ard Biesheuvel
2018-09-06 19:18                       ` Kees Cook
2018-09-06 19:18                         ` Kees Cook
2018-09-06 19:18                         ` Kees Cook
2018-09-06  8:25             ` Gilad Ben-Yossef
2018-09-06  8:25               ` Gilad Ben-Yossef
2018-09-06  8:25               ` Gilad Ben-Yossef

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.