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

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: kallsyms: Disable preemption for find_kallsyms_symbol_value
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=736571

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 16b7c97
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=736571
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: f6a6a5a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=736571
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 8fc59c2
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=736571
version: 1

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>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: e8f59d8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=736571
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=736571 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/736571=>bpf-next branch April 5, 2023 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant