[PATCH v17 12/12] selftests/bpf: Add tests for dynamic pointers parameters in kfuncs

Kumar Kartikeya Dwivedi memxor at gmail.com
Wed Sep 7 16:02:51 UTC 2022


On Wed, 7 Sept 2022 at 17:00, Roberto Sassu
<roberto.sassu at huaweicloud.com> wrote:
>
> From: Roberto Sassu <roberto.sassu at huawei.com>
>
> Add tests to ensure that only supported dynamic pointer types are accepted,
> that the passed argument is actually a dynamic pointer, that the passed
> argument is a pointer to the stack, and that bpf_verify_pkcs7_signature()
> correctly handles dynamic pointers with data set to NULL.
>
> The tests are currently in the deny list for s390x (JIT does not support
> calling kernel function).
>
> Signed-off-by: Roberto Sassu <roberto.sassu at huawei.com>
> ---

Just a minor nit: you could probably use invalid flags value other
than 1, since most likely the next valid flag value will be 1, which
will require changing this again. LGTM otherwise.

Acked-by: Kumar Kartikeya Dwivedi <memxor at gmail.com>



More information about the Linux-security-module-archive mailing list