[LinuxPPS] 2.6.25.1 Problem

Johan Bejeryd johbe207 at student.liu.se
Sun May 4 19:33:05 CEST 2008


Hello,

I decided to test kernel 2.6.25.1 with the low level irq support, but
there is a problem. Directly after "./ppsctl /dev/ttyS0 enable"  this
error message appears:

BUG: unable to handle kernel NULL pointer dereference at 000000c3
IP: [<c0576a0f>] pps_register_cdev+0x94/0xc0
*pde = 34a93067 *pte = 00000000
Oops: 0002 [#1] SMP

I have not had such problems with earlier kernels and Linuxpps-patches
on this hardware. From recent postings it appears that the patch is
working for you. What could be causing my problem?

The used patch was ntp-pps-2.6.24-ter.diff.

Regards
/Johan

The whole error message follows for ppsctl and repeated when using setserial.

------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one+0x34/0xa6()
Modules linked in: autofs4 fuse sunrpc ipt_REJECT nf_conntrack_ipv4
iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6
xt_state nf_conntrack ip6table_filter ip6_tables x_tables loop
dm_multipath ipv6 snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq ppdev parport_pc parport
snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd dcdbas
iTCO_wdt e100 serio_raw i2c_i801 soundcore floppy iTCO_vendor_support
i2c_core mii pcspkr snd_page_alloc sg button sr_mod cdrom dm_snapshot
dm_zero dm_mirror dm_mod ata_piix pata_acpi ata_generic libata sd_mod
scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd [last unloaded:
microcode]
Pid: 2597, comm: ppsctl Not tainted 2.6.25.1 #5
 [<c0426505>] warn_on_slowpath+0x41/0x67
 [<c041fae6>] ? __wake_up+0x31/0x3b
 [<c0426a35>] ? wake_up_klogd+0x2e/0x31
 [<c0426bd8>] ? release_console_sem+0x1a0/0x1a8
 [<c04d8c96>] ? ida_get_new_above+0xd0/0x171
 [<c04b5c5c>] ? sysfs_ilookup_test+0x0/0x11
 [<c048d087>] ? ifind+0x24/0x87
 [<c04b5f3e>] sysfs_add_one+0x34/0xa6
 [<c04b5b22>] sysfs_add_file+0x45/0x6d
 [<c04b5bd6>] sysfs_create_file+0x20/0x22
 [<c0546f12>] device_add+0x19d/0x3ef
 [<c0547176>] device_register+0x12/0x15
 [<c05471e5>] device_create+0x6c/0x8f
 [<c0576a09>] pps_register_cdev+0x8e/0xc0
 [<c0577249>] pps_register_source+0x139/0x1b4
 [<c0540dda>] uart_register_pps_port+0x6e/0xaa
 [<c0541e52>] uart_ioctl+0x4c8/0x928
 [<c04691da>] ? handle_mm_fault+0x2f5/0x767
 [<c06128ed>] ? do_page_fault+0x39f/0x6eb
 [<c054277f>] ? uart_open+0x353/0x35e
 [<c054198a>] ? uart_ioctl+0x0/0x928
 [<c05287aa>] tty_ioctl+0xcc9/0xd3b
 [<c05351cd>] ? tty_audit_opening+0x1b/0x13d
 [<c0527aab>] ? tty_open+0x251/0x287
 [<c047ec8b>] ? chrdev_open+0x117/0x12c
 [<c047b231>] ? __dentry_open+0xf2/0x185
 [<c047b34b>] ? nameidata_to_filp+0x1f/0x33
 [<c047eb74>] ? chrdev_open+0x0/0x12c
 [<c047b38d>] ? do_filp_open+0x2e/0x35
 [<c048fd18>] ? mntput_no_expire+0x16/0x69
 [<c0486e0c>] vfs_ioctl+0x50/0x69
 [<c048705e>] do_vfs_ioctl+0x239/0x24c
 [<c04870b1>] sys_ioctl+0x40/0x5b
 [<c0405a8e>] syscall_call+0x7/0xb
 =======================
---[ end trace e9f18083c1d2704c ]---
BUG: unable to handle kernel NULL pointer dereference at 000000c3
IP: [<c0576a0f>] pps_register_cdev+0x94/0xc0
*pde = 34a93067 *pte = 00000000
Oops: 0002 [#1] SMP
Modules linked in: autofs4 fuse sunrpc ipt_REJECT nf_conntrack_ipv4
iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6
xt_state nf_conntrack ip6table_filter ip6_tables x_tables loop
dm_multipath ipv6 snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq ppdev parport_pc parport
snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd dcdbas
iTCO_wdt e100 serio_raw i2c_i801 soundcore floppy iTCO_vendor_support
i2c_core mii pcspkr snd_page_alloc sg button sr_mod cdrom dm_snapshot
dm_zero dm_mirror dm_mod ata_piix pata_acpi ata_generic libata sd_mod
scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd [last unloaded:
microcode]

Pid: 2597, comm: ppsctl Not tainted (2.6.25.1 #5)
EIP: 0060:[<c0576a0f>] EFLAGS: 00210286 CPU: 0
EIP is at pps_register_cdev+0x94/0xc0
EAX: ffffffef EBX: 00000000 ECX: c1809634 EDX: 00000000
ESI: f4b68400 EDI: f4b68450 EBP: f4b0cd14 ESP: f4b0ccf8
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process ppsctl (pid: 2597, ti=f4b0c000 task=f4b62e80 task.ti=f4b0c000)
Stack: f788dd00 f78a1000 0fd00000 c06c8aac 00000000 00000000 f78a5068 f4b0cd40
       c0577249 f78a5018 f4b68400 00000020 c06c13b8 00000033 00000000 f78a5000
       f7b57000 c0820a08 f4b0cd5c c0540dda f78a5018 f78a5038 00000000 00000000
Call Trace:
 [<c0577249>] ? pps_register_source+0x139/0x1b4
 [<c0540dda>] ? uart_register_pps_port+0x6e/0xaa
 [<c0541e52>] ? uart_ioctl+0x4c8/0x928
 [<c04691da>] ? handle_mm_fault+0x2f5/0x767
 [<c06128ed>] ? do_page_fault+0x39f/0x6eb
 [<c054277f>] ? uart_open+0x353/0x35e
 [<c054198a>] ? uart_ioctl+0x0/0x928
 [<c05287aa>] ? tty_ioctl+0xcc9/0xd3b
 [<c05351cd>] ? tty_audit_opening+0x1b/0x13d
 [<c0527aab>] ? tty_open+0x251/0x287
 [<c047ec8b>] ? chrdev_open+0x117/0x12c
 [<c047b231>] ? __dentry_open+0xf2/0x185
 [<c047b34b>] ? nameidata_to_filp+0x1f/0x33
 [<c047eb74>] ? chrdev_open+0x0/0x12c
 [<c047b38d>] ? do_filp_open+0x2e/0x35
 [<c048fd18>] ? mntput_no_expire+0x16/0x69
 [<c0486e0c>] ? vfs_ioctl+0x50/0x69
 [<c048705e>] ? do_vfs_ioctl+0x239/0x24c
 [<c04870b1>] ? sys_ioctl+0x40/0x5b
 [<c0405a8e>] ? syscall_call+0x7/0xb
 =======================
Code: 00 83 c4 10 eb 48 ff b6 b4 00 00 00 68 ac 8a 6c c0 ff b6 f8 00
00 00 ff 76 4c ff 35 7c 2f 82 c0 e8 70 07 fd ff 89 86 f4 00 00 00 <89>
b0 d4 00 00 00 a1 78 2f 82 c0 ff b6 b4 00 00 00 c1 e8 14 50
EIP: [<c0576a0f>] pps_register_cdev+0x94/0xc0 SS:ESP 0068:f4b0ccf8
---[ end trace e9f18083c1d2704c ]---



------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one+0x34/0xa6()
Modules linked in: autofs4 fuse sunrpc ipt_REJECT nf_conntrack_ipv4
iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6
xt_state nf_conntrack ip6table_filter ip6_tables x_tables loop
dm_multipath ipv6 snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss
snd_mixer_oss snd_pcm snd_timer snd ppdev i2c_i801 dcdbas floppy
parport_pc parport i2c_core serio_raw iTCO_wdt e100 mii
iTCO_vendor_support pcspkr soundcore snd_page_alloc sg button sr_mod
cdrom dm_snapshot dm_zero dm_mirror dm_mod ata_piix pata_acpi
ata_generic libata sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd
ehci_hcd [last unloaded: microcode]
Pid: 2583, comm: setserial Not tainted 2.6.25.1 #5
 [<c0426505>] warn_on_slowpath+0x41/0x67
 [<c041fae6>] ? __wake_up+0x31/0x3b
 [<c0426a35>] ? wake_up_klogd+0x2e/0x31
 [<c0426bd8>] ? release_console_sem+0x1a0/0x1a8
 [<c04d8c96>] ? ida_get_new_above+0xd0/0x171
 [<c04b5c5c>] ? sysfs_ilookup_test+0x0/0x11
 [<c048d087>] ? ifind+0x24/0x87
 [<c04b5f3e>] sysfs_add_one+0x34/0xa6
 [<c04b5b22>] sysfs_add_file+0x45/0x6d
 [<c04b5bd6>] sysfs_create_file+0x20/0x22
 [<c0546f12>] device_add+0x19d/0x3ef
 [<c0547176>] device_register+0x12/0x15
 [<c05471e5>] device_create+0x6c/0x8f
 [<c0576a09>] pps_register_cdev+0x8e/0xc0
 [<c0577249>] pps_register_source+0x139/0x1b4
 [<c0540dda>] uart_register_pps_port+0x6e/0xaa
 [<c0541e52>] uart_ioctl+0x4c8/0x928
 [<c04691da>] ? handle_mm_fault+0x2f5/0x767
 [<c06128ed>] ? do_page_fault+0x39f/0x6eb
 [<c054277f>] ? uart_open+0x353/0x35e
 [<c054198a>] ? uart_ioctl+0x0/0x928
 [<c05287aa>] tty_ioctl+0xcc9/0xd3b
 [<c05351cd>] ? tty_audit_opening+0x1b/0x13d
 [<c0527aab>] ? tty_open+0x251/0x287
 [<c047ec8b>] ? chrdev_open+0x117/0x12c
 [<c047b231>] ? __dentry_open+0xf2/0x185
 [<c047b34b>] ? nameidata_to_filp+0x1f/0x33
 [<c047eb74>] ? chrdev_open+0x0/0x12c
 [<c047b38d>] ? do_filp_open+0x2e/0x35
 [<c048fd18>] ? mntput_no_expire+0x16/0x69
 [<c0486e0c>] vfs_ioctl+0x50/0x69
 [<c048705e>] do_vfs_ioctl+0x239/0x24c
 [<c04870b1>] sys_ioctl+0x40/0x5b
 [<c0405a8e>] syscall_call+0x7/0xb
 [<c0610000>] ? do_nanosleep+0x4c/0x8b
 =======================
---[ end trace bddf9f742e0e861d ]---


BUG: unable to handle kernel NULL pointer dereference at 000000c3
IP: [<c0576a0f>] pps_register_cdev+0x94/0xc0
*pde = 34755067 *pte = 00000000
Oops: 0002 [#1] SMP
Modules linked in: autofs4 fuse sunrpc ipt_REJECT nf_conntrack_ipv4
iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6
xt_state nf_conntrack ip6table_filter ip6_tables x_tables loop
dm_multipath ipv6 snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss
snd_mixer_oss snd_pcm snd_timer snd ppdev i2c_i801 dcdbas floppy
parport_pc parport i2c_core serio_raw iTCO_wdt e100 mii
iTCO_vendor_support pcspkr soundcore snd_page_alloc sg button sr_mod
cdrom dm_snapshot dm_zero dm_mirror dm_mod ata_piix pata_acpi
ata_generic libata sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd
ehci_hcd [last unloaded: microcode]

Pid: 2583, comm: setserial Not tainted (2.6.25.1 #5)
EIP: 0060:[<c0576a0f>] EFLAGS: 00210282 CPU: 0
EIP is at pps_register_cdev+0x94/0xc0
EAX: ffffffef EBX: 00000000 ECX: f4772a00 EDX: f4772e00
ESI: f4772c00 EDI: f4772c50 EBP: f470ed14 ESP: f470ecf8
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process setserial (pid: 2583, ti=f470e000 task=f444ce80 task.ti=f470e000)
Stack: f787b400 f78a1000 0fd00000 c06c8aac 00000000 00000000 f78a5068 f470ed40
       c0577249 f78a5018 f4772c00 00000020 c06c13b8 00000033 00000000 f78a5000
       f7b56000 c0820a08 f470ed5c c0540dda f78a5018 f78a5038 00000000 00000000
Call Trace:
 [<c0577249>] ? pps_register_source+0x139/0x1b4
 [<c0540dda>] ? uart_register_pps_port+0x6e/0xaa
 [<c0541e52>] ? uart_ioctl+0x4c8/0x928
 [<c04691da>] ? handle_mm_fault+0x2f5/0x767
 [<c06128ed>] ? do_page_fault+0x39f/0x6eb
 [<c054277f>] ? uart_open+0x353/0x35e
 [<c054198a>] ? uart_ioctl+0x0/0x928
 [<c05287aa>] ? tty_ioctl+0xcc9/0xd3b
 [<c05351cd>] ? tty_audit_opening+0x1b/0x13d
 [<c0527aab>] ? tty_open+0x251/0x287
 [<c047ec8b>] ? chrdev_open+0x117/0x12c
 [<c047b231>] ? __dentry_open+0xf2/0x185
 [<c047b34b>] ? nameidata_to_filp+0x1f/0x33
 [<c047eb74>] ? chrdev_open+0x0/0x12c
 [<c047b38d>] ? do_filp_open+0x2e/0x35
 [<c048fd18>] ? mntput_no_expire+0x16/0x69
 [<c0486e0c>] ? vfs_ioctl+0x50/0x69
 [<c048705e>] ? do_vfs_ioctl+0x239/0x24c
 [<c04870b1>] ? sys_ioctl+0x40/0x5b
 [<c0405a8e>] ? syscall_call+0x7/0xb
 [<c0610000>] ? do_nanosleep+0x4c/0x8b
 =======================
Code: 00 83 c4 10 eb 48 ff b6 b4 00 00 00 68 ac 8a 6c c0 ff b6 f8 00
00 00 ff 76 4c ff 35 7c 2f 82 c0 e8 70 07 fd ff 89 86 f4 00 00 00 <89>
b0 d4 00 00 00 a1 78 2f 82 c0 ff b6 b4 00 00 00 c1 e8 14 50
EIP: [<c0576a0f>] pps_register_cdev+0x94/0xc0 SS:ESP 0068:f470ecf8
---[ end trace bddf9f742e0e861d ]---



More information about the LinuxPPS mailing list