This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10258] New: procfs probes should not put strings on kernel stack
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 10 Jun 2009 15:17:41 -0000
- Subject: [Bug translator/10258] New: procfs probes should not put strings on kernel stack
- Reply-to: sourceware-bugzilla at sourceware dot org
The implementation of _st_procfs_{read,write} use a string_t
temporary on the ordinary stack (strdata). It must not do
that, since MAXSTRINGLEN could be large enough to overflow the
kernel stack, which may or may not be suspected/detected at compile
time.
Rather, such stuff needs to go into the context directly.
stap -DMAXSTRINGLEN=16384 -e ' { probe procfs("foo").write { log($value) }'
--
Summary: procfs probes should not put strings on kernel stack
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10258
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.