Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbdFHCoM (ORCPT ); Wed, 7 Jun 2017 22:44:12 -0400 Received: from imap.thunk.org ([74.207.234.97]:58032 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbdFHCoK (ORCPT ); Wed, 7 Jun 2017 22:44:10 -0400 Date: Wed, 7 Jun 2017 22:43:57 -0400 From: "Theodore Ts'o" To: "Jason A. Donenfeld" Cc: Linux Crypto Mailing List , LKML , kernel-hardening@lists.openwall.com, Greg Kroah-Hartman , David Miller , Eric Biggers , "Nicholas A. Bellinger" , Lee Duncan , Chris Leech Subject: Re: [PATCH v4 06/13] iscsi: ensure RNG is seeded before use Message-ID: <20170608024357.fhyyentj2qm7ti2q@thunk.org> Mail-Followup-To: Theodore Ts'o , "Jason A. Donenfeld" , Linux Crypto Mailing List , LKML , kernel-hardening@lists.openwall.com, Greg Kroah-Hartman , David Miller , Eric Biggers , "Nicholas A. Bellinger" , Lee Duncan , Chris Leech References: <20170606174804.31124-1-Jason@zx2c4.com> <20170606174804.31124-7-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170606174804.31124-7-Jason@zx2c4.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 721 Lines: 18 On Tue, Jun 06, 2017 at 07:47:57PM +0200, Jason A. Donenfeld wrote: > It's not safe to use weak random data here, especially for the challenge > response randomness. Since we're always in process context, it's safe to > simply wait until we have enough randomness to carry out the > authentication correctly. > > While we're at it, we clean up a small memleak during an error > condition. What was the testing that was done for commit? It looks safe, but I'm unfamiliar enough with how the iSCSI authentication works that I'd prefer getting an ack'ed by from the iSCSI maintainers or alternativel, information about how to kick off some kind of automated test suite ala xfstests for file systems. Thanks, - Ted