Skip to contentSkip to conversation

kernel BUG doing sysrq-t on 2.4.2-ac14

DISCUSSION Vibol Hou 3 participants 3 messages Mar 8, 2001

lore
Share & tools
lore

Vibol Hou

author
#0 lore raw

While testing to see if SYSRQ-T would print the entire tasklist, a kernel bug popped up. All I have is the tasklist up to the point where the bug showed up.

-Vibol

-- snip --
01e03b1>] [<c01547e9>]

       [<c0124c99>] [<c01e1b4c>] [<c0109557>] [<c010002b>]
httpd     S 7FFFFFFF     0  2442    380        (NOTLB)    2446  2437
Call Trace: [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>] [<c01e1126>]
[<c
01e03b1>] [<c01547e9>]
       [<c011db71>] [<c011dcbc>] [<c01e1b4c>] [<c0109557>] [<c010002b>]
httpd     S 7FFFFFFF     0  2446    380        (NOTLB)    2452  2442
Call Trace: [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>] [<c01e1126>]
[<c
01e03b1>] [<c01547e9>]
       [<c0124c99>] [<c01e1b4c>] [<c0109557>] [<c010002b>]
httpd     S 7FFFFFFF     0  2452    380        (NOTLB)    2453  2446
Call Trace: [<c010ac41>] [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>]
[<c
01e1126>] [<c01547e9>]
       [<c012a70e>] [<c012ac18>] [<c01e1b4c>] [<c0109557>]
httpd     S 7FFFFFFF  2420  2453    380        (NOTLB)    2456  2452
Call Trace: [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>] [<c01e1126>]
[<c
01547e9>] [<c012a70e>]
       [<c012ac18>] [<c01e1b4c>] [<c0109557>] [<c010002b>]
httpd     S 7FFFFFFF     4  2456    380        (NOTLB)    2457  2453
Call Trace: [<c01156e3>] [<c01f909a>] [<c01fab4b>] [<c020ab9c>] [<c02157d6>]
[<c
01e0355>] [<c01e057e>]
       [<c013cbf6>] [<c0109557>] [<c010002b>]
httpd     R DA0EE000  1668  2457    380        (NOTLB)    2489  2456
Call Trace: [<c01133dd>] [<c0109645>]
httpd     S EEEDFF28     0  2489    380        (NOTLB)    2502  2457
Call Trace: [<c011573f>] [<c0115604>] [<c0150dce>] [<c0151172>] [<c0109557>]
[<c
010002b>]
httpd     S 7FFFFFFF     0  2502    380        (NOTLB)    2507  2489
Call Trace: [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>] [<c01e1126>]
[<c
01e03b1>] [<c01547e9>]
       [<c0124c99>] [<c01e1b4c>] [<c0109557>] [<c010002b>]
httpd     S 7FFFFFFF     0  2507    380        (NOTLB)    2509  2502
Call Trace: [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>] [<c01e1126>]
[<c
01f1eba>] [<c01e728e>]
       [<c011e61c>] [<c01e1b4c>] [<c0109557>] [<c010002b>]
httpd     S EA86FF28  3452  2509    380        (NOTLB)    2512  2507
Call Trace: [<c011573f>] [<c0115604>] [<c0150dce>] [<c0151172>] [<c0109557>]
[<c
010002b>]
httpd     S 7FFFFFFF     0  2512    380        (NOTLB)    2516  2509
Call Trace: [<c01156e3>] [<c01fd016>] [<c01fd247>] [<c0215494>] [<c01e1126>]
[<c
01547e9>] [<c012a70e>]
       [<c012ac18>] [<c01e1b4c>] [<c0109557>]
httpd     S 7FFFFFFF     0  2516    380        (NOTLB)    2524  2512
Call Trace: [<c01156e3>] [<c01f909a>] [<c01fab4b>] [<c0114c17>] [<c0114acc>]
[<c
02157d6>] [<c01e0355>]
       [<c01e071d>] [<c01e079b>] [<c013cd93>] [<c013NceMIf5 W>]a tch<4d>og[<

cde
01t0ec95t5ed7> L]O CK
UPh ottnp Cd PU 0 , reSg is7FteFFrsF:FF
F C P U0: 2 5 02
E IP38: 0 <40>01 0 : [ <c 01 0(N81OTd9LB>])
E FL25AG3S4: 0 200510060
87C
lel aTxr: acc0e2: d1[4<20c0 1 15e6bxe:3> c] 02[d1<c42001f d0 e16cx>:] 0[0<0c0
00104f6d2 47 e>]dx :[ 0<c00020100540094

Quoted 1 line

] es[<i:c0 1c1e1fd12806>00] [<ecdi01: e0e38ab168>]00 0[ < c0eb1p36:

e7f3f>b
5]6 0

     e  sp  :  e[8a<c609f1386c

1>]ds :[ 0<0c10181 d9 e7s0>: ] 00[1<8 c 01 se1s:b4 c00>]18 [<c0Pr10oc95es5s7> t] op[si<ct0e1s0.c0g02i b>(p] id:
3h38tt7,pd s ta c k pSag e7=Fe8FFa6FF90F0F 0)
S0 ta 2c5k:34 c0 2238200e d c1 f db3 (a4NO TLe8B)a6 80 00 2 5e358a6
8 2
658824
<4>C0al00l0 T00ra00c e:c 0[2d<1c0421015 6ce03>1]1 d51[<dc 0e1f8ad068106>00] [< c0 1f d 2 474>]01 67[<ac30c 21504090400>]00 0 [<bc0f1ffe1f1a2e64 >]c 01[<1d
c50166e0 3b0100>]00 0[00<c 0c15014709e955>7] 0
0 00 0 0 0 0[00<1c0010024 c9 00
9>] [ <c 01e401b164c7c>]d 8 [<40c0161079a53c5 7>]00 00[<00c0001
000bf2bff>]
f ae
<h4>tt00pd0 00 0 0 1 S0 0700F0FF02FFb FF0 0 00 00 20b 25003500 0 00 31
80
C al l T r(aNceO:TL B)[< c 02 22205e42d>] 25[3<c4
1Cda51lld> T] rac[e<c:0 11[<dc50616>15]6 e[3><c]0 10[<9c50517>fd] 016

Quoted 1 line

]

[C<cod01e:f d24775 >]f 8 [<cf002 15841 94>28] 00[< c0010 e110026 >0]1 [7<c5 01
e5847 e9c3>] 8[d <c07612 a0700 e>f]0
f 0 0 8 3[ <3c08 12a f
c18co>]ns ol<4e >[sh<cut01s eu1pb 4c..>].
[< c0109557>] kernel BUG at printk.c:327!

#1 lore raw
Quoted 3 lines · Vibol

While testing to see if SYSRQ-T would print the entire tasklist, a kernel bug popped up. All I have is the tasklist up to the point where the bug showed up.

Actually, if you look closely, there is an OOPS report in there at the end as well. Unfortunately, since the tasklist output also looks like an OOPS, it is basically impossible to extract.

Quoted 5 lines

SNIP

       [<c01e071d>] [<c01e079b>] [<c013cd93>] [<c013NceMIf5 W>]a tch<4d>og[<

cde
01t0ec95t5ed7> L]O CK
UPh ottnp Cd PU 0 , reSg is7FteFFrsF:FF

You can see it says "NMI Watchdog detected LOCKUP on CPU 0, registers:"

Quoted 1 line

[< c0109557>] kernel BUG at printk.c:327!

It may be that if the tasklist is too long, and it runs with interrupts disabled, that this will trigger the NMI watchdog timer. Since I don't know anything about the console, I can't help.

Cheers, Andreas

Signature · 3 lines
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
#2 lore raw
Quoted 6 lines · Andreas Dilger
Quoted 2 lines

[< c0109557>] kernel BUG at printk.c:327!

It may be that if the tasklist is too long, and it runs with interrupts disabled, that this will trigger the NMI watchdog timer. Since I don't know anything about the console, I can't help.

Yes, this is being a pest. I assume what is happening
is that a CPU is (slowly) doing a print to the serial console with console_sem held. Then the NMI watchdog fires and it reinitialises the console semaphore. On return from the NMI handler, console_sem is now released. It's off-by-one.

So subsequent attempts to use printk() hit the BUG(). ho-hum. The machine is of course completely kaput by this stage but this really should be fixed. This'll be fun to test.

A wider question is why are we still getting NMI watchdog triggering during SYSRQ-T on a serial console. This is the second time this has been reported. It can certainly happen if the serial port is set up for hardware handshaking and the modem control lines aren't set up right - we loop for ever in the serial console code. Fair enough.

Maybe the sysrq handler should communicate with the NMI watchdog code, and tell it not to fire while it's dumping stuff. hmm... Messy.

-