Jussi Maki
6fd5fb6382
selftests/bpf: Add test for l3 use of bpf_redirect_peer
...
Add a test case for using bpf_skb_change_head() in combination with
bpf_redirect_peer() to redirect a packet from a L3 device to veth and back.
The test uses a BPF program that adds L2 headers to the packet coming
from a L3 device and then calls bpf_redirect_peer() to redirect the packet
to a veth device. The test fails as skb->mac_len is not set properly and
thus the ethernet headers are not properly skb_pull'd in cls_bpf_classify(),
causing tcp_v4_rcv() to point the TCP header into middle of the IP header.
Signed-off-by: Jussi Maki <joamaki@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210525102955.2811090-1-joamaki@gmail.com
2021-05-25 18:00:28 +02:00
..
2020-03-25 11:50:48 +01:00
2020-12-10 13:11:30 -08:00
2021-02-08 17:55:01 -08:00
2021-01-14 18:34:29 -08:00
2021-03-08 08:43:20 -08:00
2020-06-28 10:06:53 -07:00
2021-01-27 18:18:15 -08:00
2021-04-19 18:23:33 -07:00
2020-08-13 16:45:41 -07:00
2021-03-26 17:51:02 +01:00
2021-03-04 16:44:00 +01:00
2020-11-05 18:37:31 -08:00
2021-04-26 18:37:13 -07:00
2021-04-26 18:37:13 -07:00
2021-01-12 17:23:47 -08:00
2020-11-09 16:18:36 -08:00
2020-11-05 18:37:30 -08:00
2020-11-05 18:37:30 -08:00
2021-03-04 17:58:16 -08:00
2020-07-31 00:43:49 +02:00
2020-03-02 17:00:41 -08:00
2021-01-14 18:34:29 -08:00
2020-03-02 17:00:41 -08:00
2021-04-26 18:37:13 -07:00
2020-07-02 16:09:01 +02:00
2021-03-08 22:45:56 +01:00
2021-01-20 14:23:00 -08:00
2020-07-02 16:09:01 +02:00
2020-10-07 18:50:27 -07:00
2020-08-13 16:45:41 -07:00
2021-01-08 13:39:24 -08:00
2021-04-26 18:37:13 -07:00
2020-08-01 23:10:42 -07:00
2020-01-20 16:37:45 -08:00
2020-09-21 16:18:00 -07:00
2020-05-01 10:36:32 -07:00
2020-07-01 09:06:12 +02:00
2020-06-30 22:21:29 +02:00
2021-04-25 21:09:02 -07:00
2021-04-13 18:18:57 -07:00
2021-04-15 16:50:22 -07:00
2021-02-11 16:19:13 +01:00
2021-04-25 21:09:02 -07:00
2020-05-09 00:48:20 +02:00
2020-06-30 10:46:39 -07:00
2020-08-13 16:45:41 -07:00
2021-02-26 13:23:53 -08:00
2020-03-30 15:00:30 -07:00
2020-07-25 20:16:35 -07:00
2020-09-03 17:33:31 -07:00
2020-08-13 16:45:41 -07:00
2021-02-12 17:37:23 -08:00
2020-11-05 20:04:46 -08:00
2020-04-28 19:48:05 -07:00
2021-04-26 18:37:13 -07:00
2021-03-26 20:41:52 -07:00
2020-10-19 15:57:42 -07:00
2021-01-12 17:24:30 -08:00
2020-10-02 14:59:25 -07:00
2020-09-03 17:14:40 -07:00
2020-03-02 22:06:27 -08:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2020-07-02 16:09:01 +02:00
2020-11-05 19:55:57 -08:00
2020-05-09 00:48:20 +02:00
2021-04-08 23:54:47 -07:00
2020-09-15 18:28:27 -07:00
2021-04-08 23:54:48 -07:00
2020-03-04 13:41:06 -08:00
2021-04-25 21:09:02 -07:00
2021-04-15 16:50:22 -07:00
2019-03-02 11:10:40 -08:00
2020-09-30 23:21:06 -07:00
2020-02-19 15:01:07 -08:00
2020-08-21 14:26:55 -07:00
2020-07-25 20:16:35 -07:00
2020-10-06 11:10:20 -07:00
2020-05-09 00:48:20 +02:00
2020-05-09 00:48:20 +02:00
2020-11-19 11:58:15 -08:00
2019-12-15 15:58:04 -08:00
2021-03-04 19:11:29 -08:00
2020-05-09 00:48:20 +02:00
2020-09-28 21:52:36 +02:00
2019-04-26 19:04:19 -07:00
2019-04-26 19:04:19 -07:00
2019-12-15 15:58:05 -08:00
2021-02-11 16:19:24 +01:00
2020-09-03 17:14:40 -07:00
2021-04-26 18:37:13 -07:00
2021-04-08 23:54:48 -07:00
2021-05-20 23:48:38 +02:00
2020-07-25 20:37:02 -07:00
2020-03-09 22:34:59 +01:00
2020-03-05 14:02:41 -08:00
2020-08-06 16:58:42 -07:00
2020-05-09 00:48:20 +02:00
2020-09-18 22:54:52 +02:00
2021-03-04 19:11:29 -08:00
2020-11-12 18:39:28 -08:00
2020-08-13 16:45:41 -07:00
2020-06-01 14:38:21 -07:00
2020-07-13 17:07:43 -07:00
2021-04-26 18:37:13 -07:00
2021-04-30 10:36:59 -07:00
2020-09-29 11:43:43 -07:00
2021-02-11 17:44:41 -08:00
2021-04-01 10:56:14 -07:00
2020-02-20 01:17:24 +01:00
2021-04-01 10:56:14 -07:00
2020-07-16 20:57:09 +02:00
2020-11-16 22:19:07 +01:00
2021-04-08 23:54:47 -07:00
2019-09-06 09:59:05 -07:00
2020-05-09 00:48:20 +02:00
2021-02-10 11:05:34 -08:00
2020-08-06 16:58:42 -07:00
2019-12-17 22:16:35 -08:00
2019-08-28 00:35:40 +02:00
2019-08-28 00:35:40 +02:00
2021-03-18 16:14:23 -07:00
2020-11-09 22:15:23 +01:00
2020-09-17 19:56:07 -07:00
2019-08-28 00:35:40 +02:00
2019-08-28 00:35:40 +02:00
2021-02-26 11:51:48 -08:00
2021-05-25 18:00:28 +02:00
2019-08-28 00:35:40 +02:00
2020-11-09 16:18:36 -08:00
2020-07-02 16:09:01 +02:00
2020-12-03 17:23:24 -08:00
2020-08-20 16:02:36 +02:00
2020-11-18 01:36:27 +01:00
2021-02-12 17:37:23 -08:00
2021-03-25 18:39:51 -07:00
2021-02-02 21:21:55 -08:00
2021-04-25 21:09:02 -07:00
2020-09-28 17:20:28 -07:00
2020-10-09 22:03:06 +02:00
2020-11-13 01:42:11 +01:00
2019-05-09 15:53:56 -07:00
2020-09-29 13:09:24 -07:00
2020-07-13 16:55:49 -07:00
2021-02-11 16:19:13 +01:00
2020-07-08 01:07:36 +02:00
2020-08-13 16:45:41 -07:00
2020-03-17 19:29:12 +01:00
2020-05-14 21:21:57 -07:00
2020-04-15 13:26:08 +02:00
2020-05-09 00:48:20 +02:00
2020-07-16 17:00:32 +02:00
2020-06-09 11:36:19 -07:00
2020-04-08 01:35:24 +02:00
2020-08-01 20:38:28 -07:00
2020-10-02 16:46:20 +02:00
2019-12-13 13:09:32 -08:00
2020-05-09 00:48:20 +02:00