Thread (3 messages) 3 messages, 2 authors, 2021-03-26

Re: [PATCH bpf v3 1/2] bpf: enforce that struct_ops programs be GPL-only

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-03-26 17:00:49
Also in: bpf

Hello:

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

On Fri, 26 Mar 2021 11:03:13 +0100 you wrote:
With the introduction of the struct_ops program type, it became possible to
implement kernel functionality in BPF, making it viable to use BPF in place
of a regular kernel module for these particular operations.

Thus far, the only user of this mechanism is for implementing TCP
congestion control algorithms. These are clearly marked as GPL-only when
implemented as modules (as seen by the use of EXPORT_SYMBOL_GPL for
tcp_register_congestion_control()), so it seems like an oversight that this
was not carried over to BPF implementations. Since this is the only user
of the struct_ops mechanism, just enforcing GPL-only for the struct_ops
program type seems like the simplest way to fix this.

[...]
Here is the summary with links:
  - [bpf,v3,1/2] bpf: enforce that struct_ops programs be GPL-only
    https://git.kernel.org/bpf/bpf/c/12aa8a9467b3
  - [bpf,v3,2/2] bpf/selftests: test that kernel rejects a TCP CC with an invalid license
    https://git.kernel.org/bpf/bpf/c/d8e8052e42d0

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