]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Test narrow load from bpf_sysctl.write
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 29 Oct 2019 14:30:27 +0000 (15:30 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Oct 2019 15:24:06 +0000 (16:24 +0100)
commite1673756df042deebaf79e0606381acf0eaa34fe
tree443119fa087f5a9753a64c3c92ce9a6e8172d2a8
parent54af77ed9d69ae002dc0f9663df0cbcbccb32e70
selftests/bpf: Test narrow load from bpf_sysctl.write

There are tests for full and narrows loads from bpf_sysctl.file_pos, but
for bpf_sysctl.write only full load is tested. Add the missing test.

Suggested-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrey Ignatov <rdna@fb.com>
Link: https://lore.kernel.org/bpf/20191029143027.28681-1-iii@linux.ibm.com
tools/testing/selftests/bpf/test_sysctl.c