<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/bpf/config, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-05-22T23:12:31Z</updated>
<entry>
<title>selftests/bpf: CONFIG_LIRC required for test_lirc_mode2.sh</title>
<updated>2020-05-22T23:12:31Z</updated>
<author>
<name>Alan Maguire</name>
</author>
<published>2020-05-22T11:36:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5dfaa2ab94057dd75c7911143482a0a85593c14'/>
<id>urn:sha1:a5dfaa2ab94057dd75c7911143482a0a85593c14</id>
<content type='text'>
test_lirc_mode2.sh assumes presence of /sys/class/rc/rc0/lirc*/uevent
which will not be present unless CONFIG_LIRC=y

Fixes: 6bdd533cee9a ("bpf: add selftest for lirc_mode2 type program")
Signed-off-by: Alan Maguire &lt;alan.maguire@oracle.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Link: https://lore.kernel.org/bpf/1590147389-26482-3-git-send-email-alan.maguire@oracle.com
</content>
</entry>
<entry>
<title>selftests/bpf: CONFIG_IPV6_SEG6_BPF required for test_seg6_loop.o</title>
<updated>2020-05-22T23:12:31Z</updated>
<author>
<name>Alan Maguire</name>
</author>
<published>2020-05-22T11:36:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c8e8cf4b18b3a7034fab4c4504fc4b54e4b6195'/>
<id>urn:sha1:3c8e8cf4b18b3a7034fab4c4504fc4b54e4b6195</id>
<content type='text'>
test_seg6_loop.o uses the helper bpf_lwt_seg6_adjust_srh();
it will not be present if CONFIG_IPV6_SEG6_BPF is not specified.

Fixes: b061017f8b4d ("selftests/bpf: add realistic loop tests")
Signed-off-by: Alan Maguire &lt;alan.maguire@oracle.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Link: https://lore.kernel.org/bpf/1590147389-26482-2-git-send-email-alan.maguire@oracle.com
</content>
</entry>
<entry>
<title>bpf: lsm: Add selftests for BPF_PROG_TYPE_LSM</title>
<updated>2020-03-29T23:35:11Z</updated>
<author>
<name>KP Singh</name>
</author>
<published>2020-03-29T00:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03e54f100d5756f8403fffd60aed8e883ea864c0'/>
<id>urn:sha1:03e54f100d5756f8403fffd60aed8e883ea864c0</id>
<content type='text'>
* Load/attach a BPF program that hooks to file_mprotect (int)
  and bprm_committed_creds (void).
* Perform an action that triggers the hook.
* Verify if the audit event was received using the shared global
  variables for the process executed.
* Verify if the mprotect returns a -EPERM.

Signed-off-by: KP Singh &lt;kpsingh@google.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Reviewed-by: Brendan Jackman &lt;jackmanb@google.com&gt;
Reviewed-by: Florent Revest &lt;revest@google.com&gt;
Reviewed-by: Thomas Garnier &lt;thgarnie@google.com&gt;
Reviewed-by: James Morris &lt;jamorris@linux.microsoft.com&gt;
Acked-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Link: https://lore.kernel.org/bpf/20200329004356.27286-8-kpsingh@chromium.org
</content>
</entry>
<entry>
<title>selftests/bpf: add config fragment BPF_JIT</title>
<updated>2019-08-21T15:05:06Z</updated>
<author>
<name>Anders Roxell</name>
</author>
<published>2019-08-20T13:41:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0604409df9e04cdec7b08d471c8c1c0c10b5554d'/>
<id>urn:sha1:0604409df9e04cdec7b08d471c8c1c0c10b5554d</id>
<content type='text'>
When running test_kmod.sh the following shows up

 # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory
 cannot: stat_/proc/sys/net/core/bpf_jit_enable #
 # sysctl cannot stat /proc/sys/net/core/bpf_jit_harden No such file or directory
 cannot: stat_/proc/sys/net/core/bpf_jit_harden #

Rework to enable CONFIG_BPF_JIT to solve "No such file or directory"

Signed-off-by: Anders Roxell &lt;anders.roxell@linaro.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests/bpf: expand test_tc_tunnel with SIT encap</title>
<updated>2019-04-23T23:32:26Z</updated>
<author>
<name>Willem de Bruijn</name>
</author>
<published>2019-04-23T18:43:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f6ad6accaa99dfa7462d18687961b8421d707c1e'/>
<id>urn:sha1:f6ad6accaa99dfa7462d18687961b8421d707c1e</id>
<content type='text'>
So far, all BPF tc tunnel testcases encapsulate in the same network
protocol. Add an encap testcase that requires updating skb-&gt;protocol.

