Received: by 10.192.165.156 with SMTP id m28csp152424imm; Sun, 15 Apr 2018 19:34:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48DiB/riksJA0qVNHi2bQ0/koYsI3ZxGlj0Ibu1MawLelUpq6pARX+Fh5gCmQGlR133IlMs X-Received: by 10.167.134.12 with SMTP id p12mr19977829pfn.183.1523846069112; Sun, 15 Apr 2018 19:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523846069; cv=none; d=google.com; s=arc-20160816; b=q6lj8LxwWPzLfY7JmF7DGTrnYCBT03hmFTAWreuQXC0A3V7LZCNTEPaCObkoS3XZzv BR1ICC70UYnbGbp1GVxWpcsuI3OUW6SOogmfWhClOxr9z32dwDNjv7civFfSsQl37hZ1 DqRFzlRql/sfvxwxucEewhhU9sp3jPeTbQUyBkkkDNKxi3THPxRrhbO8jn+KMME75hvw UOQQco1bQ/6/k4HtKI0K0TmMjPhaIAC3DWD90HqWZe7QXNg0q3BCIIZMkJSf0zqoNzA/ PrX1XcXwjFMuN/PAr1sPlzPc8hoDpjGP/qV2WUi9RcWUj4kl53XMeGZCUq9Me+ovrPuH nN7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=I4h+gMA4Ny3vsg0k02Ndt8JxhLoQqKketX1lIhLBQig=; b=UVZUC5uaIwUFuGAYQ9l3wr1dWBPjtbRUzHLE9rY3f8pamMFgBtJ+95lFce9rqAHHJb NYFchCfh7VgL5WNghLL0ewhF4OC6x2Lt4whePr+FkiTKki38uGHyQ3C8rDWecHEmGhlj B248OYKCeCSqxaK2izwSCZsCjHv+hKz60hN1IS9FSpuuxvPLneKtlGWgNQu2H6Zh/e9p 0yb9/tSpp4YBAhE4UPgqsci37vp3J8LFLzM+Nvye467LjrkNv8E8QUMKErDczDv6GKry wZANnv+YYg8UxZLcB2/SrJK+YGPu8mAW2CUm4gn6+oxWAbeORxzpnWrW1D5gPSvBVhou OLRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=fq08UL1X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si11132201pld.371.2018.04.15.19.34.15; Sun, 15 Apr 2018 19:34:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=fq08UL1X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752899AbeDPCbv (ORCPT + 99 others); Sun, 15 Apr 2018 22:31:51 -0400 Received: from ozlabs.org ([203.11.71.1]:54007 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbeDPCbu (ORCPT ); Sun, 15 Apr 2018 22:31:50 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40PXSz326gz9s08; Mon, 16 Apr 2018 12:31:47 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1523845907; bh=1SDT2CW4gyaLxLAykstbOeowHwnCeMV8J0dZoD7kWQQ=; h=Date:From:To:Cc:Subject:From; b=fq08UL1XV+Ow45FPjLehGLZZl8B/tkyBhxdIBIrH4QOM93WRgIZyanpeZwBI9yVrU MudY3Y3xfF8IS7HcixmlqVQN4EPCF+nBkJLmO2/+p8iK1sJILscWO0FB61C8ZC+dgb q5qe9RERZAxpruSm8iSssZXlSD0qDZiBEcDTpcIU7YcgHc7IDG/goZvAylQ4BTZ9OD Cpq3MdU6x+iIudCNgwG9RHV9em5u7sDoo4eXIGFCNQGYOHB36r3OclfE1kb+HP0OiV Pc1iAV6omvkQpFnkNrbtD52jL+dIyeQFnYCPx/zje6iK3SvHBMcIh1Bd8N97TqTptx 7AyR/wiOdzyRg== Date: Mon, 16 Apr 2018 12:30:00 +1000 From: Stephen Rothwell To: Daniel Borkmann , Alexei Starovoitov , Networking Cc: Linux-Next Mailing List , Linux Kernel Mailing List , John Fastabend Subject: linux-next: build failure after merge of the bpf tree Message-ID: <20180416123000.30fd8a04@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/z/+uyHLVn+3.ksDUOgyPIfK"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/z/+uyHLVn+3.ksDUOgyPIfK Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the bpf tree, today's linux-next build (arm multi_v7_defconfig) failed like this: kernel/bpf/core.o: In function `sock_map_release': core.c:(.text+0xd04): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here kernel/events/core.o: In function `sock_map_release': core.c:(.text+0x85cc): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here block/blk-core.o: In function `sock_map_release': blk-core.c:(.text+0x58e8): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here drivers/net/virtio_net.o: In function `sock_map_release': virtio_net.c:(.text+0x53ec): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here net/core/dev.o: In function `sock_map_release': dev.c:(.text+0x6c68): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here net/core/rtnetlink.o: In function `sock_map_release': rtnetlink.c:(.text+0x63e0): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here net/core/filter.o: In function `sock_map_release': filter.c:(.text+0x8c8c): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here net/core/sock_reuseport.o: In function `sock_map_release': sock_reuseport.c:(.text+0x398): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here net/bpf/test_run.o: In function `sock_map_release': test_run.c:(.text+0x3dc): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here net/packet/af_packet.o: In function `sock_map_release': af_packet.c:(.text+0x6958): multiple definition of `sock_map_release' kernel/sysctl.o:sysctl.c:(.text+0x1a50): first defined here Caused by commit 9b2e8bbc4e7a ("bpf: sockmap, map_release does not hold refcnt for pinned = maps") I applied the following patch for today: From: Stephen Rothwell Date: Mon, 16 Apr 2018 12:27:24 +1000 Subject: [PATCH] fix for "bpf: sockmap, map_release does not hold refcnt for pinned maps" Signed-off-by: Stephen Rothwell --- include/linux/bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index f46561de5154..3b6c2b66f414 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -660,7 +660,7 @@ static inline int sock_map_prog(struct bpf_map *map, return -EOPNOTSUPP; } =20 -void sock_map_release(struct bpf_map *map) {} +static inline void sock_map_release(struct bpf_map *map) {} #endif =20 /* verifier prototypes for helper functions called from eBPF programs */ --=20 2.16.3 --=20 Cheers, Stephen Rothwell --Sig_/z/+uyHLVn+3.ksDUOgyPIfK Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlrUCqgACgkQAVBC80lX 0GwJSQf/bE61HpqdcNVK65k6QMq+KhnOJrII8d0UqpvUZsM2zKJ9H2VOzqokvwxs HYvbSwIYJ/fTXgDBpb+hMP+ghlCzhAprdHobVeplffsQPV5LVMTbcwpdqpg8nC3U vdXW2LUZoJPKGW9iPaC56ULf/QE8mDdeXr4sO6cDQ0e1Rpplmz+T43PPfgjUAKle ktP/3Xw/DQEvoDIhkh64zCBTFQoE35Mr1sC6uXpBIp6ccEJ9NscCQU3cXKDALUH0 piD8kbgQCXD6F4gxJFVUtQ2HEqPnAbgv1pxDfkTKV+xjpYZETSdL0kAVNENitQrH PKpOhCihtTgGdDZWOxTwMicV9EeZXg== =IQvX -----END PGP SIGNATURE----- --Sig_/z/+uyHLVn+3.ksDUOgyPIfK--