From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: [bpf PATCH 0/3] BPF, a couple sockmap fixes Date: Wed, 11 Apr 2018 16:56:10 -0700 Message-ID: <20180411235230.19135.63857.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: ast@kernel.org, daniel@iogearbox.net Return-path: Received: from [184.63.162.180] ([184.63.162.180]:60904 "EHLO john-Precision-Tower-5810" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751870AbeDLABs (ORCPT ); Wed, 11 Apr 2018 20:01:48 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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(-)