summaryrefslogtreecommitdiffstats
path: root/tapset-mark.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-03 17:19:05 -0400
committerDave Brolley <brolley@redhat.com>2009-09-03 17:19:05 -0400
commitd0822e28934cd0387c2af4349cf52c52c368c55a (patch)
tree183ad07b7c064d885b1a0327d7aae09953dae3dc /tapset-mark.cxx
parent5e8a3b7b558273fa06525f642fdf2d678dde85eb (diff)
downloadsystemtap-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 'tapset-mark.cxx')
0 files changed, 0 insertions, 0 deletions