Skip to content

ftrace: fix incorrect hash size in register_ftrace_direct() #8788

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

Closed
wants to merge 1 commit into from

Conversation

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

Pull request for series with
subject: ftrace: fix incorrect hash size in register_ftrace_direct()
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=952720

@kernel-patches-daemon-bpf
Copy link
Author

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

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: a650d38
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=952788
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 8ffd015
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=952788
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 8ffd015
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=952788
version: 2

The maximum of the ftrace hash bits is made fls(32) in
register_ftrace_direct(), which seems illogical. So, we fix it by making
the max hash bits FTRACE_HASH_MAX_BITS instead.

Fixes: d05cb47 ("ftrace: Fix modification of direct_function hash while in use")
Signed-off-by: Menglong Dong <[email protected]>
Acked-by: Masami Hiramatsu (Google) <[email protected]>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 834a4a6
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=952788
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant