Skip to contentSkip to conversation

pull-request: bpf 2018-06-08

DISCUSSION Daniel Borkmann 2 participants 2 messages Jun 7, 2018 – Jun 8, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi David,

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

The main changes are:

1) Fix in the BPF verifier to reject modified ctx pointers on helper functions, from Daniel.

2) Fix in BPF kselftests for get_cgroup_id_user() helper to only record the cgroup id for a provided pid in order to reduce test failures from processes interferring with the test, from Yonghong.

3) Fix a crash in AF_XDP's mem accounting when the process owning the sock has CAP_IPC_LOCK capabilities set, from Daniel.

4) Fix an issue for AF_XDP on 32 bit machines where XDP_UMEM_PGOFF_*_RING defines need ULL suffixes and use loff_t type as they are otherwise truncated, from Geert.

Please consider pulling these changes from:

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

Thanks a lot!

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

The following changes since commit 1c8c5a9d38f607c0b6fd12c91cbe1a4418762a21:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next (2018-06-06 18:39:49 -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 c09290c5637692a9bfe7740e4c5e693efff12810:

bpf, xdp: fix crash in xdp_umem_unaccount_pages (2018-06-07 15:32:28 -0700)

----------------------------------------------------------------
Daniel Borkmann (2):
bpf: reject passing modified ctx to helper functions bpf, xdp: fix crash in xdp_umem_unaccount_pages

Geert Uytterhoeven (1):
xsk: Fix umem fill/completion queue mmap on 32-bit

Yonghong Song (1):
tools/bpf: fix selftest get_cgroup_id_user

 include/uapi/linux/if_xdp.h                      |  4 +-
 kernel/bpf/verifier.c                            | 48 +++++++++++++-------
 net/xdp/xdp_umem.c                               |  6 ++-
 net/xdp/xsk.c                                    |  2 +-
 tools/testing/selftests/bpf/get_cgroup_id_kern.c | 14 +++++-
 tools/testing/selftests/bpf/get_cgroup_id_user.c | 12 ++++-
 tools/testing/selftests/bpf/test_verifier.c      | 58 +++++++++++++++++++++++-
 7 files changed, 118 insertions(+), 26 deletions(-)
maintainer
#1 lore raw

From: Daniel Borkmann <[email protected]>
Date: Fri, 8 Jun 2018 01:30:00 +0200

Quoted 3 lines

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

The main changes are:

...

Quoted 3 lines

Please consider pulling these changes from:

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

Pulled, thanks Daniel.