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

kallsyms: Disable preemption for find_kallsyms_symbol_value #4875

Closed

Commits on Apr 5, 2023

  1. adding ci files

    Kernel Patches Daemon committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    34003fc View commit details
    Browse the repository at this point in the history
  2. kallsyms: Disable preemption for find_kallsyms_symbol_value

    Artem reported suspicious RCU usage [1]. The reason is that verifier
    calls find_kallsyms_symbol_value with preemption enabled which will
    trigger suspicious RCU usage warning in rcu_dereference_sched call.
    
    Disabling preemption in find_kallsyms_symbol_value and adding
    __find_kallsyms_symbol_value function.
    
    Fixes: 31bf1db ("bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules")
    [1] https://lore.kernel.org/bpf/ZBrPMkv8YVRiWwCR@samus.usersys.redhat.com/
    Reported-by: Artem Savkov <asavkov@redhat.com>
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com>
    Tested-by: Artem Savkov <asavkov@redhat.com>
    olsajiri authored and Kernel Patches Daemon committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    74925c4 View commit details
    Browse the repository at this point in the history