diff options
author | 2023-07-13 02:56:40 +0000 | |
---|---|---|
committer | 2023-07-13 16:24:29 -0700 | |
commit | d2284d68259c8816fc0dbcb89a0e56849e1f24c2 (patch) | |
tree | af13e7c0898f58799fd3f393a571798ee6088dc2 /security/security.c | |
parent | bpf: Fix an error around PTR_UNTRUSTED (diff) | |
download | linux-rng-d2284d68259c8816fc0dbcb89a0e56849e1f24c2.tar.xz linux-rng-d2284d68259c8816fc0dbcb89a0e56849e1f24c2.zip |
selftests/bpf: Add selftests for nested_trust
Add selftests for nested_strust to check whehter PTR_UNTRUSTED is cleared
as expected, the result as follows:
#141/1 nested_trust/test_read_cpumask:OK
#141/2 nested_trust/test_skb_field:OK <<<<
#141/3 nested_trust/test_invalid_nested_user_cpus:OK
#141/4 nested_trust/test_invalid_nested_offset:OK
#141/5 nested_trust/test_invalid_skb_field:OK <<<<
#141 nested_trust:OK
The #141/2 and #141/5 are newly added.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20230713025642.27477-3-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions