lkml.org 
[lkml]   [2001]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectOops in md_error/set_disk_faulty
Date
Kernel: 2.4.8-ac8
raidsetfaulty v0.3d compiled for md raidtools-0.90

I accidentally entered the wrong disk device in a raidsetfaulty command,
which caused a kernel oops and appears to have locked the thread (so that
subsequent commands just hang).

The md device in question was:

md2 : active raid1 sdb4[0] sda4[1]
5839552 blocks [2/2] [UU]

And the command I entered was

# raidsetfaulty /dev/md2 /dev/hdb4
Segmentation fault

Then, I realized I put in the wrong device, so I tried to fix it...

# raidsetfaulty /dev/md2 /dev/sdb4
[hangs eternally]

I checked the kernel logs, and sure enough:

Unable to handle kernel NULL pointer dereference at virtual address 00000034
printing eip:
c01f36ff
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c01f36ff>]
EFLAGS: 00010292
eax: 00000000 ebx: 00000000 ecx: f7d33494 edx: f7dc2920
esi: f7d33480 edi: 00000344 ebp: 00000000 esp: e57d3ed0
ds: 0018 es: 0018 ss: 0018
Process raidsetfaulty (pid: 9586, stackpage=e57d3000)
Stack: 00000344 f7d33480 00000002 c01f2b26 f7d33480 00000344 00000902
f7d33480
00000344 c01f325f f7d33480 00000344 00000929 ffffffe7 00000344
c2e86de0
f74edd60 f74edd60 c061cba0 00000000 f7d33480 00000000 bffffe88
bffffb1c
Call Trace: [<c01f2b26>] [<c01f325f>] [<c0146969>] [<c013bac8>] [<c0142af9>]

[<c0106d4b>]

>>EIP; c01f36ff <md_error+43/bc> <=====
Trace; c01f2b26 <set_disk_faulty+22/28>
Trace; c01f325f <md_ioctl+733/7d0>
Trace; c0146969 <dput+19/144>
Trace; c013bac8 <blkdev_ioctl+28/38>
Trace; c0142af9 <sys_ioctl+2ad/2f4>
Trace; c0106d4b <system_call+33/38>
Code; c01f36ff <md_error+43/bc>
00000000 <_EIP>:
Code; c01f36ff <md_error+43/bc> <=====
0: 83 7b 34 00 cmpl $0x0,0x34(%ebx) <=====
Code; c01f3703 <md_error+47/bc>
4: 74 0b je 11 <_EIP+0x11> c01f3710
<md_error+54/bc>
Code; c01f3705 <md_error+49/bc>
6: 31 c0 xor %eax,%eax
Code; c01f3707 <md_error+4b/bc>
8: eb 6b jmp 75 <_EIP+0x75> c01f3774
<md_error+b8/bc>
Code; c01f3709 <md_error+4d/bc>
a: 8d b4 26 00 00 00 00 lea 0x0(%esi,1),%esi
Code; c01f3710 <md_error+54/bc>
11: 8b 46 04 mov 0x4(%esi),%eax

--
Michael S. Fischer / michael at auctionwatch.com
Systems Engineer, AuctionWatch Inc. / Phone: +1 650 808 5842
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [W:0.053 / U:3.080 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site