diff options
author | 2015-06-15 16:15:45 -0400 | |
---|---|---|
committer | 2015-06-25 06:01:02 -0700 | |
commit | b69fb7699c92f85991672fc144b0adb7c717fbc8 (patch) | |
tree | 07291dc96b98d4037d8466e12d5dc3b9207f52c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | sparc64: Convert BUG_ON to warning (diff) | |
download | linux-dev-b69fb7699c92f85991672fc144b0adb7c717fbc8.tar.xz linux-dev-b69fb7699c92f85991672fc144b0adb7c717fbc8.zip |
sparc64: perf: Add sanity checking on addresses in user stack
Processes are getting killed (sigbus or segv) while walking userspace
callchains when using perf. In some instances I have seen ufp = 0x7ff
which does not seem like a proper stack address.
This patch adds a function to run validity checks against the address
before attempting the copy_from_user. The checks are copied from the
x86 version as a start point with the addition of a 4-byte alignment
check.
Signed-off-by: David Ahern <david.ahern@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions