[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180428060003.GB18371@kroah.com>
Date: Sat, 28 Apr 2018 08:00:03 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Jann Horn <jannh@...gle.com>, Theodore Tso <tytso@....edu>,
Thierry Escande <thierry.escande@...aro.org>,
Nicolas Dechesne <nicolas.dechesne@...aro.org>
Subject: Re: [PATCH 4.16 163/196] random: fix crng_ready() test
On Fri, Apr 27, 2018 at 11:34:43AM -0500, Dan Rue wrote:
> On Sun, Apr 22, 2018 at 03:53:03PM +0200, Greg Kroah-Hartman wrote:
> > 4.16-stable review patch. If anyone has any objections, please let me know.
> >
> > ------------------
> >
> > From: Theodore Ts'o <tytso@....edu>
> >
> > commit 43838a23a05fbd13e47d750d3dfd77001536dd33 upstream.
> >
> > The crng_init variable has three states:
> >
> > 0: The CRNG is not initialized at all
> > 1: The CRNG has a small amount of entropy, hopefully good enough for
> > early-boot, non-cryptographical use cases
> > 2: The CRNG is fully initialized and we are sure it is safe for
> > cryptographic use cases.
> >
> > The crng_ready() function should only return true once we are in the
> > last state. This addresses CVE-2018-1108.
> >
> > Reported-by: Jann Horn <jannh@...gle.com>
> > Fixes: e192be9d9a30 ("random: replace non-blocking pool...")
> > Cc: stable@...nel.org # 4.8+
> > Signed-off-by: Theodore Ts'o <tytso@....edu>
> > Reviewed-by: Jann Horn <jannh@...gle.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>
> This patch has caused a regression on 4.16 using kselftest lib/printf.sh
> - specifically, when it runs "/sbin/modprobe test_printf". This
> regression has been detected on arm64 dragonboard 410c (not seen on
> other arm64 or x86_64 devices).
>
> /sbin/modprobe test_printf
> [ 22.725551] test_printf: hashing plain 'p' has unexpected format
> [ 22.726031] test_printf: failed 1 out of 236 tests
> modprobe: ERROR: could not insert 'test_printf': Invalid argument
>
> This problem has not been seen on 4.9 or 4.14 under the same
> conditions.
Does 4.17-rc2 also fail like this?
You all are testing the -rc releases, right? :)
I think the random changes that will be in 4.17-rc3 should fix this, and
if so, I'll suck them in here too. But testing that would be good to
see happen...
thanks,
greg k-h
Powered by blists - more mailing lists