[ENBD] enbd-2.4.32 problems

Arne Wiebalck wiebalck at kip.uni-heidelberg.de
Mon Jan 12 05:17:11 MST 2004


hi peter,

I just wanted to test the md5sum changes you made for, but I have some
problems with 2.4.32 ... it compiles fine, but the start of enbd-client
leads to a segmentation violation and a kernel oops, see logs below.

the problem is the open call enbd-client in l. 3395, where we try to open
the device. the ENBD_ALERT in line 5488 is the last message I get from the
driver. somehwere in that function we get this wrong address the kernel
complains about. this media_changed check is a new one, isn't it?

I'll see if I can find out what line it is exactly ...


arne



my machines
-----------

 Dual Pentium III 800MHz
 Linux 2.4.23
 gcc version 3.3.1

log:
----

e007:/home/wiebalck/nbd # /tmp/enbd-client e005:5000 -n 1 /dev/nda
enbd-client  3034: client says target 0 is e005:5000
enbd-client  3034: client (-1) opens device /dev/nda
Segmentation fault

/var/log/messages:
------------------

Jan 12 13:02:28 e006 kernel: ENBD enbd.c #7303[0]: enbd_init Network Block
Device support by pavel at elf.mj.gts.cz
Jan 12 13:02:28 e006 kernel: ENBD enbd.c #7304[0]: enbd_init Network Block
Device port to 2.0 by ptb at it.uc3m.es
Jan 12 13:02:28 e006 kernel: ENBD enbd.c #7306[0]: enbd_init Network Block
Device move networking to user space by amarin at it.uc3m.es
Jan 12 13:02:28 e006 kernel: ENBD enbd.c #7308[0]: enbd_init Enhanced
Network Block Device 2.4.32 Date: Mon Jan 12 13:01:32 CET 2004 by
ptb at it.uc3m.es
Jan 12 13:02:28 e006 kernel: ENBD enbd.c #7326[0]: enbd_init registered
ENBD at major 43
Jan 12 13:02:38 e006 kernel: ENBD enbd.c #1327[0]: enbd_open setup device
0
Jan 12 13:02:38 e006 kernel: ENBD enbd.c #7233[0]: enbd_setup made
/proc/sys/dev/enbd/devices a, inode 1
Jan 12 13:02:38 e006 kernel: ENBD enbd.c #1374[0]: enbd_open reset speed
counters to zero for device nda
Jan 12 13:02:38 e006 kernel: ENBD enbd.c #1388[0]: enbd_open initialized
device nda
Jan 12 13:02:38 e006 kernel: ENBD enbd.c #5488[0]: enbd_media_changed
change nda received
Jan 12 13:02:38 e006 kernel: Unable to handle kernel NULL pointer
dereference at virtual address 00000004
Jan 12 13:02:38 e006 kernel:  printing eip:
Jan 12 13:02:38 e006 kernel: e09a5c0e
Jan 12 13:02:38 e006 kernel: *pde = 00000000
Jan 12 13:02:38 e006 kernel: Oops: 0000
Jan 12 13:02:38 e006 kernel: CPU:    0
Jan 12 13:02:38 e006 kernel: EIP:
0010:[mousedev:__insmod_mousedev_O/lib/modules/2.4.23/kernel/drivers/input+4294622222/96]
Not tainted
Jan 12 13:02:38 e006 kernel: EIP:    0010:[<e09a5c0e>]    Not tainted
Jan 12 13:02:38 e006 kernel: EFLAGS: 00010286
Jan 12 13:02:38 e006 kernel: eax: 00000000   ebx: 00002b00   ecx: 00000001
edx: c025611c
Jan 12 13:02:38 e006 kernel: esi: dba86978   edi: dba86800   ebp: dadefed4
esp: dadefeac
Jan 12 13:02:38 e006 kernel: ds: 0018   es: 0018   ss: 0018
Jan 12 13:02:38 e006 kernel: Process enbd-client (pid: 3188,
stackpage=dadef000)
Jan 12 13:02:38 e006 kernel: Stack: dadefec0 dba86978 00000086 00000001
c02ce377 8004ab2a 00000017 00002b00
Jan 12 13:02:38 e006 kernel:        e09ac324 dbc19440 dadeff18 c0149616
00002b00 dba86800 dba86800 00000246
Jan 12 13:02:38 e006 kernel:        e099fda2 00002b00 dba86978 e09ac2e8
00000246 2b000001 ffffffff 00000000
Jan 12 13:02:38 e006 kernel: Call Trace:
[mousedev:__insmod_mousedev_O/lib/modules/2.4.23/kernel/drivers/input+4294648612/96]
[check_disk_change+86/160]
[mousedev:__insmod_mousedev_O/lib/modules/2.4.23/kernel/drivers/input+4294598050/96]
[mousedev:__insmod_mousedev_O/lib/modules/2.4.23/kernel/drivers/input+4294648552/96]
[do_open+339/432]
Jan 12 13:02:38 e006 kernel: Call Trace:    [<e09ac324>] [<c0149616>]
[<e099fda2>] [<e09ac2e8>] [<c0149813>]
Jan 12 13:02:38 e006 kernel:   [blkdev_open+56/80] [dentry_open+474/528]
[filp_open+92/112] [sys_open+83/192] [system_call+51/56]
Jan 12 13:02:38 e006 kernel:   [<c0149968>] [<c0140fea>] [<c0140dfc>]
[<c0141203>] [<c0107577>]
Jan 12 13:02:38 e006 kernel:
Jan 12 13:02:38 e006 kernel: Code: ff 50 04 8d 45 f0 83 c4 0c 50 8b 45 ec
50 57 e8 ee e1 ff ff


**********************************************************************
 Arne Wiebalck                        Kirchhoff Institute for Physics
                                           Technical Computer Science
                                                  INF 227, Room 3.315
                                                   D-69120 Heidelberg

 e-mail: wiebalck at kip.uni-heidelberg.de
 web   : http://www.kip.uni-heidelberg.de    Tel.: (+49) 6221/54-9816
**********************************************************************





More information about the ENBD mailing list