netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pull-request: bpf 2018-01-09
@ 2018-01-09 22:03 Daniel Borkmann
  2018-01-10 16:17 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Borkmann @ 2018-01-09 22:03 UTC (permalink / raw)
  To: davem; +Cc: daniel, ast, netdev

Hi David,

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

The main changes are:

1) Prevent out-of-bounds speculation in BPF maps by masking the
   index after bounds checks in order to fix spectre v1, and
   add an option BPF_JIT_ALWAYS_ON into Kconfig that allows for
   removing the BPF interpreter from the kernel in favor of
   JIT-only mode to make spectre v2 harder, from Alexei.

2) Remove false sharing of map refcount with max_entries which
   was used in spectre v1, from Daniel.

3) Add a missing NULL psock check in sockmap in order to fix
   a race, from John.

4) Fix test_align BPF selftest case since a recent change in
   verifier rejects the bit-wise arithmetic on pointers
   earlier but test_align update was missing, from Alexei.

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 5133550296d43236439494aa955bfb765a89f615:

  sh_eth: fix SH7757 GEther initialization (2018-01-05 13:59:18 -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 290af86629b25ffd1ed6232c4e9107da031705cb:

  bpf: introduce BPF_JIT_ALWAYS_ON config (2018-01-09 22:25:26 +0100)

----------------------------------------------------------------
Alexei Starovoitov (3):
      selftests/bpf: fix test_align
      bpf: prevent out-of-bounds speculation
      bpf: introduce BPF_JIT_ALWAYS_ON config

Daniel Borkmann (1):
      bpf: avoid false sharing of map refcount with max_entries

John Fastabend (1):
      bpf: sockmap missing NULL psock check

 include/linux/bpf.h                      | 26 ++++++++++++------
 init/Kconfig                             |  7 +++++
 kernel/bpf/arraymap.c                    | 47 ++++++++++++++++++++++++--------
 kernel/bpf/core.c                        | 19 +++++++++++++
 kernel/bpf/sockmap.c                     | 11 ++++++--
 kernel/bpf/verifier.c                    | 36 ++++++++++++++++++++++++
 lib/test_bpf.c                           | 11 +++++---
 net/core/filter.c                        |  6 ++--
 net/core/sysctl_net_core.c               |  6 ++++
 net/socket.c                             |  9 ++++++
 tools/testing/selftests/bpf/test_align.c | 22 +--------------
 11 files changed, 150 insertions(+), 50 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pull-request: bpf 2018-01-09
  2018-01-09 22:03 pull-request: bpf 2018-01-09 Daniel Borkmann
@ 2018-01-10 16:17 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-01-10 16:17 UTC (permalink / raw)
  To: daniel; +Cc: ast, netdev

From: Daniel Borkmann <daniel@iogearbox.net>
Date: Tue,  9 Jan 2018 23:03:21 +0100

> The following pull-request contains BPF updates for your *net* tree.
> 
> The main changes are:
> 
> 1) Prevent out-of-bounds speculation in BPF maps by masking the
>    index after bounds checks in order to fix spectre v1, and
>    add an option BPF_JIT_ALWAYS_ON into Kconfig that allows for
>    removing the BPF interpreter from the kernel in favor of
>    JIT-only mode to make spectre v2 harder, from Alexei.
> 
> 2) Remove false sharing of map refcount with max_entries which
>    was used in spectre v1, from Daniel.
> 
> 3) Add a missing NULL psock check in sockmap in order to fix
>    a race, from John.
> 
> 4) Fix test_align BPF selftest case since a recent change in
>    verifier rejects the bit-wise arithmetic on pointers
>    earlier but test_align update was missing, from Alexei.
> 
> Please consider pulling these changes from:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git

Pulled, thanks Daniel.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-10 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-09 22:03 pull-request: bpf 2018-01-09 Daniel Borkmann
2018-01-10 16:17 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).