mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jussi Laako <jussi.laako@kolumbus.fi>
To: Andrew Morton <akpm@zip.com.au>
Cc: kuznet@ms2.inr.ac.ru, linux-kernel@vger.kernel.org
Subject: Re: [CRASH] in tulip driver?
Date: 11 Jul 2002 23:38:39 +0300	[thread overview]
Message-ID: <1026419920.1859.7.camel@vaarlahti.uworld> (raw)
In-Reply-To: <3D2CFCE0.3452F960@zip.com.au>

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

On Thu, 2002-07-11 at 06:34, Andrew Morton wrote:
>
> whoops.  I think the "-ll" means low-latency.  But the only
> finger I have in that pie is:
> 
> --- 2.4.19-pre6/drivers/char/random.c~low-latency       Fri Apr  5 12:11:17 2002
> +++ 2.4.19-pre6-akpm/drivers/char/random.c      Fri Apr  5 12:11:17 2002
> @@ -1369,6 +1369,11 @@ static ssize_t extract_entropy(struct en
>                 buf += i;
>                 ret += i;
>                 add_timer_randomness(&extract_timer_state, nbytes);
> +#if LOWLATENCY_NEEDED
> +               /* This can happen in softirq's, but that's what we want */
> +               if (conditional_schedule_needed())
> +                       break;
> +#endif
>         }
>  
>         /* Wipe data just returned from memory */
> 
> So it's a bit of a mystery.  It seems to think that it has
> EXTRACT_ENTROPY_USER.

Whoops, thanks, I found the bug. My fault...

That "break;" breaks some (apparently broken) programs that don't expect
read of /dev/urandom to return early. For security resons (to get
identical behaviour compared to the original kernel) I made a fix that
someone proposed. That fix is apparently broken on some rare situations
which seem to be difficult to trigger (requires high overall irq rates
with network load). Now I'm going to remove that part completely and see
what happens next...


	- Jussi Laako


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-07-11 20:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-10 20:02 Jussi Laako
2002-07-11  2:59 ` kuznet
2002-07-11  3:34   ` Andrew Morton
2002-07-11 20:38     ` Jussi Laako [this message]
2002-07-11 20:44       ` Andrew Morton
2002-07-11  7:18 ` Adrian Bunk
2002-07-11 20:10   ` Jussi Laako

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1026419920.1859.7.camel@vaarlahti.uworld \
    --to=jussi.laako@kolumbus.fi \
    --cc=akpm@zip.com.au \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®