public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug kprobes/5483] New: Putting probe on __init functions causes kernel crash on x86_64
Date: Thu, 13 Dec 2007 15:21:00 -0000	[thread overview]
Message-ID: <20071213152116.5483.srinivasa@in.ibm.com> (raw)

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.

             reply	other threads:[~2007-12-13 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13 15:21 srinivasa at in dot ibm dot com [this message]
2007-12-13 15:21 ` [Bug kprobes/5483] " srinivasa at in dot ibm dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071213152116.5483.srinivasa@in.ibm.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).