Thread (3 messages) 3 messages, 2 authors, 2021-02-12

Re: [PATCH v2 bpf 1/2] libbpf: Ignore non function pointer member in struct_ops

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-02-12 20:01:08
Also in: netdev

Hello:

This series was applied to bpf/bpf-next.git (refs/heads/master):

On Thu, 11 Feb 2021 18:10:30 -0800 you wrote:
When libbpf initializes the kernel's struct_ops in
"bpf_map__init_kern_struct_ops()", it enforces all
pointer types must be a function pointer and rejects
others.  It turns out to be too strict.  For example,
when directly using "struct tcp_congestion_ops" from vmlinux.h,
it has a "struct module *owner" member and it is set to NULL
in a bpf_tcp_cc.o.

[...]
Here is the summary with links:
  - [v2,bpf,1/2] libbpf: Ignore non function pointer member in struct_ops
    https://git.kernel.org/bpf/bpf-next/c/d2836dddc95d
  - [v2,bpf,2/2] bpf: selftests: Add non function pointer test to struct_ops
    https://git.kernel.org/bpf/bpf-next/c/a79e88dd2ca6

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help