This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/13386] New: BUG: using smp_processor_id() in preemptible code
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Sat, 05 Nov 2011 13:35:17 +0000
- Subject: [Bug runtime/13386] New: BUG: using smp_processor_id() in preemptible code
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13386
Bug #: 13386
Summary: BUG: using smp_processor_id() in preemptible code
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap@sourceware.org
ReportedBy: mjw@redhat.com
Classification: Unclassified
Found this in my logs:
Nov 5 13:56:49 armando kernel: [ 1353.700391] BUG: using smp_processor_id() in
preemptible [00000000] code: stapio/20061
Nov 5 13:56:49 armando kernel: [ 1353.700523] caller is
_stp_cleanup_and_exit+0x240/0x2c8 [stap_08fb73e8603c2f873ec67447b857d69_20061]
Nov 5 13:56:49 armando kernel: [ 1353.700565] Backtrace:
Nov 5 13:56:49 armando kernel: [ 1353.700677] [<c00428d0>]
(unwind_backtrace+0x0/0xe0) from [<c023e610>]
(debug_smp_processor_id+0xbc/0xf0)
Nov 5 13:56:49 armando kernel: [ 1353.700808] [<c023e610>]
(debug_smp_processor_id+0xbc/0xf0) from [<bf3cb8d4>]
(_stp_cleanup_and_exit+0x240/0x2c8
[stap_08fb73e8603c2f873ec67447b857d69_20061])
Nov 5 13:56:49 armando kernel: [ 1353.701024] [<bf3cb8d4>]
(_stp_cleanup_and_exit+0x240/0x2c8
[stap_08fb73e8603c2f873ec67447b857d69_20061]) from [<bf3cbf84>]
(_stp_ctl_write_cmd+0x628/0x950 [stap_08fb73e8603c2f873ec67447b857d69_20061])
Nov 5 13:56:49 armando kernel: [ 1353.701179] [<bf3cbf84>]
(_stp_ctl_write_cmd+0x628/0x950 [stap_08fb73e8603c2f873ec67447b857d69_20061])
from [<c01139c8>] (vfs_write+0xb0/0x178)
Nov 5 13:56:49 armando kernel: [ 1353.701267] [<c01139c8>]
(vfs_write+0xb0/0x178) from [<c0113ca8>] (sys_write+0x3c/0x68)
Nov 5 13:56:49 armando kernel: [ 1353.701359] [<c0113ca8>]
(sys_write+0x3c/0x68) from [<c003b760>] (ret_fast_syscall+0x0/0x30)
I don't immediately see where in _stp_cleanup_and_exit() we would use
smp_processor_id(), but if we do, then that would probably be a bug if we could
be preempted, which it seems we can here.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.