[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1498440189.26123.85.camel@haakon3.risingtidesystems.com>
Date: Sun, 25 Jun 2017 18:23:09 -0700
From: "Nicholas A. Bellinger" <nab@...ux-iscsi.org>
To: Stephan Müller <smueller@...onox.de>
Cc: Lee Duncan <lduncan@...e.com>,
"Jason A. Donenfeld" <Jason@...c4.com>,
Theodore Ts'o <tytso@....edu>,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
kernel-hardening@...ts.openwall.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
David Miller <davem@...emloft.net>,
Eric Biggers <ebiggers3@...il.com>,
Chris Leech <cleech@...hat.com>, open-iscsi@...glegroups.com,
target-devel <target-devel@...r.kernel.org>
Subject: Re: [kernel-hardening] Re: [PATCH v4 06/13] iscsi: ensure RNG is
seeded before use
Hi Stephan, Lee & Jason,
(Adding target-devel CC')
Apologies for coming late to the discussion. Comments below.
On Sun, 2017-06-18 at 10:04 +0200, Stephan Müller wrote:
> Am Samstag, 17. Juni 2017, 05:45:57 CEST schrieb Lee Duncan:
>
> Hi Lee,
>
> > In your testing, how long might a process have to wait? Are we talking
> > seconds? Longer? What about timeouts?
> >
>
> In current kernels (starting with 4.8) this timeout should clear within a few
> seconds after boot.
>
> In older kernels (pre 4.8), my KVM takes up to 90 seconds to reach that
> seeding point. I have heard that on IBM System Z this trigger point requires
> minutes to be reached.
>
I share the same concern as Lee wrt to introducing latency into the
existing iscsi-target login sequence.
Namely in the use-cases where a single node is supporting ~1K unique
iscsi-target IQNs, and fail-over + re-balancing of IQNs where 100s of
login attempts are expected to occur in parallel.
If environments exist that require non trivial amounts of time for RNG
seeding to be ready for iscsi-target usage, then enforcing this
requirement at iscsi login time can open up problems, especially when
iscsi host environments may be sensitive to login timeouts, I/O
timeouts, et al.
That said, I'd prefer to simply wait for RNG to be seeded at modprobe
iscsi_target_mod time, instead of trying to enforce randomness during
login.
This way, those of use who have distributed storage platforms can know
to avoid putting a node into a state to accept iscsi-target IQN export
migration, before modprobe iscsi_target_mod has successfully loaded and
RNG seeding has been confirmed.
WDYT..?
Powered by blists - more mailing lists