3ec2a0ed3fec4ec8b27d9b71fdcbc1c30d1542d3
A lot of test_sysctl sub-tests fail due to handling strings as a bunch of immediate values in a little-endian-specific manner. Fix by wrapping all immediates in bpf_ntohl and the new bpf_be64_to_cpu. fixup_sysctl_value() dynamically writes an immediate, and thus should be endianness-aware. Implement this by simply memcpy()ing the raw user-provided value, since testcase endianness and bpf program endianness match. Fixes:1f5fa9ab6e("selftests/bpf: Test BPF_CGROUP_SYSCTL") Fixes:9a1027e525("selftests/bpf: Test file_pos field in bpf_sysctl ctx") Fixes:6041c67f28("selftests/bpf: Test bpf_sysctl_get_name helper") Fixes:11ff34f74e("selftests/bpf: Test sysctl_get_current_value helper") Fixes:786047dd08("selftests/bpf: Test bpf_sysctl_{get,set}_new_value helpers") Fixes:8549ddc832("selftests/bpf: Test bpf_strtol and bpf_strtoul helpers") Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.5%
Assembly
1%
Shell
0.6%
Python
0.3%
Makefile
0.3%