diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2026-10-02 12:47:13 +0000 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-10-03 16:08:21 +0200 |
| commit | 27e24617a83b53e0f008837f7a72ba944a078149 (patch) | |
| tree | 58c2f2603f25aad1cb18f06967ef6c0f561264dc /include/linux/timerqueue.h | |
| parent | 373e1223ff00630dc28b2d0fb6ec5fb5cceaccce (diff) | |
| download | linux-next-27e24617a83b53e0f008837f7a72ba944a078149.tar.gz linux-next-27e24617a83b53e0f008837f7a72ba944a078149.zip | |
selftests/bpf: Add test for global data in arena
Load the program that reads and writes .data, .bss and .rodata from
the object with .arena.data section. Check that initial values set
through the skeleton reach the program and that the values written by
the program are seen through the skeleton.
Also check:
- alignment of a section.
- pointers to data and to a const string that are stored in data and
in read-only data, next to a pointer to a function that callx uses.
- bpf_strncmp() with a string literal, bpf_printk() and BPF_SNPRINTF().
- an object that has an arena map and __arena variables.
- the load fails when a pointer in data points to a section that is
not in arena or to a variable of the kernel.
- the load fails when there are pointers in data and the arena is
pinned or reused.
- the open fails when there are __arena variables and no arena map.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20261002124714.180012-15-alexei.starovoitov@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
