Skip to contentSkip to conversation

insmod problem : Error seeking in /dev/kmem in kernel 2.4.22 on h

DISCUSSION Deepak Kumar Gupta, Noida 2 participants 2 messages Dec 7, 2003 – Dec 8, 2003

lore
Share & tools
lore
#0 lore raw

Hello List

I am using 2 CPU (ia64) HP-zx-6000 workstation with kernel 2.4.22. I am facing following problem: -

1. When I am trying to insert my own LKM, the klogd displays following messages in /var/log/messages. Note that I have restarted klogd to have error message on console (using command klogd -c 8). Modutils version is 2.4.13 (from insmod -V).

kernel: klogd 1.4.1 log source = /proc/kmsg started
kernel: Inspecting /boot/system.map
kernel: Loaded 22816 symbols from /boot/System.map
kernel: Symbols match kernel version 2.4.22
kernel: Error seeking in /dev/kmem
kernel: Symbol #mymodule, value 00829000
kernel: Error adding kernel module table entry

2. After having above error, still the lsmod is able to show the entry of module.

Can anybody tell me, what is the reason for this problem ?

Please CC reply to me also as I am not member of list.

Thanks in advance.

Thanks and Best Regards
Deepak Kumar Gupta
HCL Technologies Limited
India.

#1 lore raw

Re: insmod problem : Error seeking in /dev/kmem in kernel 2.4.22 on h pzx-6000 (2 CPU IA64 machine)

Quoted 18 lines · Noida

Hello List

I am using 2 CPU (ia64) HP-zx-6000 workstation with kernel 2.4.22. I am facing following problem: -

1. When I am trying to insert my own LKM, the klogd displays following messages in /var/log/messages. Note that I have restarted klogd to have error message on console (using command klogd -c 8). Modutils version is 2.4.13 (from insmod -V).

kernel: klogd 1.4.1 log source = /proc/kmsg started
kernel: Inspecting /boot/system.map
kernel: Loaded 22816 symbols from /boot/System.map
kernel: Symbols match kernel version 2.4.22
kernel: Error seeking in /dev/kmem
kernel: Symbol #mymodule, value 00829000
kernel: Error adding kernel module table entry

Quoted 4 lines

2. After having above error, still the lsmod is able to show the entry of module.

Can anybody tell me, what is the reason for this problem ?

It is a bug in klogd, tripped by the obsolete code in klogd that tries to match addresses to symbols and almost always gets it wrong. Add
KLOGD_OPTIONS="-x"
to /etc/sysconfig/syslog to disabke the broken klogd code.