diff options
author | Martin KaFai Lau <kafai@fb.com> | 2020-09-16 13:44:53 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-09-19 01:12:35 +0200 |
commit | 70b971118e074d5042715587953f27929e99117a (patch) | |
tree | 3f9ca1fe39088ec8351cf1bfc2504d1fdadef75e /LICENSES/preferred | |
parent | f55f4c349a03d820c27145bdf457013b42e4b487 (diff) |
bpf: Use hlist_add_head_rcu when linking to local_storage
The local_storage->list will be traversed by rcu reader in parallel.
Thus, hlist_add_head_rcu() is needed in bpf_selem_link_storage_nolock().
This patch fixes it.
This part of the code has recently been refactored in bpf-next
and this patch makes changes to the new file "bpf_local_storage.c".
Instead of using the original offending commit in the Fixes tag,
the commit that created the file "bpf_local_storage.c" is used.
A separate fix has been provided to the bpf tree.
Fixes: 450af8d0f6be ("bpf: Split bpf_local_storage to bpf_sk_storage")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200916204453.2003915-1-kafai@fb.com
Diffstat (limited to 'LICENSES/preferred')
0 files changed, 0 insertions, 0 deletions