[ENBD] enbd module 2.6.13-15 kernel fails to modprobe or insmod
Norbert Pieroth
pieroth.n at zdf.de
Mon Aug 7 10:04:19 MDT 2006
Hi all,
I'm a newbie on enbd. I want to use enbd to export a 4 TB Device via network.
I tried to build 2.4.32 on a suse 10.0 and 9.3 on different machines.
I used the standard kernel and removed the nbd kernel driver, as prescribed in
the INSTALL file.
The builds worked out (make config all and make modules), the client/
server userland binarys and kernel modules were build, but when I tried to modprobe or
insmod enbd I got a segmentation fault and a kernel stack trace.
I've read about the problem with the segmentation fault in the mailing list but I can't
get a clue how the problem was really solved.
Is there a patch available, which solves this problem ?
modprobe enbd:
Here is the message of the kernel trace:
ENBD #5348[0]: enbd_init Network Block Device originally by pavel at elf.mj.gts.cz
ENBD #5349[0]: enbd_init Network Block Device port to 2.0 by ptb at it.uc3m.es
ENBD #5351[0]: enbd_init Network Block Device move networking to user space by a
marin at it.uc3m.es
ENBD #5353[0]: enbd_init Enhanced Network Block Device 2.4.30 $Date: 2002/09/17
16:33:22 $ by ptb at it.uc3m.es
Unable to handle kernel NULL pointer dereference at virtual address 0000033e
printing eip:
c025a0fd
*pde = 00000000
Oops: 0002 [#1]
Modules linked in: enbd nls_utf8 hfsplus vfat fat subfs speedstep_lib freq_table
ipv6 snd_pcm_oss snd_mixer_oss snd_seq_midi button snd_seq_midi_event battery s
nd_seq ac edd snd_ens1371 gameport snd_rawmidi snd_seq_device snd_ac97_codec i2c
_piix4 i2c_core snd_pcm uhci_hcd pcnet32 snd_timer mii snd soundcore shpchp pci_
hotplug snd_page_alloc snd_ac97_bus intel_agp agpgart generic usbcore parport_pc
lp parport dm_mod reiserfs sg fan thermal processor ide_cd cdrom BusLogic piix
sd_mod scsi_mod ide_disk ide_core
CPU: 0
EIP: 0060:[<c025a0fd>] Tainted: G U VLI
EFLAGS: 00010212 (2.6.13-15-default)
EIP is at blk_queue_max_sectors+0x2d/0x40
eax: 0000ce00 ebx: 00000200 ecx: 00000068 edx: 00000067
esi: cc30902c edi: cd9fe5a0 ebp: cd9fcae0 esp: c5285c94
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 5447, threadinfo=c5284000 task=ca17aa40)
Stack: ca1ae800 cd800140 cc30902c 00000200 cc30902c cc30902c c1842400 00000001
4015b007 cd9fc7cc c5285dac 4015b007 00000000 c5285db0 00000000 c732996c
cbca2e18 cb91f1b4 cbca29a0 00000002 00000001 4015b007 c9c7d080 c85d317c
Call Trace:
[<cd800140>] init_module+0x140/0xdd1 [enbd]
[<c014aeca>] __handle_mm_fault+0xda/0x130
[<c0117497>] do_page_fault+0x127/0x5ef
[<c012deb0>] autoremove_wake_function+0x0/0x30
[<cd731bac>] do_journal_end+0x8ac/0x9b0 [reiserfs]
[<c0142f23>] __do_page_cache_readahead+0xa3/0x120
[<c0140af9>] buffered_rmqueue+0xb9/0x1f0
[<c0118be7>] activate_task+0x57/0x70
[<c016f8f0>] alloc_inode+0x150/0x1a0
[<c0191bd0>] init_dir+0x0/0x20
[<c0191b17>] sysfs_new_dirent+0x17/0x60
[<c0191b70>] sysfs_make_dirent+0x10/0x70
[<c01917aa>] sysfs_add_file+0x3a/0x60
[<c0193140>] create_files+0x30/0x60
[<cd9eb000>] rq_set_seqno+0x0/0x10 [enbd]
[<c014faae>] unmap_vm_area+0x6e/0xc0
[<c0133f27>] load_module+0x917/0xaa0
[<c014c9f8>] __do_mmap_pgoff+0x508/0x780
[<cd800000>] init_module+0x0/0xdd1 [enbd]
[<c0134171>] sys_init_module+0xa1/0x180
[<c0102d1b>] sysenter_past_esp+0x54/0x79
Code: c3 89 d0 25 ff ff 00 00 c1 e0 09 3d ff 0f 00 00 77 19 6a 08 68 71 9d 30 c0
68 1d 88 32 c0 e8 5b 27 ec ff ba 08 00 00 00 83 c4 0c <66> 89 93 3e 01 00 00 66
89 93 3c 01 00 00 5b c3 8d 76 00 66 85
Here is, what modinfo says about the two modules:
filename: /tmp/enbd.ko
license: GPL
description: Enhanced Network Block Device 2.4.30 $Date: 2002/09/17 16:33:22 $
author: Peter T. Breuer, Andres Marin
srcversion: EA50B1CAEC86513D0CDB5AE
depends:
vermagic: 2.6.13-15-default 586 REGPARM gcc-4.0
parm: rahead:int
parm: sync:int
parm: merge_requests:int
parm: buf_sectors:int
parm: show_errs:int
parm: direct:int
parm: buffer_writes:int
parm: major:int
parm: md5sum:int
parm: md5_on_threshold:int
parm: md5_off_threshold:int
parm: req_timeo:int
filename: /tmp/enbd_ioctl.ko
license: GPL
description: Enhanced Network Block Device Remote Ioctl
author: Peter T. Breuer
srcversion: 11B4CBD90C1A340EE525E90
depends: enbd
vermagic: 2.6.13-15-default 586 REGPARM gcc-4.0
If there is no patch available, what do I have to change in Version 2.4.32
to make the module work out ?
Kind regards
N.Pieroth
More information about the ENBD
mailing list