Skip to contentSkip to conversation

pull-request: bpf 2017-12-17

DISCUSSION Daniel Borkmann 2 participants 2 messages Dec 17, 2017 – Dec 18, 2017

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 a corner case in generic XDP where we have non-linear skbs but enough tailroom in the skb to not miss to linearizing there, from Song.

2) Fix BPF JIT bugs in s390x and ppc64 to not recache skb data when BPF context is not skb, from Daniel.

3) Fix a BPF JIT bug in sparc64 where recaching skb data after helper call would use the wrong register for the skb, from Daniel.

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 8c8f67a46f2bf33556ad12a1971734047b60831a:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf (2017-12-13 17:30:04 -0500)

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 c1b08ebe5003ae291470cb6e26923628ab19606f:

Merge branch 'bpf-jit-fixes' (2017-12-15 09:19:37 -0800)

----------------------------------------------------------------
Alexei Starovoitov (1):
Merge branch 'bpf-jit-fixes'

Daniel Borkmann (5):
bpf, s390x: do not reload skb pointers in non-skb context bpf, ppc64: do not reload skb pointers in non-skb context
bpf: guarantee r1 to be ctx in case of bpf_helper_changes_pkt_data bpf, sparc: fix usage of wrong reg for load_skb_regs after call
bpf: add test case for ld_abs and helper changing pkt data

Song Liu (1):
xdp: linearize skb in netif_receive_generic_xdp()

 arch/powerpc/net/bpf_jit_comp64.c           |  6 ++--
 arch/s390/net/bpf_jit_comp.c                | 11 ++++----
 arch/sparc/net/bpf_jit_comp_64.c            |  6 ++--
 kernel/bpf/verifier.c                       |  6 ++++
 lib/test_bpf.c                              | 43 +++++++++++++++++++++++++++++
 net/core/dev.c                              |  2 +-
 tools/testing/selftests/bpf/test_verifier.c | 24 ++++++++++++++++
 7 files changed, 87 insertions(+), 11 deletions(-)
maintainer
#1 lore raw

From: Daniel Borkmann <[email protected]>
Date: Sun, 17 Dec 2017 21:06:26 +0100

Quoted 11 lines

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

The main changes are:

1) Fix a corner case in generic XDP where we have non-linear skbs but enough tailroom in the skb to not miss to linearizing there, from Song.

2) Fix BPF JIT bugs in s390x and ppc64 to not recache skb data when BPF context is not skb, from Daniel.

Quoted 6 lines

3) Fix a BPF JIT bug in sparc64 where recaching skb data after helper call would use the wrong register for the skb, from Daniel.

Please consider pulling these changes from:

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

Pulled, thanks Daniel.