Received: by 10.192.165.148 with SMTP id m20csp1520438imm; Fri, 27 Apr 2018 23:05:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRUbyAu7cwjQDaEPSgxH25Netm5wDQvgxBK/RdRn6zU86JY/lf0HZlqyNt3NOK1B2QPCYl X-Received: by 2002:a17:902:aa90:: with SMTP id d16-v6mr4894321plr.189.1524895518058; Fri, 27 Apr 2018 23:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524895518; cv=none; d=google.com; s=arc-20160816; b=byTRF59hFnV2SFAqQD/FUd7psveRobmtM4siu7ULOojBnXMsODJytkdvdFOD0uAuES 3lMYN4Ox72lo+CAqaOk+A6wPL2p8TyndZq+3KKdJJGfDtUIiuhxRTW8KCv4LNdDwb7G8 PfmE3OtjMRXo5Mrk3iVteLbXw8ULt6zT9yTqkUFDJKw4JdN+w9g/zMF7dqCRNt6AypH0 uLgkB71C8LFRj1rYAlh2HxFIuREPO+raHrFAqowzAlm92rQxMoZ6DwJGTG6KhgLLgTZV ALvG+2aN3c1Pr/YoMJgwB7+l130qT9Be/06E/tekCQUq5y2s/uNKJTJg3PT1Z5LRmluu iJAg== 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:message-id:subject:to :from:date:dmarc-filter:arc-authentication-results; bh=mbz/3arGych8QkOfFIfa0uYN8xcg2oBiHL0oKOj+FKI=; b=ISxeJAlCCX0f+E53iMdKOF6cfU/wQKGjNxmUCPojGAhK5MjrEgz5/k7D33WhkVc5o5 1riMHKZlOxr3awryfnUFnhRq/YrKJiVMYGxCH1DcQZl+YDtZJcPM+PyjGxVyJ4wjG6ie wAHzQBPPNDNUxp3lKIy9vcM7HVJ8T5ZPIhu8km1raQ+g6HORn/DcZcKf67PerPm2vJ7i uUwgZTz1qPZAzz/G+C7yM8XpOYdoWRfYZDGZVlX0Hydo58feA+sRAi1Hd+qoy7LiLLD4 yuKfSAl+G1bbyO4CLcBPVjUxXx/vzCtyY1uhFzsRYt7GeJsR94jgiqQFM6Ah8qIENTbH NrMA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24-v6si2699722plp.564.2018.04.27.23.05.03; Fri, 27 Apr 2018 23:05:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759374AbeD1GD5 (ORCPT + 99 others); Sat, 28 Apr 2018 02:03:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:48718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751844AbeD1GD4 (ORCPT ); Sat, 28 Apr 2018 02:03:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB94521995; Sat, 28 Apr 2018 06:03:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB94521995 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org Date: Sat, 28 Apr 2018 08:00:03 +0200 From: Greg Kroah-Hartman To: 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: <20180428060003.GB18371@kroah.com> References: <20180422135104.278511750@linuxfoundation.org> <20180422135112.655853962@linuxfoundation.org> <20180427163443.fdsixdsrwwkycuhh@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180427163443.fdsixdsrwwkycuhh@xps> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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