The 6in4 tunnel encapsulates an IPv6 packet inside an IPv4 tunnel.
Verify that bpf_skb_net_grow correctly updates skb-&gt;protocol to
select the right protocol handler in __netif_receive_skb_core.

The BPF program should also manually update the link layer header to
encode the right network protocol.

Changes v1-&gt;v2
  - improve documentation of non-obvious logic

Signed-off-by: Willem de Bruijn &lt;willemb@google.com&gt;
Tested-by: Alan Maguire &lt;alan.maguire@oracle.com&gt;
Acked-by: Yonghong Song &lt;yhs@fb.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests_bpf: add L2 encap to test_tc_tunnel</title>
<updated>2019-04-11T20:50:57Z</updated>
<author>
<name>Alan Maguire</name>
</author>
<published>2019-04-09T14:06:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ec61df82ba0c2d2455da838ee46bf60f2256b56'/>
<id>urn:sha1:3ec61df82ba0c2d2455da838ee46bf60f2256b56</id>
<content type='text'>
Update test_tc_tunnel to verify adding inner L2 header
encapsulation (an MPLS label or ethernet header) works.

Signed-off-by: Alan Maguire &lt;alan.maguire@oracle.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests_bpf: extend test_tc_tunnel for UDP encap</title>
<updated>2019-04-11T20:50:56Z</updated>
<author>
<name>Alan Maguire</name>
</author>
<published>2019-04-09T14:06:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=166b5a7f2ca3803ab0a7bb33ac2300e616de2470'/>
<id>urn:sha1:166b5a7f2ca3803ab0a7bb33ac2300e616de2470</id>
<content type='text'>
commit 868d523535c2 ("bpf: add bpf_skb_adjust_room encap flags")
introduced support to bpf_skb_adjust_room for GSO-friendly GRE
and UDP encapsulation and later introduced associated test_tc_tunnel
tests.  Here those tests are extended to cover UDP encapsulation also.

Signed-off-by: Alan Maguire &lt;alan.maguire@oracle.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests/bpf: expand bpf tunnel test to ipv6</title>
<updated>2019-03-22T20:52:44Z</updated>
<author>
<name>Willem de Bruijn</name>
</author>
<published>2019-03-22T18:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ef81bd054942e2bd8289c91a3528e6fc0ca26c1c'/>
<id>urn:sha1:ef81bd054942e2bd8289c91a3528e6fc0ca26c1c</id>
<content type='text'>
The test only uses ipv4 so far, expand to ipv6.
This is mostly a boilerplate near copy of the ipv4 path.

Signed-off-by: Willem de Bruijn &lt;willemb@google.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/bpf: add config fragment CONFIG_FTRACE_SYSCALLS</title>
<updated>2018-11-28T21:13:06Z</updated>
<author>
<name>Naresh Kamboju</name>
</author>
<published>2018-11-27T15:24:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=295daee4ba108a025b9ac66231b0700e18ff5315'/>
<id>urn:sha1:295daee4ba108a025b9ac66231b0700e18ff5315</id>
<content type='text'>
CONFIG_FTRACE_SYSCALLS=y is required for get_cgroup_id_user test case
this test reads a file from debug trace path
/sys/kernel/debug/tracing/events/syscalls/sys_enter_nanosleep/id

Signed-off-by: Naresh Kamboju &lt;naresh.kamboju@linaro.org&gt;
Acked-by: Yonghong Song &lt;yhs@fb.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftests/bpf: add config fragments BPF_STREAM_PARSER and XDP_SOCKETS</title>
<updated>2018-10-25T22:33:21Z</updated>
<author>
<name>Naresh Kamboju</name>
</author>
<published>2018-10-25T14:47:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3f49d97c22022666fb94101454520a7adacaf08'/>
<id>urn:sha1:a3f49d97c22022666fb94101454520a7adacaf08</id>
<content type='text'>
BPF sockmap and hashmap are dependent on CONFIG_BPF_STREAM_PARSER and
xskmap is dependent on CONFIG_XDP_SOCKETS

Signed-off-by: Naresh Kamboju &lt;naresh.kamboju@linaro.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
</feed>
