diff options
author | 2022-02-16 13:48:06 +0100 | |
---|---|---|
committer | 2022-02-25 09:36:06 +0100 | |
commit | 5a06fcb15b43d1f7bf740c672950122331cb5655 (patch) | |
tree | 115409abe923229be6f68fc285a7063988fc295a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | uaccess: generalize access_ok() (diff) | |
download | linux-dev-5a06fcb15b43d1f7bf740c672950122331cb5655.tar.xz linux-dev-5a06fcb15b43d1f7bf740c672950122331cb5655.zip |
lib/test_lockup: fix kernel pointer check for separate address spaces
test_kernel_ptr() uses access_ok() to figure out if a given address
points to user space instead of kernel space. However on architectures
that set CONFIG_ALTERNATE_USER_ADDRESS_SPACE, a pointer can be valid
for both, and the check always fails because access_ok() returns true.
Make the check for user space pointers conditional on the type of
address space layout.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions