diff options
author | Alexei Starovoitov <[email protected]> | 2023-01-25 07:57:50 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-01-25 07:57:50 -0800 |
commit | 0cea651d6fdbcb279a1c5441a419a2f437896e7b (patch) | |
tree | cf15beb62b62a44ac9b4e294f7cd3ccf43e7b2c0 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | b613d335a743cf0e0ef0ccba9ad129904e2a26fb (diff) | |
parent | 027bdec89364e94753a2211ca87800c765fbd75d (diff) |
Merge branch 'Enable cpumasks to be used as kptrs'
David Vernet says:
====================
This is part 3 of https://lore.kernel.org/all/[email protected]/
Part 2: https://lore.kernel.org/bpf/[email protected]/
This series is based off of commit b613d335a743 ("bpf: Allow trusted
args to walk struct when checking BTF IDs").
Changelog:
----------
v2 -> v3:
- Rebase onto master (commit described above). Only conflict that
required resolution was updating the task_kfunc selftest suite error
message location.
- Put copyright onto one line in kernel/bpf/cpumask.c.
- Remove now-unneeded pid-checking logic from
progs/nested_trust_success.c.
- Fix a couple of small grammatical typos in documentation.
v1 -> v2:
- Put back 'static' keyword in bpf_find_btf_id()
(kernel test robot <[email protected]>)
- Surround cpumask kfuncs in __diag() blocks to avoid no-prototype build
warnings (kernel test robot <[email protected]>)
- Enable ___init suffixes to a type definition to signal that a type is
a nocast alias of another type. That is, that when passed to a kfunc
that expects one of the two types, the verifier will reject the other
even if they're equivalent according to the C standard (Kumar and
Alexei)
- Reject NULL for all trusted args, not just PTR_TO_MEM (Kumar)
- Reject both NULL and PTR_MAYBE_NULL for all trusted args (Kumar and
Alexei )
- Improve examples given in cpumask documentation (Alexei)
- Use __success macro for nested_trust test (Alexei)
- Fix comment typo in struct bpf_cpumask comment header.
- Fix another example in the bpf_cpumask doc examples.
- Add documentation for ___init suffix change mentioned above.
====================
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions