summaryrefslogtreecommitdiffstats
path: root/runtime/addr-map.c
Commit message (Collapse)AuthorAgeFilesLines
* PR 10848 partial fix by using systemtap memory functions everywhere.David Smith2009-12-091-6/+5
| | | | | | | * runtime/addr-map.c (add_bad_addr_entry): Uses systemtap memory allocation/deallocation wrappers. * runtime/itrace.c (create_itrace_info): Ditto. (remove_usr_itrace_info): Ditto.
* PR10650: markup some unprivileged-safe tapset functionsFrank Ch. Eigler2009-09-161-0/+4
| | | | | | | | | | | | | | | | | Add /* unprivileged */ to a variety of tapset embedded-c functions, together with uid-assertion-checking code as needed. This is only an initial set, and may need to grow or shrink after further testing. Prototyped-By: Dave Brolley <brolley@redhat.com> * runtime/runtime.h (is_myproc, assert_is_myproc): New macros. * runtime/addr-map.c (lookup_bad_addr): Reject if !is_myproc in unprivileged mode. * runtime/print.c (_stp_print_kernel_info): Add unprivileged mode info. * tapset/DEVGUIDE: Document /* pure */ and /* unprivileged */. * tapset/*.stp: Add /* unprivileged */ here and there, in questionable cases along with an assert_is_myproc().
* Check for bad address range or size in lookup_bad_addr.Dave Brolley2009-09-041-0/+4
|
* Disallow kernel space memory access when unprivileged.Dave Brolley2009-09-031-10/+35
| | | | | | | | | | | | | | | | | 2009-09-03 Dave Brolley <brolley@redhat.com> * runtime/addr-map.c (lookup_addr_aux): Now takes size argument. Consider the size when looking for overlapping range with the map entries. (lookup_bad_addr): Now takes size argument. Disallow kernel space access when STP_PRIVILEGED is not defined. Pass size to lookup_addr_aux. <asm/processor.h>: #include it when STP_PRIVILEGED is not defined. (add_bad_addr_entry): Supply a size of 1 to calls to lookup_addr_aux. * runtime/loc2c-runtime.h (kread): Pass sizeof (*(ptr)) to lookup_bad_addr. (kwrite): Likewise. (deref): Pass size to lookup_bad_addr. (store_deref): Likewise.
* Use 'static' as much as possibleJosh Stone2009-01-281-4/+4
| | | | | | | | | | This change just inserts 'static' on runtime, tapset, and generated C functions and globals, so the compiler can do a better job of optimizing. My tests with small scripts show ~10% reduction in compile time and ~20% reduction in module size. Larger scripts may show less benefit, but I expect purely positive results.
* fix bugs in add_bad_addr_entryTim Moore2008-10-021-2/+3
|
* Fix race condition in addr-map; simplify allocation logicTim Moore2008-09-301-46/+53
|
* PR1288: runtime functions for avoiding certain addressesTim Moore2008-09-081-0/+181