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/5483] New: Putting probe on __init functions causes kernel crash on x86_64


Environment: 2.6.24-rc4 kernel, elfutils-0.131, systemtap-20071208 snapshot.

Executing % stap -e 'probe kernel.function("migration_init"){}'
causes oops on x86_64.
===================================================
Unable to handle kernel paging request at ffffffff8086ccb3 RIP: 
 [<ffffffff804739c5>] arch_prepare_kprobe+0x22/0x217
PGD 203067 PUD 207063 PMD 7e0da163 PTE 86c000
Oops: 0000 [1] SMP 
last sysfs file:
/sys/module/stap_35adaae6e718a71673316d7b16a93286_356228/sections/.bss
CPU 1 
Modules linked in: stap_35adaae6e718a71673316d7b16a93286_356228
systemtap_test_module1 systemtap_test_module2 ipv6 autofs4 hidp rfcomm l2cap
bluetooth sunrpc dm_multipath video output sbs sbshc battery acpi_memhotplug ac
power_supply lp sg tg3 ide_cd cdrom floppy serio_raw parport_pc button
e752x_edac parport edac_core i2c_i801 shpchp i2c_core pcspkr dm_snapshot dm_zero
dm_mirror dm_mod ata_piix libata aic79xx scsi_transport_spi sd_mod scsi_mod ext3
jbd ehci_hcd ohci_hcd uhci_hcd
Pid: 28478, comm: stapio Tainted: GF       2.6.24-rc4-mm1 #4
RIP: 0010:[<ffffffff804739c5>]  [<ffffffff804739c5>] arch_prepare_kprobe+0x22/0x217
RSP: 0018:ffff810067055e48  EFLAGS: 00010286
RAX: ffffffff8086ccb3 RBX: ffffffff88464130 RCX: ffffffff8842af30
RDX: 0000000000000f30 RSI: 6600000000000000 RDI: ffffffff88464130
RBP: ffffffff88464130 R08: ffff81000d4d6000 R09: ffff81007f834000
R10: ffffffff8024bf9c R11: 0000000000000000 R12: 00000000000036b0
R13: 0000000000000000 R14: ffffffff8843b3b2 R15: 0000000000000000
FS:  00002aebec1e2b00(0000) GS:ffff81007fbac840(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffffffff8086ccb3 CR3: 0000000075c02000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
Process stapio (pid: 28478, threadinfo ffff810067054000, task ffff81007d5f4e30)
Stack:  0000000000000000 ffffffff80474c8b 0000000000000000 ffffffff88464130
 0000000000000000 00000000000036b0 00000000000001d2 ffffffff8843185b
 00000000000036b0 00000000000a7fc4 ffff810067055ee8 0000000000000008
Call Trace:
 [<ffffffff80474c8b>] __register_kprobe+0x1f0/0x2e8
 [<ffffffff8843185b>]
:stap_35adaae6e718a71673316d7b16a93286_356228:systemtap_module_init+0x202/0x45f
 [<ffffffff88431ac1>]
:stap_35adaae6e718a71673316d7b16a93286_356228:probe_start+0x9/0x12
 [<ffffffff88431aeb>]
:stap_35adaae6e718a71673316d7b16a93286_356228:_stp_handle_start+0x21/0x7c
 [<ffffffff88431bb8>]
:stap_35adaae6e718a71673316d7b16a93286_356228:_stp_ctl_write_cmd+0x72/0xc3
 [<ffffffff80265748>] audit_syscall_entry+0x141/0x174
 [<ffffffff80296349>] vfs_write+0xc6/0x14f
 [<ffffffff8029689f>] sys_write+0x45/0x6e
 [<ffffffff8020c0dc>] tracesys+0xdc/0xe1


Code: 48 8b 10 48 89 11 48 8b 40 08 48 89 41 08 48 8b 53 70 8a 02 
RIP  [<ffffffff804739c5>] arch_prepare_kprobe+0x22/0x217
 RSP <ffff810067055e48>
CR2: ffffffff8086ccb3
[root@llm42 ~]# w
 11:33:56 up 57 min,  2 users,  load average: 0.00, 0.02, 0.26
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    srinivasa-009124 10:40   52:57  23.82s  0.00s /bin/bash ./tes
root     pts/13   srinivasa.in.ibm 11:22    0.00s  0.02s  0.00s w
===================
[root@llm42 ~]# cat /proc/kallsyms | grep ffffffff8086ccb3
ffffffff8086ccb3 T migration_init
==================
[root@llm42 ~]# cat /root/linux-2.6.24-rc4/System.map | grep ffffffff8086ccb3
ffffffff8086ccb3 T migration_init
======================

-- 
           Summary: Putting probe on __init functions causes kernel crash on
                    x86_64
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: kprobes
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: srinivasa at in dot ibm dot com


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

------- 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]