John Fastabend
80e24d2226
bpf, sockmap: Test FIONREAD returns correct bytes in rx buffer with drops
...
When BPF program drops pkts the sockmap logic 'eats' the packet and
updates copied_seq. In the PASS case where the sk_buff is accepted
we update copied_seq from recvmsg path so we need a new test to
handle the drop case.
Original patch series broke this resulting in
test_sockmap_skb_verdict_fionread:PASS:ioctl(FIONREAD) error 0 nsec
test_sockmap_skb_verdict_fionread:FAIL:ioctl(FIONREAD) unexpected ioctl(FIONREAD): actual 1503041772 != expected 256
After updated patch with fix.
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20230523025618.113937-14-john.fastabend@gmail.com
2023-05-23 16:11:20 +02:00
..
2020-03-25 11:50:48 +01:00
2023-04-19 21:29:39 -07:00
2023-03-22 16:49:25 -07:00
2022-04-10 20:08:20 -07:00
2021-02-08 17:55:01 -08:00
2022-02-28 16:28:40 +01:00
2023-03-06 09:38:08 -08:00
2022-08-17 09:42:07 -07:00
2020-06-28 10:06:53 -07:00
2022-03-16 15:07:49 -07:00
2021-11-25 23:37:38 +01:00
2023-01-28 12:30:08 -08:00
2022-01-18 15:45:06 -08:00
2021-10-08 15:17:00 -07:00
2023-02-16 15:32:46 -08:00
2022-06-20 17:40:52 -07:00
2022-04-18 21:22:13 -07:00
2022-10-13 08:03:04 -07:00
2023-02-16 15:32:46 -08:00
2023-03-22 22:53:25 -07:00
2023-03-08 16:19:51 -08:00
2022-11-09 20:45:21 -08:00
2022-12-28 13:57:47 -08:00
2022-09-02 15:55:37 +02:00
2023-02-16 15:32:46 -08:00
2021-08-16 18:38:52 -07:00
2022-11-30 22:47:43 +01:00
2021-11-11 16:54:06 -08:00
2022-03-05 18:39:51 -08:00
2022-06-07 10:20:43 -07:00
2023-03-06 11:44:14 -08:00
2022-08-24 17:54:40 -07:00
2023-04-05 14:44:07 -07:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-08-23 16:08:22 -07:00
2022-09-23 13:59:08 -07:00
2022-11-21 17:40:42 +01:00
2022-09-21 10:57:13 -07:00
2021-05-25 17:32:35 -07:00
2021-10-08 15:10:43 -07:00
2023-02-23 08:33:43 -08:00
2023-03-03 17:42:20 +01:00
2023-02-16 15:32:46 -08:00
2023-03-01 10:05:19 -08:00
2022-09-02 15:55:37 +02:00
2022-09-09 10:40:45 -07:00
2022-05-13 15:15:21 +02:00
2022-07-19 09:33:18 -07:00
2022-02-04 11:29:01 -08:00
2022-02-04 11:29:01 -08:00
2021-01-08 13:39:24 -08:00
2022-09-02 15:55:37 +02:00
2022-05-13 15:15:21 +02:00
2023-03-16 12:28:30 -07:00
2023-03-20 21:57:49 -07:00
2022-03-05 09:38:15 -08:00
2022-01-19 01:27:03 +01:00
2023-02-24 17:34:09 -08:00
2022-08-16 17:39:59 -04:00
2023-01-25 10:25:57 -08:00
2023-03-01 10:05:19 -08:00
2023-02-24 17:34:09 -08:00
2023-02-16 15:32:46 -08:00
2020-07-01 09:06:12 +02:00
2021-11-08 22:17:55 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2023-02-16 15:32:46 -08:00
2021-10-28 16:30:07 -07:00
2023-01-28 12:29:41 -08:00
2022-02-02 22:31:18 -08:00
2023-03-09 20:37:55 +01:00
2022-03-08 17:39:29 -08:00
2022-08-23 22:48:03 +02:00
2023-02-16 15:32:46 -08:00
2023-02-22 13:13:13 -08:00
2022-05-13 15:15:21 +02:00
2023-04-07 15:24:43 -07:00
2022-02-02 22:31:18 -08:00
2022-09-26 20:30:40 -07:00
2022-09-02 15:55:37 +02:00
2023-04-13 14:32:05 +02:00
2022-09-02 15:55:37 +02:00
2022-09-02 15:55:37 +02:00
2022-09-02 15:55:37 +02:00
2020-11-05 20:04:46 -08:00
2022-11-09 20:45:14 -08:00
2022-04-19 13:48:20 -07:00
2023-02-15 15:40:06 -08:00
2022-08-31 14:10:01 -07:00
2023-03-08 16:19:51 -08:00
2022-12-22 17:19:23 -08:00
2022-12-22 00:53:58 +01:00
2023-01-28 12:30:08 -08:00
2023-02-02 00:25:14 +01:00
2023-02-13 21:42:29 -08:00
2023-04-10 09:40:37 -07:00
2022-10-25 10:14:51 -07:00
2022-04-06 10:32:12 -07:00
2022-02-08 21:17:34 +01:00
2020-10-02 14:59:25 -07:00
2023-03-01 10:05:19 -08:00
2021-11-25 23:05:23 +01:00
2023-02-16 15:32:46 -08:00
2021-12-17 23:11:13 +01:00
2022-10-25 23:19:19 -07:00
2021-05-25 17:32:35 -07:00
2022-04-26 15:41:46 -07:00
2023-04-15 17:36:50 -07:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2022-09-02 15:55:37 +02:00
2023-03-10 16:38:05 -08:00
2022-03-03 16:54:10 +01:00
2023-04-18 12:45:10 -07:00
2022-05-13 15:15:21 +02:00
2022-09-21 17:33:42 -07:00
2022-08-09 18:46:11 -07:00
2023-02-16 15:32:46 -08:00
2020-11-05 19:55:57 -08:00
2023-03-01 10:24:33 -08:00
2022-09-02 15:55:37 +02:00
2022-05-20 15:07:41 -07:00
2023-03-22 15:11:06 -07:00
2022-02-02 22:31:18 -08:00
2023-02-16 15:32:46 -08:00
2023-02-16 16:56:17 -08:00
2023-02-16 15:32:46 -08:00
2022-02-02 22:31:18 -08:00
2022-10-25 10:14:51 -07:00
2023-03-15 18:38:30 -07:00
2023-02-24 17:34:23 -08:00
2023-01-25 07:57:50 -08:00
2022-04-06 10:15:53 -07:00
2021-08-24 14:17:53 -07:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2023-03-01 10:05:19 -08:00
2020-09-30 23:21:06 -07:00
2022-03-08 17:39:28 -08:00
2021-11-11 16:54:05 -08:00
2023-04-13 14:32:04 +02:00
2023-02-16 15:32:46 -08:00
2023-02-16 15:32:46 -08:00
2022-09-02 15:55:37 +02:00
2022-09-02 15:55:37 +02:00
2020-11-19 11:58:15 -08:00
2022-09-02 15:55:37 +02:00
2021-11-28 22:24:57 -08:00
2023-02-16 15:32:46 -08:00
2022-04-18 21:22:13 -07:00
2022-09-02 15:55:37 +02:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2023-04-15 17:36:50 -07:00
2023-03-03 17:42:20 +01:00
2022-09-02 15:55:37 +02:00
2023-02-16 15:32:46 -08:00
2023-04-24 14:02:11 -07:00
2022-09-02 15:55:37 +02:00
2022-09-02 15:55:37 +02:00
2022-07-19 10:01:20 -07:00
2022-10-21 19:23:34 -07:00
2020-07-25 20:37:02 -07:00
2022-09-02 15:55:37 +02:00
2021-10-08 15:17:00 -07:00
2023-03-10 10:36:46 -08:00
2023-01-25 15:10:34 -08:00
2022-02-02 22:31:18 -08:00
2023-01-29 19:16:28 -08:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-09-02 15:55:37 +02:00
2022-09-02 15:55:37 +02:00
2022-04-20 23:48:34 +02:00
2021-10-21 15:11:06 -07:00
2022-10-19 16:40:45 -07:00
2021-10-08 15:17:00 -07:00
2022-04-11 17:18:09 +02:00
2022-06-23 10:52:12 -07:00
2021-02-11 17:44:41 -08:00
2023-05-23 16:11:20 +02:00
2023-05-23 16:10:58 +02:00
2022-09-28 17:33:21 -07:00
2023-05-23 16:10:58 +02:00
2022-09-28 17:33:38 -07:00
2022-09-28 17:33:47 -07:00
2021-08-20 01:10:01 +02:00
2023-04-21 17:10:34 +02:00
2022-09-28 17:33:29 -07:00
2022-11-18 12:17:54 -08:00
2021-02-10 11:05:34 -08:00
2023-04-13 14:32:04 +02:00
2023-03-31 09:40:16 -07:00
2022-09-02 15:55:37 +02:00
2022-03-20 19:16:50 -07:00
2022-09-02 15:55:37 +02:00
2021-05-13 17:23:57 -07:00
2022-03-16 15:13:36 -07:00
2022-03-17 23:12:48 -07:00
2022-02-02 22:31:18 -08:00
2022-09-02 15:55:37 +02:00
2022-09-02 15:55:37 +02:00
2023-03-13 21:51:30 -07:00
2023-04-01 09:07:20 -07:00
2023-02-16 15:32:46 -08:00
2022-08-17 22:43:58 +02:00
2023-02-16 15:32:46 -08:00
2023-02-24 17:34:09 -08:00
2022-09-28 17:33:59 -07:00
2023-03-16 18:12:59 +01:00
2022-09-28 17:34:09 -07:00
2022-09-28 17:34:14 -07:00
2023-01-23 20:53:01 +01:00
2021-11-26 00:15:03 +01:00
2022-09-01 12:16:20 -07:00
2023-02-17 21:21:50 +01:00
2023-03-08 11:15:39 -08:00
2023-03-25 19:52:52 -07:00
2023-01-28 12:30:08 -08:00
2022-09-02 15:55:37 +02:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-04-19 13:48:20 -07:00
2023-04-12 16:40:39 -07:00
2022-08-09 09:47:13 -07:00
2022-02-11 13:13:04 -08:00
2022-05-13 15:15:21 +02:00
2023-03-02 22:41:32 -08:00
2023-03-13 21:51:30 -07:00
2022-02-02 22:31:18 -08:00
2023-03-13 21:51:30 -07:00
2023-03-13 21:51:30 -07:00
2023-04-19 21:29:39 -07:00
2023-02-16 16:56:17 -08:00
2022-11-20 15:45:48 -08:00
2022-09-28 17:34:19 -07:00
2023-02-22 12:34:50 -08:00
2023-02-16 15:32:46 -08:00
2023-03-08 16:19:51 -08:00
2023-01-28 12:30:08 -08:00
2023-02-27 09:49:40 -08:00
2022-11-11 11:44:46 -08:00
2023-02-16 15:32:46 -08:00
2023-04-13 14:17:02 +02:00
2023-04-22 08:26:58 -07:00
2023-01-28 12:30:08 -08:00
2020-03-17 19:29:12 +01:00
2022-09-02 15:55:37 +02:00
2023-01-28 12:30:09 -08:00
2023-03-01 10:05:19 -08:00
2023-02-24 17:34:09 -08:00
2022-02-02 22:31:18 -08:00
2021-07-07 19:51:13 -07:00
2023-02-16 15:32:46 -08:00
2023-02-16 15:32:46 -08:00
2023-04-13 17:22:48 -07:00
2023-02-16 15:32:46 -08:00
2023-02-16 15:32:46 -08:00
2023-04-13 16:04:28 -07:00
2022-02-02 22:31:18 -08:00
2022-09-02 15:55:37 +02:00
2023-02-24 17:34:09 -08:00
2022-09-02 15:55:37 +02:00
2021-09-26 13:07:28 -07:00
2023-02-24 17:34:09 -08:00