Skip to contentSkip to conversation

pull-request: bpf 2020-03-27

DISCUSSION Daniel Borkmann 2 participants 2 messages Mar 27, 2020

Subsystems (3)
lore
Share & tools
lore

Daniel Borkmann

author maintainer
#0 lore raw

Hi David,

The following pull-request contains BPF updates for your *net* tree.

We've added 3 non-merge commits during the last 4 day(s) which contain a total of 4 files changed, 25 insertions(+), 20 deletions(-).

The main changes are:

1) Explicitly memset the bpf_attr structure on bpf() syscall to avoid having to rely on compiler to do so. Issues have been noticed on some compilers with padding and other oddities where the request was then unexpectedly rejected, from Greg Kroah-Hartman.

2) Sanitize the bpf_struct_ops TCP congestion control name in order to avoid problematic characters such as whitespaces, from Martin KaFai Lau.

Please consider pulling these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git

Thanks a lot!

Also thanks to reporters, reviewers and testers of commits in this pull-request:

Alexander Potapenko, Alistair Delva, Andrii Nakryiko, Daniel Borkmann, John Stultz, Maciej Żenczykowski, Yonghong Song

----------------------------------------------------------------

The following changes since commit 32ca98feab8c9076c89c0697c5a85e46fece809d:

net: ip_gre: Accept IFLA_INFO_DATA-less configuration (2020-03-16 17:19:56 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git

for you to fetch changes up to 5c6f25887963f15492b604dd25cb149c501bbabf:

bpf: Explicitly memset some bpf info structures declared on the stack (2020-03-20 21:05:22 +0100)

----------------------------------------------------------------
Greg Kroah-Hartman (2):
bpf: Explicitly memset the bpf_attr structure
bpf: Explicitly memset some bpf info structures declared on the stack

Martin KaFai Lau (1):
bpf: Sanitize the bpf_struct_ops tcp-cc name

 include/linux/bpf.h   |  1 +
 kernel/bpf/btf.c      |  3 ++-
 kernel/bpf/syscall.c  | 34 ++++++++++++++++++++--------------
 net/ipv4/bpf_tcp_ca.c |  7 ++-----
 4 files changed, 25 insertions(+), 20 deletions(-)
maintainer
#1 lore raw

From: Daniel Borkmann <[email protected]>
Date: Fri, 27 Mar 2020 22:54:05 +0100

Quoted 12 lines

The following pull-request contains BPF updates for your *net* tree.

We've added 3 non-merge commits during the last 4 day(s) which contain a total of 4 files changed, 25 insertions(+), 20 deletions(-).

The main changes are:

1) Explicitly memset the bpf_attr structure on bpf() syscall to avoid having to rely on compiler to do so. Issues have been noticed on some compilers with padding and other oddities where the request was then unexpectedly rejected, from Greg Kroah-Hartman.

Quoted 6 lines

2) Sanitize the bpf_struct_ops TCP congestion control name in order to avoid problematic characters such as whitespaces, from Martin KaFai Lau.

Please consider pulling these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git

Pulled, thanks Daniel.