Files
kernel_samsung_a71/kernel
Roman Gushchin 0a203f3e16 UPSTREAM: bpf: fix rcu annotations in compute_effective_progs()
The progs local variable in compute_effective_progs() is marked
as __rcu, which is not correct. This is a local pointer, which
is initialized by bpf_prog_array_alloc(), which also now
returns a generic non-rcu pointer.

The real rcu-protected pointer is *array (array is a pointer
to an RCU-protected pointer), so the assignment should be performed
using rcu_assign_pointer().

Bug: 254441685
Fixes: 324bda9e6c5a ("bpf: multi program support for cgroup+bpf")
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
(cherry picked from commit 3960f4fd6585608e8cc285d9665821985494e147)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ia76011cab50355b3342e322e05ec77d0229e9e08
2024-01-10 12:50:16 +00:00
..
2022-06-28 18:00:02 +00:00
2023-12-20 15:32:35 +01:00
2023-08-23 14:54:21 +00:00
2021-09-22 13:49:42 +02:00
2020-01-13 19:40:11 +00:00
2019-08-19 12:42:20 -07:00
2020-04-02 16:34:20 +02:00
2019-08-12 13:29:46 -04:00
2021-02-07 14:47:41 +01:00
2023-01-25 15:44:17 +00:00
2020-01-09 10:17:53 +01:00