Files
kernel_oneplus_sm8250/include/linux
YiFei Zhu a8205a2e08 UPSTREAM: bpf: Mutex protect used_maps array and count
To support modifying the used_maps array, we use a mutex to protect
the use of the counter and the array. The mutex is initialized right
after the prog aux is allocated, and destroyed right before prog
aux is freed. This way we guarantee it's initialized for both cBPF
and eBPF.

Change-Id: I5a5a46193377945bf8bded1a5d8e2effc426555e
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Cc: YiFei Zhu <zhuyifei1999@gmail.com>
Link: https://lore.kernel.org/bpf/20200915234543.3220146-2-sdf@google.com
2025-08-28 03:27:54 +03:00
..
2022-10-26 13:19:32 +02:00
2022-12-17 00:25:35 +02:00
2020-06-17 06:00:22 +05:30
2021-01-30 13:32:12 +01:00
2020-05-11 10:27:22 -07:00
2024-06-09 02:32:30 +03:00
2021-03-05 07:01:18 +01:00
2021-08-27 15:24:34 +02:00
2022-08-25 11:15:23 +02:00
2020-09-09 19:48:58 +02:00
2021-06-30 19:17:14 +02:00
2023-06-21 15:39:57 +02:00
2020-04-24 09:54:37 +05:30
2020-03-25 09:50:38 +01:00
2020-06-16 12:51:47 -07:00
2024-07-06 10:19:40 +00:00
2023-02-22 12:28:07 +00:00
2025-08-28 03:26:18 +03:00
2023-10-25 11:16:20 +02:00
2021-12-14 10:18:04 +01:00
2020-04-02 15:28:22 +02:00
2023-05-18 15:51:07 +00:00
2020-09-11 11:22:30 -07:00
2024-02-23 08:12:39 +01:00
2020-04-02 15:28:23 +02:00
2022-02-28 18:50:08 +05:30