linux-um archives
 help / color / mirror / Atom feed
From: James W McMechan <mcmechanjw@juno.com>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] uml-patch-2.6.0
Date: Tue, 20 Jan 2004 03:45:48 -0800	[thread overview]
Message-ID: <20040120.034639.-421335.6.mcmechanjw@juno.com> (raw)

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

For a while I had a similar problem where IRQ 14? would
trigger and attempt to add_timer_randomness before the
random driver's _init section had been run so it would go
into one of the infinite segfault loops on a un-initialized
variable, I just added a check on the pointer being
set, and returned if it was not.  This only seems to happen
on faster machines 1G PIII or 1.4G Athlon my 200MHz
Pentium MMXes at home don't show this effect.
I am normally paranoid about un-initialized vars for just
these sort of reasons, it was a pain to track down, but
I had plenty of time on a new years day cross country
flight to hunt for it.

I just fixed it for my use by a simple extra check, not calling it
would of course be better but I did not care where the fast path
was, slow but working is much better than fast and wedged.
I think the base problem is that yet another assumption is being
broken by UML or the random device
or the magic init order is wrong again :(

likely the patch is mangled but here it is.
--- linux-2.6.0/drivers/char/random.c 2003-11-26 12:42:56.000000000 -0800
+++ G-03-2.6.0/drivers/char/random.c 2004-01-01 14:18:52.000000000 -0800
@@ -790,6 +760,8 @@
         __s32                delta, delta2, delta3;
         int                        entropy = 0;

+if (!random_state) return;
+
         /* if over the trickle threshold, use only 1 in 4096 samples */
         if ( random_state->entropy_count > trickle_thresh &&
                (__get_cpu_var(trickle_count)__ & 0xfff))

[-- Attachment #2: Type: text/html, Size: 2668 bytes --]

             reply	other threads:[~2004-01-20 11:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-20 11:45 James W McMechan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-13  5:05 [uml-devel] uml-patch-2.6.0 Jeff Dike
2004-01-17 19:09 ` BlaisorBlade
2004-01-17 19:51   ` Jeff Dike
2004-01-18 13:49     ` Ingo Molnar
2004-01-17 20:32   ` M A Young

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=20040120.034639.-421335.6.mcmechanjw@juno.com \
    --to=mcmechanjw@juno.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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