Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1461096ybb; Sun, 29 Mar 2020 05:23:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtA5Ii5//uUKe21PH3Gm1cM8975QkUbaVRhgxyRftJdnOaeaGguBq6Qv5vg56uZDg9I8jh3 X-Received: by 2002:aca:f585:: with SMTP id t127mr4735326oih.38.1585484618483; Sun, 29 Mar 2020 05:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585484618; cv=none; d=google.com; s=arc-20160816; b=zc4cSB6hcCrMVH8cyXIyFSDbZNrAXk0Utyfp+UltlNNqtAJnL3corNOdIuHEhQ50FN sBCDzBWYbWQLiMFn07aD/4BwCjBLauzGSssKLxWm+LEyCHc44M0wL3ZFG92UsMZHTI5/ ketuF5l9zkC6sOTcWUHO50WFSO3Z58nbKDsjgpYuPqAzy2Aer74neSx7+90XDWN2PAze bCXXdPv9n8gGwiYW0NZwK/xLJWrH4D45w5n6kvF3U7zXEIemqkmaTlRrXOK3mqaq6wED Taz17CloFu1bMokibHE8dWVLmjtDZXWDXdQ47Lt3wnj9qBX5WMpoBAlfdzADxar+xXvE kupw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=CWhSuYeh/RSoBjF6BnI3swYU8KAJ32eCquqGudXjT2k=; b=SB+oIx7BWTJXk/1qBpTpyX/EVmKqEPxXSDlGzVdLGxVbv0qDY9s/i3oF0W2NDd1whm lel/1TGrOieVz/BUjCWrJIC/NUwy3V8AEa2kqSqypLh2G5GSz71LtQRWIOVvHUGeeNrr 5KHqMdcHRtl6SBfr1O70hlO+L5JDfm9WHi2O6EHn1eN4gEa1LWq1LKHnJfhS2hQVQF18 Whs9H+xQ9zjj7HJmVWnJ5jOmB1Wt/pZSfiEuMCLkiHzUsDazI9Vo5ueF2twoeo09dQRb krXx++e/+dADopQeKeVVhL+Qop93MJW+cKSdsel6jR2w1YvJnMdqZxm/zQNAd7eWGvxd g/cQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si2977850otm.263.2020.03.29.05.23.25; Sun, 29 Mar 2020 05:23:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728107AbgC2MVv convert rfc822-to-8bit (ORCPT + 99 others); Sun, 29 Mar 2020 08:21:51 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:33084 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728044AbgC2MVv (ORCPT ); Sun, 29 Mar 2020 08:21:51 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-135-E2d1cB3MNcKiBN6SYycyaw-1; Sun, 29 Mar 2020 13:21:47 +0100 X-MC-Unique: E2d1cB3MNcKiBN6SYycyaw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Sun, 29 Mar 2020 13:21:47 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Sun, 29 Mar 2020 13:21:47 +0100 From: David Laight To: 'George Spelvin' , Dan Williams CC: Linux Kernel Mailing List , Qian Cai , Kees Cook , Michal Hocko , Andrew Morton , Linux MM Subject: RE: [RFC PATCH v1 00/52] Audit kernel random number use Thread-Topic: [RFC PATCH v1 00/52] Audit kernel random number use Thread-Index: AQHWBS7wHKwkXcotX0GE2ObBbkw++6hffddg Date: Sun, 29 Mar 2020 12:21:46 +0000 Message-ID: <98bd30f23b374ccbb61dd46125dc9669@AcuMS.aculab.com> References: <202003281643.02SGhPmY017434@sdf.org> <20200328182817.GE5859@SDF.ORG> In-Reply-To: <20200328182817.GE5859@SDF.ORG> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: George Spelvin > Sent: 28 March 2020 18:28 ... > 20..23: Changes to the prandom_u32() generator itself. Including > switching to a stronger & faster PRNG. Does this remove the code that used 'xor' to combine the output of (about) 5 LFSR? Or is that somewhere else? I didn't spot it in the patches - so it might already have gone. Using xor was particularly stupid. The whole generator was then linear and trivially reversable. Just using addition would have made it much stronger. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)