diff options
author | Puranjay Mohan <puranjay@kernel.org> | 2024-04-24 10:02:10 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-04-26 09:45:18 -0700 |
commit | 7cd6750d9a560fa69bb640a7280479d6a67999ad (patch) | |
tree | abcf803874950c1abaeacc544d3a317d2ff8d2fb /init | |
parent | bpf, x86: Fix PROBE_MEM runtime load check (diff) | |
download | linux-7cd6750d9a560fa69bb640a7280479d6a67999ad.tar.gz linux-7cd6750d9a560fa69bb640a7280479d6a67999ad.tar.bz2 linux-7cd6750d9a560fa69bb640a7280479d6a67999ad.zip |
selftests/bpf: Test PROBE_MEM of VSYSCALL_ADDR on x86-64
The vsyscall is a legacy API for fast execution of system calls. It maps
a page at address VSYSCALL_ADDR into the userspace program. This address
is in the top 10MB of the address space:
ffffffffff600000 - ffffffffff600fff | 4 kB | legacy vsyscall ABI
The last commit fixes the x86-64 BPF JIT to skip accessing addresses in
this memory region. Add this address to bpf_testmod_return_ptr() so we
can make sure that it is fixed.
After this change and without the previous commit, subprogs_extable
selftest will crash the kernel.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20240424100210.11982-4-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions