1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-21 13:54:31 +00:00
Anton Protopopov 4d3ae294f9 bpf: Add fd_array_cnt attribute for prog_load
The fd_array attribute of the BPF_PROG_LOAD syscall may contain a set
of file descriptors: maps or btfs. This field was introduced as a
sparse array. Introduce a new attribute, fd_array_cnt, which, if
present, indicates that the fd_array is a continuous array of the
corresponding length.

If fd_array_cnt is non-zero, then every map in the fd_array will be
bound to the program, as if it was used by the program. This
functionality is similar to the BPF_PROG_BIND_MAP syscall, but such
maps can be used by the verifier during the program load.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241213130934.1087929-5-aspsk@isovalent.com
2024-12-13 14:48:36 -08:00
..
2024-07-31 13:56:00 +02:00
2024-04-15 13:42:38 +02:00
2024-11-03 20:33:43 +00:00
2024-08-20 14:02:22 -04:00
2024-08-28 06:53:58 -07:00
2024-08-28 06:53:58 -07:00
2024-04-08 14:10:45 +01:00
2024-06-11 12:57:49 -05:00
2024-11-01 01:19:00 +00:00
2024-11-26 13:26:15 -08:00
2024-09-04 16:51:11 +02:00
2024-05-07 01:35:57 +02:00
2024-08-29 10:39:37 +02:00
2024-04-01 10:49:28 +01:00
2024-08-26 09:37:23 -07:00
2024-08-26 09:37:23 -07:00
2024-06-01 07:28:21 +02:00
2024-09-01 20:26:05 -07:00
2024-09-16 23:50:52 +02:00
2024-08-19 22:36:26 -04:00
2024-09-06 08:31:40 -06:00
2024-08-12 17:50:34 -07:00
2024-09-16 11:15:26 +02:00
2024-11-25 13:40:55 -06:00
2024-10-24 13:54:51 +02:00
2024-10-09 19:55:40 -07:00
2024-11-05 10:24:16 +00:00
2024-11-06 12:59:44 -05:00