diff options
author | Song Liu <songliubraving@fb.com> | 2019-01-08 23:20:44 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-01-10 16:02:17 +0100 |
commit | beaf3d1901f4ea46fbd5c9d857227d99751de469 (patch) | |
tree | f02f6f124dbc337ec1a556ddea4e1907fc556515 /kernel/audit_tree.c | |
parent | selftests: bpf: install files tcp_(server|client)*.py (diff) | |
download | linux-beaf3d1901f4ea46fbd5c9d857227d99751de469.tar.xz linux-beaf3d1901f4ea46fbd5c9d857227d99751de469.zip |
bpf: fix panic in stack_map_get_build_id() on i386 and arm32
As Naresh reported, test_stacktrace_build_id() causes panic on i386 and
arm32 systems. This is caused by page_address() returns NULL in certain
cases.
This patch fixes this error by using kmap_atomic/kunmap_atomic instead
of page_address.
Fixes: 615755a77b24 (" bpf: extend stackmap to save binary_build_id+offset instead of address")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/audit_tree.c')
0 files changed, 0 insertions, 0 deletions