public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [CRASH] in tulip driver?
@ 2002-07-10 20:02 Jussi Laako
  2002-07-11  2:59 ` kuznet
  2002-07-11  7:18 ` Adrian Bunk
  0 siblings, 2 replies; 7+ messages in thread
From: Jussi Laako @ 2002-07-10 20:02 UTC (permalink / raw)
  To: linux-kernel

Hello,

Any ideas what is causing the following crash?


	- Jussi Laako

--- 8< ---

ksymoops 2.4.4 on i686 2.4.19-pre7-jl4-ll.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.19-pre7-jl4-ll/ (default)
     -m /boot/System.map-2.4.19-pre7-jl4-ll (default)

Warning: You did not tell me where to find symbol information.  I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc.  ksymoops -h explains the options.

kernel BUG at sched.c:579!
invalid operand: 0000
CPU:    0
EIP:    0010:[<c01169ac>]    Tainted: P 
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010282
eax: 00000018   ebx: 0000000a   ecx: 00000082   edx: dc80df64
esi: d74458c0   edi: 0000001a   ebp: c021f804   esp: c021f7e0
ds: 0018   es: 0018   ss: 0018
Process swapper (pid: 0, stackpage=c021f000)
Stack: c01eda4a 00000042 c021e000 00000000 0000000a c021e000 0000000a
c0272900 
       0000001a 00000080 c01765a5 c021e000 0000000a 6e6d6c6b 7271706f
76757473 
       7a797877 00000000 33323130 00000000 30353132 c021f831 20006867
00000000 
Call Trace: [<c01765a5>] [<c01df740>] [<e0bd0077>] [<e0bd008f>] [<c0176648>] 
   [<c0177336>] [<c01c9dc0>] [<c01addd4>] [<c01a78fe>] [<c01b7760>]
[<c01b77e3>] 
   [<c01ad51a>] [<c01ad54c>] [<c01b7700>] [<c01b6434>] [<c01c48e7>]
[<c01a46cb>] 
   [<c01df740>] [<e0bd0077>] [<c01c3a13>] [<c01df8e2>] [<c01ca07c>]
[<c01ca38d>] 
   [<c01ca73d>] [<c01ad24b>] [<c01b4013>] [<c01b3f60>] [<c01ad51a>]
[<c01b3f60>] 
   [<c01ad54c>] [<c01b4090>] [<c01b3bf7>] [<c01b3f60>] [<c01b4090>]
[<c01b4090>] 
   [<c01b41f8>] [<c01b4090>] [<c01ad51a>] [<c01b4090>] [<c01ad54c>]
[<c0109cbc>] 
   [<c01b3f2c>] [<c01b4090>] [<e0a641c1>] [<c01a7e58>] [<c0109b19>]
[<c011d29b>] 
   [<c0109cbc>] [<c0106c60>] [<c0106c60>] [<c010bc68>] [<c0106c60>]
[<c0106c60>] 
   [<c0106c83>] [<c0106d02>] [<c0105000>] 
Code: 0f 0b 43 02 42 da 1e c0 5b fa 8b 55 f0 83 7a 28 02 75 40 8b 

>>EIP; c01169ac <schedule+4c/300>   <=====
Trace; c01765a5 <extract_entropy+375/3f0>
Trace; c01df740 <vsnprintf+290/3e0>
Trace; e0bd0077 <[envy24].rodata.end+1258/3c21>
Trace; e0bd008f <[envy24].rodata.end+1270/3c21>
Trace; c0176648 <get_random_bytes+28/40>
Trace; c0177336 <secure_tcp_sequence_number+46/c0>
Trace; c01c9dc0 <tcp_v4_conn_request+400/480>
Trace; c01addd4 <qdisc_restart+14/d0>
Trace; c01a78fe <dev_queue_xmit+fe/260>
Trace; c01b7760 <ip_finish_output2+0/d0>
Trace; c01b77e3 <ip_finish_output2+83/d0>
Trace; c01ad51a <nf_hook_slow+aa/130>
Trace; c01ad54c <nf_hook_slow+dc/130>
Trace; c01b7700 <ip_finish_output+b0/100>
Trace; c01b6434 <ip_output+114/120>
Trace; c01c48e7 <tcp_transmit_skb+507/5c0>
Trace; c01a46cb <kfree_skbmem+b/60>
Trace; c01df740 <vsnprintf+290/3e0>
Trace; e0bd0077 <[envy24].rodata.end+1258/3c21>
Trace; c01c3a13 <tcp_rcv_state_process+73/937>
Trace; c01df8e2 <sprintf+12/20>
Trace; c01ca07c <tcp_v4_hnd_req+3c/190>
Trace; c01ca38d <tcp_v4_do_rcv+bd/100>
Trace; c01ca73d <tcp_v4_rcv+36d/590>
Trace; c01ad24b <nf_iterate+2b/80>
Trace; c01b4013 <ip_local_deliver_finish+b3/130>
Trace; c01b3f60 <ip_local_deliver_finish+0/130>
Trace; c01ad51a <nf_hook_slow+aa/130>
Trace; c01b3f60 <ip_local_deliver_finish+0/130>
Trace; c01ad54c <nf_hook_slow+dc/130>
Trace; c01b4090 <ip_rcv_finish+0/1a0>
Trace; c01b3bf7 <ip_local_deliver+167/180>
Trace; c01b3f60 <ip_local_deliver_finish+0/130>
Trace; c01b4090 <ip_rcv_finish+0/1a0>
Trace; c01b4090 <ip_rcv_finish+0/1a0>
Trace; c01b41f8 <ip_rcv_finish+168/1a0>
Trace; c01b4090 <ip_rcv_finish+0/1a0>
Trace; c01ad51a <nf_hook_slow+aa/130>
Trace; c01b4090 <ip_rcv_finish+0/1a0>
Trace; c01ad54c <nf_hook_slow+dc/130>
Trace; c0109cbc <do_IRQ+9c/b0>
Trace; c01b3f2c <ip_rcv+31c/350>
Trace; c01b4090 <ip_rcv_finish+0/1a0>
Trace; e0a641c1 <[tulip]tulip_interrupt+691/6f0>
Trace; c01a7e58 <net_rx_action+138/210>
Trace; c0109b19 <handle_IRQ_event+39/60>
Trace; c011d29b <do_softirq+4b/90>
Trace; c0109cbc <do_IRQ+9c/b0>
Trace; c0106c60 <default_idle+0/30>
Trace; c0106c60 <default_idle+0/30>
Trace; c010bc68 <call_do_IRQ+5/d>
Trace; c0106c60 <default_idle+0/30>
Trace; c0106c60 <default_idle+0/30>
Trace; c0106c83 <default_idle+23/30>
Trace; c0106d02 <cpu_idle+52/70>
Trace; c0105000 <_stext+0/0>
Code;  c01169ac <schedule+4c/300>
00000000 <_EIP>:
Code;  c01169ac <schedule+4c/300>   <=====
   0:   0f 0b                     ud2a      <=====
Code;  c01169ae <schedule+4e/300>
   2:   43                        inc    %ebx
Code;  c01169af <schedule+4f/300>
   3:   02 42 da                  add    0xffffffda(%edx),%al
Code;  c01169b2 <schedule+52/300>
   6:   1e                        push   %ds
Code;  c01169b3 <schedule+53/300>
   7:   c0 5b fa 8b               rcrb   $0x8b,0xfffffffa(%ebx)
Code;  c01169b7 <schedule+57/300>
   b:   55                        push   %ebp
Code;  c01169b8 <schedule+58/300>
   c:   f0 83 7a 28 02            lock cmpl $0x2,0x28(%edx)
Code;  c01169bd <schedule+5d/300>
  11:   75 40                     jne    53 <_EIP+0x53> c01169ff
<schedule+9f/300>
Code;  c01169bf <schedule+5f/300>
  13:   8b 00                     mov    (%eax),%eax

 <0>Kernel panic: Aiee, killing interrupt handler!

1 warning issued.  Results may not be reliable.

--- 8< ---

-- 
PGP key fingerprint: 161D 6FED 6A92 39E2 EB5B  39DD A4DE 63EB C216 1E4B
Available at PGP keyservers


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CRASH] in tulip driver?
  2002-07-10 20:02 [CRASH] in tulip driver? Jussi Laako
