Re: [PATCH bpf-next v2 0/4] bpf: make trusted args nullable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/05/2024 16:23, Eduard Zingerman wrote:
On Wed, 2024-05-22 at 13:35 +0100, Vadim Fedorenko wrote:

[...]

I'm not really sure how I can test it without fully replicating crypto
tests. We don't have any other kfuncs with nullable dynptrs yet to test,
maybe we should revisit this part once we have more functions with
nullable parameters.

kfuncs for testing could be defined in
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:bpf_testmod.c,
e.g. see bpf_testmod_test_mod_kfunc().

alright, thanks for the pointer, I'll add some tests with kfuncs.





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux