Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf: Use hlist_add_head_rcu when linking to local_storage #84

Closed
wants to merge 2 commits into from

Commits on Sep 18, 2020

  1. adding ci files

    kernel-patches-bot committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    b03c3cb View commit details
    Browse the repository at this point in the history
  2. 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: 450af8d ("bpf: Split bpf_local_storage to bpf_sk_storage")
    Signed-off-by: Martin KaFai Lau <kafai@fb.com>
    ---
     kernel/bpf/bpf_local_storage.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    iamkafai authored and kernel-patches-bot committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    2a208c8 View commit details
    Browse the repository at this point in the history