[GIT PULL] Keys fixes

From: James Morris
Date: Thu Oct 27 2016 - 00:37:52 EST


Please pull these fixes from David Howells:


(1) Fix a buffer overflow when displaying /proc/keys [CVE-2016-7042].

(2) Fix broken initialisation in the big_key implementation that can
result in an oops.

(3) Make big_key depend on having a random number generator available in
Kconfig.

---

The following changes since commit 9fe68cad6e74967b88d0c6aeca7d9cd6b6e91942:

Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 (2016-10-24 21:34:13 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git for-linus

Artem Savkov (1):
security/keys: make BIG_KEYS dependent on stdrng.

David Howells (2):
KEYS: Fix short sprintf buffer in /proc/keys show function
KEYS: Sort out big_key initialisation

security/keys/Kconfig | 2 +-
security/keys/big_key.c | 59 +++++++++++++++++++++++++---------------------
security/keys/proc.c | 2 +-
3 files changed, 34 insertions(+), 29 deletions(-)