commit | 361d32028c7d52d28d7f0562193a2f4a41d10351 | [log] [tgz] |
---|---|---|
author | Yauheni Kaliuta <yauheni.kaliuta@redhat.com> | Thu Apr 08 09:13:04 2021 +0300 |
committer | Andrii Nakryiko <andrii@kernel.org> | Thu Apr 08 23:54:47 2021 -0700 |
tree | 863fbc4109bd7da906472b89b8713c4fb9e60199 | |
parent | cad99cce133dd5377f22da1e75d7eb5c4b886d75 [diff] |
selftests/bpf: Pass page size from userspace in sockopt_sk Since there is no convenient way for bpf program to get PAGE_SIZE from inside of the kernel, pass the value from userspace. Zero-initialize the variable in bpf prog, otherwise it will cause problems on some versions of Clang. Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210408061310.95877-3-yauheni.kaliuta@redhat.com