[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180423182726.17999.269.stgit@john-Precision-Tower-5810>
Date: Mon, 23 Apr 2018 11:29:24 -0700
From: John Fastabend <john.fastabend@...il.com>
To: ast@...nel.org, daniel@...earbox.net
Cc: netdev@...r.kernel.org
Subject: [bpf PATCH v2 0/3] BPF, a couple sockmap fixes
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.
v2: Incorporated Daniel's feedback to use map ops for uref put op
which also fixed the build error discovered in v1.
---
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 page_put on ENOMEM error in redirect path
include/linux/bpf.h | 2 +-
kernel/bpf/arraymap.c | 3 ++-
kernel/bpf/sockmap.c | 51 +++++++++++++++++++++++++++++++++++++++++++++----
kernel/bpf/syscall.c | 4 ++--
4 files changed, 52 insertions(+), 8 deletions(-)
--
Signature
Powered by blists - more mailing lists