diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-03-19 13:38:26 +0530 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-04-06 10:32:12 -0700 |
| commit | 7cb29b1c99f4244c3f1de04e88eb9aed842a0cba (patch) | |
| tree | b26af2d3fe4d3faddbc6b6d917dd4bda2b25064e /tools/perf/scripts/python | |
| parent | 7b3552d3f9f6897851fc453b5131a967167e43c2 (diff) | |
selftests/bpf: Test passing rdonly mem to global func
Add two test cases, one pass read only map value pointer to global
func, which should be rejected. The same code checks it for kfunc, so
that is covered as well. Second one tries to use the missing check for
PTR_TO_MEM's MEM_RDONLY flag and tries to write to a read only memory
pointer. Without prior patches, both of these tests fail.
Reviewed-by: Hao Luo <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions