public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [bpf PATCH 0/3] BPF, a couple sockmap fixes
@ 2018-04-11 23:56 John Fastabend
  2018-04-11 23:56 ` [bpf PATCH 1/3] bpf: sockmap, map_release does not hold refcnt for pinned maps John Fastabend
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: John Fastabend @ 2018-04-11 23:56 UTC (permalink / raw)
  To: ast, daniel; +Cc: netdev

While testing sockmap with more programs (besides our test programs)
I found a couple issues.

The attached series fixes an issue where pinned maps were not
working correctly, blocking sockets returned zero, and an error
path that when the sock hit an out of memory case resulted in a
double page_put() while doing ingress redirects.

See individual patches for more details.

Thanks,
John

---

John Fastabend (3):
      bpf: sockmap, map_release does not hold refcnt for pinned maps
      bpf: sockmap, sk_wait_event needed to handle blocking cases
      bpf: sockmap, fix double put_page on ENOMEM error in redirect path


 include/linux/bpf.h  |    3 +++
 kernel/bpf/sockmap.c |   51 ++++++++++++++++++++++++++++++++++++++++++++++----
 kernel/bpf/syscall.c |   10 +++++++++-
 3 files changed, 59 insertions(+), 5 deletions(-)

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

end of thread, other threads:[~2018-04-13  1:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-11 23:56 [bpf PATCH 0/3] BPF, a couple sockmap fixes John Fastabend
2018-04-11 23:56 ` [bpf PATCH 1/3] bpf: sockmap, map_release does not hold refcnt for pinned maps John Fastabend
2018-04-11 23:56 ` [bpf PATCH 2/3] bpf: sockmap, sk_wait_event needed to handle blocking cases John Fastabend
2018-04-11 23:56 ` [bpf PATCH 3/3] bpf: sockmap, fix double put_page on ENOMEM error in redirect path John Fastabend
2018-04-13  1:11 ` [bpf PATCH 0/3] BPF, a couple sockmap fixes Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox