This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
loc2c-runtime deref()
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 18 Aug 2005 13:43:30 -0400
- Subject: loc2c-runtime deref()
Hi -
The $target and $target->field extraction logic in the translator
emits code that calls the macro deref() in src/runtime/loc2c-runtime.h
to follow pointers. This macro appears to be tuned for accessing
user-space (refers to uaccess.h's __get_user_asm). Is there good
reason to believe it will continue to work even on kernel space
pointers? Do those lower level macros provide sufficient detection of
null and other invalid pointer dereferencing?
- FChE