@ 2002-07-11  2:59 ` kuznet
  2002-07-11  3:34   ` Andrew Morton
  2002-07-11  7:18 ` Adrian Bunk
  1 sibling, 1 reply; 7+ messages in thread
From: kuznet @ 2002-07-11  2:59 UTC (permalink / raw)
  To: Jussi Laako; +Cc: linux-kernel

Hello!

> Any ideas what is causing the following crash?

There is no BUG() in sched.c:579 or in vicinity of this line.

So, the only idea is that the crash is caused by patches which
you applied to the kernel. :-)

Alexey


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CRASH] in tulip driver?
  2002-07-11  2:59 ` kuznet
@ 2002-07-11  3:34   ` Andrew Morton
  2002-07-11 20:38     ` Jussi Laako
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2002-07-11  3:34 UTC (permalink / raw)
  To: kuznet; +Cc: Jussi Laako, linux-kernel

kuznet@ms2.inr.ac.ru wrote:
> 
> Hello!
> 
> > Any ideas what is causing the following crash?
> 
> There is no BUG() in sched.c:579 or in vicinity of this line.
> 
> So, the only idea is that the crash is caused by patches which
> you applied to the kernel. :-)
> 

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.

-

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CRASH] in tulip driver?
  2002-07-10 20:02 [CRASH] in tulip driver? Jussi Laako
  2002-07-11  2:59 ` kuznet
@ 2002-07-11  7:18 ` Adrian Bunk
  2002-07-11 20:10   ` Jussi Laako
  1 sibling, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2002-07-11  7:18 UTC (permalink / raw)
  To: Jussi Laako; +Cc: linux-kernel

On Wed, 10 Jul 2002, Jussi Laako wrote:

> Hello,
>
> Any ideas what is causing the following crash?
>
>
> 	- Jussi Laako
>...
> kernel BUG at sched.c:579!
> invalid operand: 0000
> CPU:    0
> EIP:    0010:[<c01169ac>]    Tainted: P
>...


Which non-free modules (e.g. NVidia) were loaded on your computer?


cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
								Alan Cox




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CRASH] in tulip driver?
  2002-07-11  7:18 ` Adrian Bunk
@ 2002-07-11 20:10   ` Jussi Laako
  0 siblings, 0 replies; 7+ messages in thread
From: Jussi Laako @ 2002-07-11 20:10 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

Adrian Bunk wrote:
> 
> > EIP:    0010:[<c01169ac>]    Tainted: P
> Which non-free modules (e.g. NVidia) were loaded on your computer?

4front-tech's OSS soundcard driver...


	- Jussi Laako

-- 
PGP key fingerprint: 161D 6FED 6A92 39E2 EB5B  39DD A4DE 63EB C216 1E4B
Available at PGP keyservers


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CRASH] in tulip driver?
  2002-07-11  3:34   ` Andrew Morton
@ 2002-07-11 20:38     ` Jussi Laako
  2002-07-11 20:44       ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Jussi Laako @ 2002-07-11 20:38 UTC (permalink / raw)
  To: Andrew Morton; +Cc: kuznet, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CRASH] in tulip driver?
  2002-07-11 20:38     ` Jussi Laako
@ 2002-07-11 20:44       ` Andrew Morton
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2002-07-11 20:44 UTC (permalink / raw)
  To: Jussi Laako; +Cc: kuznet, linux-kernel

Jussi Laako wrote:
> 
> ...
> >
> > --- 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...
> 

Yes, just delete that chunk.  I took it out of the ll patch a few
weeks ago because of the /dev/urandom thing.

The random driver only causes a 1-2 milliseocnd blip @500MHz anyway.

-

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-07-11 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-10 20:02 [CRASH] in tulip driver? Jussi Laako
2002-07-11  2:59 ` kuznet
2002-07-11  3:34   ` Andrew Morton
2002-07-11 20:38     ` Jussi Laako
2002-07-11 20:44       ` Andrew Morton
2002-07-11  7:18 ` Adrian Bunk
2002-07-11 20:10   ` Jussi Laako

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox