Received: by 10.192.165.148 with SMTP id m20csp1912309imm; Sat, 28 Apr 2018 08:04:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpgwoqGyi/fQaoRRxsDi6I9lPUp/7rSZY0qptkeWwWIBXaIcNO3tYAaeZ16VdFzAt7+4IkV X-Received: by 2002:a17:902:5a46:: with SMTP id f6-v6mr6225469plm.85.1524927840914; Sat, 28 Apr 2018 08:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524927840; cv=none; d=google.com; s=arc-20160816; b=r7UeXxIOAwMrzR69s0qpHYHGpkAxdmuBGC+NrykaxhD8S3ne8alyHBaiAiLbg6+Ax6 oMV9UAWDB5g4IMBOkHF+fpz0Uu6D0hjo8fYxShKy3e8J+7mgr0KwNDE3Ao7TIG7IAqh/ R2WFUv18MW5G3EudqGYJs4I+9BLY+p7YDtocpSnAXALp7Ek/zr3ea1Tv7h7G9EZPU4ZA j3Npn6js6sUxp4YWqtZdOR/jV1dAaKVXUBs2VX/Hw9IZT/yxd1TFs7j0GPjpImz+huqy hKXmdtC40pEv9qXDW7VgRRyHrzJ0DCiOjQRz9m2aoqr2ahH5p0fuEqan/WLyfhWRz2nB Pj0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=5Usux9xMqUtGKuOHXL45zwgDumhlLgqyqfAWGJbiWSg=; b=Zd1U9dEhRkF/OpHpiNvoAy43WDMbzdXIft4QEsVnOBi3RxrCK6bUzvWh1Rw6Bx6otd gyEQd8nwcf8ZEThNdgYpiZJTIsjfEoCTA+q+2KZEOZ4KWmm+N1GlvuQIEn2zvuOK4hlp unM1ykj0MimFPl+xN9XS/wviE++eAhzOsOS41lrRIYp7pakrD52keXzU43CmJ92AEymV l0zsQRQiUW0dSk7pBoTbzaaavl/d2VGa/5RI2IxDbALHsBzIi/yGl/gdjw9Vl3L57oAC KXIH/9igXulA3+QAjmixLCEyxRg3jax7VT3i4XNDho05TE2vluY1iFPcasLn3nFd8N2V S7qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D2lZseIg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16-v6si3361493plp.232.2018.04.28.08.03.11; Sat, 28 Apr 2018 08:04:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D2lZseIg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752121AbeD1O7a (ORCPT + 99 others); Sat, 28 Apr 2018 10:59:30 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:38302 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751526AbeD1O72 (ORCPT ); Sat, 28 Apr 2018 10:59:28 -0400 Received: by mail-io0-f195.google.com with SMTP id z4-v6so5734109iof.5 for ; Sat, 28 Apr 2018 07:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5Usux9xMqUtGKuOHXL45zwgDumhlLgqyqfAWGJbiWSg=; b=D2lZseIgHfQzpKIJvs3lK1e7PQ7FpTSS1r0DD7QmtYVkNMm+axaV1CpW5ff6wAJF8V ZlhfRWJtjuEPDp8TLo0BREL+TscrI1xRVw6nOKwSk0ikUOHEBw3KHAMmglbfAcsSt1O+ PnI5s7OqokdM0NyP5dQWSxUAS1CPAfuHS+1a4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=5Usux9xMqUtGKuOHXL45zwgDumhlLgqyqfAWGJbiWSg=; b=FiUC3o5//ZJzFlzJ5mYTTNiRwvmLIYZjJKZLbuQMOoup9yJomaT6xIYiy4Q60Wsu5O aJaw8KsLKn/jKoJm/qj4SQq/qqBCQ9OXIXcWtCPK/BXJEKY6ET5yxKRwFEP+Ohx+ox7H FveRAGDSQBF7+xtY6XbAaHQSMMUDeLJlJczfp/UYxYOqU9mYoDbNhgeJbluvSvknglRc mtGGzG3HmcURZhBKn5rfOZTQeBpdLx6xQ3s/uy/vBekN5LmGWyeQvLwi7avxvqLc+5Xg EUSn22uBPeozsmtyKU7ytfG328wOsbhgLrzUavt8XtkEjThmbApLiPvAhih/Mh1NVAGO HSMQ== X-Gm-Message-State: ALQs6tCWmwGgG2A45XR6Y8X91FsBNCoiPv53W5XD/tzxYq7YePkdxhOu qhKvnZKqmqHzchstQSzoPzRnijfvgrY= X-Received: by 2002:a6b:3d1:: with SMTP id e78-v6mr6401235ioi.297.1524927567511; Sat, 28 Apr 2018 07:59:27 -0700 (PDT) Received: from localhost (c-68-47-89-210.hsd1.mn.comcast.net. [68.47.89.210]) by smtp.gmail.com with ESMTPSA id s70-v6sm1365647itb.39.2018.04.28.07.59.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Apr 2018 07:59:26 -0700 (PDT) Date: Sat, 28 Apr 2018 09:59:25 -0500 From: Dan Rue To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jann Horn , Theodore Tso , Thierry Escande , Nicolas Dechesne Subject: Re: [PATCH 4.16 163/196] random: fix crng_ready() test Message-ID: <20180428145925.jsjnx4rgljbcxi3e@xps> Mail-Followup-To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jann Horn , Theodore Tso , Thierry Escande , Nicolas Dechesne References: <20180422135104.278511750@linuxfoundation.org> <20180422135112.655853962@linuxfoundation.org> <20180427163443.fdsixdsrwwkycuhh@xps> <20180428060003.GB18371@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180428060003.GB18371@kroah.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 28, 2018 at 08:00:03AM +0200, Greg Kroah-Hartman wrote: > 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 > > > > > > 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 > > > Fixes: e192be9d9a30 ("random: replace non-blocking pool...") > > > Cc: stable@kernel.org # 4.8+ > > > Signed-off-by: Theodore Ts'o > > > Reviewed-by: Jann Horn > > > Signed-off-by: Greg Kroah-Hartman > > > > 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? No, but I did see it in v4.17-rc2-102-g3442097b765c, and it was fixed in the subsequent build: good: v4.17-rc2-64-g26ed24e429d8 bad: v4.17-rc2-102-g3442097b765c good: v4.17-rc2-104-g69bfd470f462 I haven't investigated deeper though, and I do not see any changes to random in those above revisions. This test passes on all the other mainline builds, including v4.17-rc2. > > You all are testing the -rc releases, right? :) We test every push to mainline and we test -next daily. > > 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... Waiting is fine with me. Thanks, Dan