netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Two BPF fixes
@ 2016-12-17  0:54 Daniel Borkmann
  2016-12-17  0:54 ` [PATCH net 1/2] bpf: dynamically allocate digest scratch buffer Daniel Borkmann
  2016-12-17  0:54 ` [PATCH net 2/2] bpf: fix overflow in prog accounting Daniel Borkmann
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Borkmann @ 2016-12-17  0:54 UTC (permalink / raw)
  To: davem; +Cc: ast, netdev, Daniel Borkmann

This set contains two BPF fixes for net, one that addresses the
complaint from Geert wrt static allocations, and the other is a
fix wrt mem accounting that I found recently during testing.

Thanks!

Daniel Borkmann (2):
  bpf: dynamically allocate digest scratch buffer
  bpf: fix overflow in prog accounting

 include/linux/bpf.h    |  2 +-
 include/linux/filter.h | 17 ++++++++--
 kernel/bpf/core.c      | 88 ++++++++++++++++++++++++++++++++++++++++++--------
 kernel/bpf/syscall.c   | 27 +---------------
 kernel/bpf/verifier.c  |  6 ++--
 5 files changed, 94 insertions(+), 46 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH net 0/2] Two BPF fixes
@ 2017-04-17  1:12 Daniel Borkmann
  2017-04-17 19:52 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Borkmann @ 2017-04-17  1:12 UTC (permalink / raw)
  To: davem; +Cc: alexei.starovoitov, kubakici, netdev, Daniel Borkmann

The set fixes cb_access and xdp_adjust_head bits in struct bpf_prog,
that are used for requirement checks on the program rather than f.e.
heuristics. Thus, for tail calls, we cannot make any assumptions and
are forced to set them.

Thanks!

Daniel Borkmann (2):
  bpf: fix cb access in socket filter programs on tail calls
  bpf: fix checking xdp_adjust_head on tail calls

 kernel/bpf/syscall.c | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
1.9.3

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

end of thread, other threads:[~2017-04-17 19:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-17  0:54 [PATCH net 0/2] Two BPF fixes Daniel Borkmann
2016-12-17  0:54 ` [PATCH net 1/2] bpf: dynamically allocate digest scratch buffer Daniel Borkmann
2016-12-17  0:54 ` [PATCH net 2/2] bpf: fix overflow in prog accounting Daniel Borkmann
2016-12-17  2:52   ` kbuild test robot
2016-12-17 10:03     ` Daniel Borkmann
2016-12-17  3:15   ` kbuild test robot
  -- strict thread matches above, loose matches on Subject: below --
2017-04-17  1:12 [PATCH net 0/2] Two BPF fixes Daniel Borkmann
2017-04-17 19:52 ` 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).