Segmentation fault for kernel 2.6.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I have implemented a function called resident_mem_size for kernel 2.6.1. It is working well for kernel 2.6.1. But for kernel 2.6.9 a segmentation fault is thrown. I checked the log file but I did not understand the message. Could anyone help me?

The implementation is a new entry for proc. When I use the cat command, the segmentation fault is thrown.

Here is the message in the log file.

Unable to handle kernel NULL pointer dereference at virtual address 0000001c

Nov 2 14:44:12 localhost kernel: printing eip:

Nov 2 14:44:12 localhost kernel: c0187480

Nov 2 14:44:12 localhost kernel: *pde = 00000000

Nov 2 14:44:12 localhost kernel: Oops: 0000 [#1]

Nov 2 14:44:12 localhost kernel: PREEMPT

Nov 2 14:44:12 localhost kernel: Modules linked in: snd_mixer_oss radeon ipv6 ds parport_pc lp parport thermal fan button processor ac battery af_packet eth1394 ohci1394 ieee1394 snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd tsdev mousedev joydev usbhid uhci_hcd pci_hotplug intel_agp agpgart evdev ehci_hcd usbcore i810_audio ac97_codec soundcore b44 mii yenta_socket pcmcia_core nls_cp437 nls_iso8859_1 dm_mod ide_cd cdrom rtc vfat fat ntfs isofs ext2 ext3 jbd mbcache ide_generic via82cxxx trm290 triflex slc90e66 sis5513 siimage serverworks sc1200 rz1000 piix pdc202xx_old pdc202xx_new ns87415 hpt366 ide_disk hpt34x generic cy82c693 cs5530 cmd64x atiixp amd74xx alim15x3 aec62xx ide_core unix

Nov 2 14:44:12 localhost kernel: CPU: 0

Nov 2 14:44:12 localhost kernel: EIP: 0060:[resident_mem_size+32/112] Not tainted VLI

Nov 2 14:44:12 localhost kernel: EFLAGS: 00210287 (2.6.9)

Nov 2 14:44:12 localhost kernel: EIP is at resident_mem_size+0x20/0x80

Nov 2 14:44:12 localhost kernel: eax: ffffe000 ebx: fffff000 ecx: ffffe000 edx: 00000000

Nov 2 14:44:12 localhost kernel: esi: 00000000 edi: d64dbf20 ebp: 00000000 esp: d64dbee8

Nov 2 14:44:12 localhost kernel: ds: 007b es: 007b ss: 0068

Nov 2 14:44:12 localhost kernel: Process cat (pid: 3468, threadinfo=d64da000 task=d8035020)

Nov 2 14:44:12 localhost kernel: Stack: c03676e0 00000000 d8c625c0 c018751b 00000000 ffffe000 fffff000 d64dbf20

Nov 2 14:44:12 localhost kernel: d903a700 d8035560 c011b5cf d903a720 c036004c d8b7f3c0 00000000 00000000

Nov 2 14:44:12 localhost kernel: d8c625c0 c03676e0 000002a3 c0176cfb d8c625c0 c03676e0 d64dbf4c d8c625d8

Nov 2 14:44:12 localhost kernel: Call Trace:

Nov 2 14:44:12 localhost kernel: [show_smap+75/592] show_smap+0x3b/0x130

Nov 2 14:44:12 localhost kernel: [mmput+31/176] mmput+0x1f/0xb0

Nov 2 14:44:12 localhost kernel: [seq_read+443/688] seq_read+0x1bb/0x2b0

Nov 2 14:44:12 localhost kernel: [vfs_read+237/352] vfs_read+0xed/0x160

Nov 2 14:44:12 localhost kernel: [sys_read+81/128] sys_read+0x51/0x80

Nov 2 14:44:12 localhost kernel: [syscall_call+7/11] syscall_call+0x7/0xb

Nov 2 14:44:12 localhost kernel: Code: b8 01 00 00 00 89 54 24 34 eb 91 57 56 53 8b 5c 24 18 8b 4c 24 14 8b 74 24 10 8b 7c 24 1c 39 d9 73 22 89 f6 8d bc 27 00 00 00 00 <8b> 46 1c 89 ca c1 ea 16 8b 14 90 85 d2 75 11 81 c1 00 10 00 00

 

BR,

 

Mauricio Lin.



************************************************
Conhecimento vem do seu instrutor;
Sabedoria vem do seu interior.
(Bruce Lee)
************************************************


Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux