This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug kprobes/4531] systemtap tests fail produce kernel oops on some configs of 2.6.22-rc2 kernel


------- Additional Comments From wcohen at redhat dot com  2007-05-22 21:08 -------
I added a diagnostic print to the C code, manually compiled, then run the
module. The machine remained up to get get oops from the /var/log/messages.
Looking at the  disassembled kernel image it appears to be trying to put the
probe in the correct place for 'probe kernel.function("schedule")':

ffffffff8043ccc0 <schedule>:
ffffffff8043ccc0:       55                      push   %rbp
ffffffff8043ccc1:       48 89 e5                mov    %rsp,%rbp
ffffffff8043ccc4:       41 57                   push   %r15

The output in /var/log/messages:

May 22 15:27:43 dhcp231-176 kernel: orig address = 0000000000235cc0, relocated
address = ffffffff8043ccc0
May 22 15:27:43 dhcp231-176 kernel: Unable to handle kernel paging request at
ffffffff8043ccc0 RIP: 
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff804400d3>] arch_arm_kprobe+0x4/0x8
May 22 15:27:43 dhcp231-176 kernel: PGD 203067 PUD 205063 PMD 37ce5163 PTE 43c161
May 22 15:27:43 dhcp231-176 kernel: Oops: 0003 [1] SMP 
May 22 15:27:43 dhcp231-176 kernel: CPU 0 
May 22 15:27:43 dhcp231-176 kernel: Modules linked in: stap_2727 autofs4 hidp
rfcomm l2cap bluetooth ipv6 nf_conntrack_netbios_ns ipt_REJECT nf_conntrack_ipv4
xt_state nf_conntrack nfnetlink xt_tcpudp iptable_filter ip_tables x_tables
cpufreq_ondemand video sbs button dock battery ac lp loop snd_intel8x0
snd_seq_dummy snd_intel8x0m snd_ac97_codec ac97_bus snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss 8139cp
fw_ohci bcm43xx ieee80211softmac ieee80211 fw_core 8139too mii ieee80211_crypt
snd_pcm snd_timer parport_pc crc_itu_t parport snd serio_raw soundcore
snd_page_alloc sr_mod k8temp cdrom shpchp i2c_nforce2 i2c_core hwmon joydev sg
dm_snapshot dm_zero dm_mirror dm_mod sata_nv ata_generic pata_amd libata sd_mod
scsi_mod ext3 jbd mbcache ehci_hcd ohci_hcd uhci_hcd
May 22 15:27:43 dhcp231-176 kernel: Pid: 2781, comm: staprun Not tainted
2.6.22-rc2 #1
May 22 15:27:43 dhcp231-176 kernel: RIP: 0010:[<ffffffff804400d3>] 
[<ffffffff804400d3>] arch_arm_kprobe+0x4/0x8
May 22 15:27:43 dhcp231-176 kernel: RSP: 0018:ffff810030b59dd0  EFLAGS: 00010212
May 22 15:27:43 dhcp231-176 kernel: RAX: ffffffff8043ccc0 RBX: 0000000000000000
RCX: 0000000000000282
May 22 15:27:43 dhcp231-176 kernel: RDX: 0000000000000000 RSI: 0000000000000212
RDI: ffffffff88408e60
May 22 15:27:43 dhcp231-176 kernel: RBP: ffffffff88408e60 R08: ffffffff8055fa18
R09: 0000000000000010
May 22 15:27:43 dhcp231-176 kernel: R10: ffff810002031d00 R11: ffffffff80323fd7
R12: 0000000000000000
May 22 15:27:43 dhcp231-176 kernel: R13: ffff810030b59f50 R14: 0000000000000000
R15: 0000000000000000
May 22 15:27:43 dhcp231-176 kernel: FS:  00002b470d28c8f0(0000)
GS:ffffffff805a4000(0000) knlGS:0000000000000000
May 22 15:27:43 dhcp231-176 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
000000008005003b
May 22 15:27:43 dhcp231-176 kernel: CR2: ffffffff8043ccc0 CR3: 0000000030b1d000
CR4: 00000000000006e0
May 22 15:27:43 dhcp231-176 kernel: Process staprun (pid: 2781, threadinfo
ffff810030b58000, task ffff8100322250c0)
May 22 15:27:43 dhcp231-176 kernel: Stack:  ffffffff804417f3 ffffffff8043ccc0
0000000000000000 ffffffff8840478c
May 22 15:27:43 dhcp231-176 kernel:  ffffffff88402f6b 0000000000000292
0000000000000292 ffff810030b59e58
May 22 15:27:43 dhcp231-176 kernel:  0000000000000008 00007fff9d833c74
ffffffff88402ff2 00007fff9d833c74
May 22 15:27:43 dhcp231-176 kernel: Call Trace:
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff804417f3>]
__register_kprobe+0x28a/0x2ed
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff8043ccc0>]
__sched_text_start+0x0/0x8d7
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff88402f6b>]
:stap_2727:systemtap_module_init+0x260/0x2de
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff88402ff2>]
:stap_2727:probe_start+0x9/0x13
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff8840301d>]
:stap_2727:_stp_handle_start+0x21/0x7c
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff884031f0>]
:stap_2727:_stp_ctl_write_cmd+0x178/0x6ee
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff802e7016>] file_has_perm+0x94/0xa3
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff80231798>] do_fork+0x11f/0x1a8
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff8028e3ad>] vfs_write+0xce/0x177
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff8028e970>] sys_write+0x45/0x6e
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff80209b9e>] system_call+0x7e/0x83
May 22 15:27:43 dhcp231-176 kernel:  [<ffffffff80209b9e>] system_call+0x7e/0x83
May 22 15:27:43 dhcp231-176 kernel: 
May 22 15:27:43 dhcp231-176 kernel: 
May 22 15:27:43 dhcp231-176 kernel: Code: c6 00 cc c3 48 8b 57 30 8a 47 68 88 02
c3 48 8b 97 08 01 00 
May 22 15:27:43 dhcp231-176 kernel: RIP  [<ffffffff804400d3>]
arch_arm_kprobe+0x4/0x8
May 22 15:27:43 dhcp231-176 kernel:  RSP <ffff810030b59dd0>
May 22 15:27:43 dhcp231-176 kernel: CR2: ffffffff8043ccc0






-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4531

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]