diff options
author | Dave Brolley <brolley@redhat.com> | 2009-09-03 17:19:05 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-09-03 17:19:05 -0400 |
commit | d0822e28934cd0387c2af4349cf52c52c368c55a (patch) | |
tree | 183ad07b7c064d885b1a0327d7aae09953dae3dc /translate.cxx | |
parent | 5e8a3b7b558273fa06525f642fdf2d678dde85eb (diff) | |
download | systemtap-steved-d0822e28934cd0387c2af4349cf52c52c368c55a.tar.gz systemtap-steved-d0822e28934cd0387c2af4349cf52c52c368c55a.tar.xz systemtap-steved-d0822e28934cd0387c2af4349cf52c52c368c55a.zip |
Disallow kernel space memory access when unprivileged.
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.
Diffstat (limited to 'translate.cxx')
0 files changed, 0 insertions, 0 deletions