Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4616230pxj; Tue, 25 May 2021 12:03:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDptOzoGZT+o3UYmgebGeQLwuvkNPecHRo49hW//8VdpEaB422FCjrR4rjoRwneNu7kWXb X-Received: by 2002:a05:6e02:2141:: with SMTP id d1mr14796360ilv.190.1621969430083; Tue, 25 May 2021 12:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621969430; cv=none; d=google.com; s=arc-20160816; b=b1YbiLkpqSgWRRwECIJpnDG7L9/mtFWxRPVMPZ9dGn11+zboQ1kWHSHD4mYo7thXHj PwAk9OiKbWkP0hSSWvrJTvCxyehDQI6fhVnln0FDzzp6SRUOx+UmJmpgyl1JOVkDvM/e GS4T0CXQXAYTf9aKkOnpg0X/hZcBFdBuXQL852St6NCwZVqG49EcAuy7trCplAJUVAde /JpCa/R0BWelx0jGoij+EN6Mzr1G89nS3PLS1id6hQ0MNCtR5V9t5MAKdUIbmqzMQWJA CJuGHdN784/Rkhxp+VOKkA8Bgp4f8ZlcqaG1t1tRo7A4tm4MZ/L3vE5pui3uCIow4+TY hKWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=P9Aa6sjzqr3comczSUqTSJnMMVooMAwTrpOa77UBks8=; b=Y3t1IOmlpPq7xccWahuOLAW1W/Mw4jcHWApHBIDSIvyFxbApQ+a8iUqSjXDh0C4Rzv dQU4ldsoMG4RZm0/b+Ua+tzTdkdzNf3/ibqGGZIuS1j6A7cBuZfNrvqnF7muYDu3RONb 89Ry8mirhC51rpv3MPL9V65AlqFp/cdxepFuJFclTH+Todp2QtabbsqyqRyJ1RNM9p5D 55aTX7MB1pg4JJaREjRG6Crn8JaV+oS0zM5CCjFIdr8Ozr9cPZnM8FqM2C8tFLEkpRlG bQlfF52RUDjYZHieullBc/ll6HeaAroXdbPQBVgw7RNykP6NGbJ3KTKS3JSGksWMIpo3 /BMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4r8ofo52; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si13433250ilg.107.2021.05.25.12.03.31; Tue, 25 May 2021 12:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4r8ofo52; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231696AbhEYTDB (ORCPT + 99 others); Tue, 25 May 2021 15:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbhEYTC7 (ORCPT ); Tue, 25 May 2021 15:02:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237B8C061574; Tue, 25 May 2021 12:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=P9Aa6sjzqr3comczSUqTSJnMMVooMAwTrpOa77UBks8=; b=4r8ofo52cSZjzB358cWP0dRx5G eNZ3kuTpB8MSVvVlmzfDBopadV4P1dJtzIH/MPvjF63kT/VoDQsRch4X7zF+K8VFZWk/Qo+h0UhZU 5LQjvJbEkKeApwLTZS6vHou1ywF8sV+syiBLTgTjGYsR02qepld5PLphj55m4LY033LimxKPZ6iiX vgbYcgOSehmsQj4JdyH6uWEz/uFeGNQsN4mHOiWlc1CZAwMXrvICSxFIEw4DPZpGhA0Mpf5PvVpmI 9yhy0FdUJKdK2TnSDAAdNiZ8JTW5ZjApyz3Z46OVgPtUO1l6mDbQfeFFZoiRk5W4HXJrSPOkztQ6L m8mAVzVw==; Received: from [2601:1c0:6280:3f0::7376] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1llcIx-007Vje-LO; Tue, 25 May 2021 19:01:27 +0000 Subject: Re: linux-next: Tree for May 18 (kernel/bpf/bpf_lsm.o) To: Daniel Borkmann , Stephen Rothwell , Linux Next Mailing List Cc: Linux Kernel Mailing List , "netdev@vger.kernel.org" , bpf , Alexei Starovoitov , Andrii Nakryiko References: <20210518192729.3131eab0@canb.auug.org.au> <7955d9e2-a584-1693-749a-5983187e0306@infradead.org> <166d8da3-1f1f-c245-cc46-c40e12fb71ab@iogearbox.net> From: Randy Dunlap Message-ID: Date: Tue, 25 May 2021 12:01:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 11:31 AM, Daniel Borkmann wrote: > Hi Randy, > > On 5/25/21 8:26 PM, Daniel Borkmann wrote: >> On 5/25/21 7:30 PM, Randy Dunlap wrote: >>> On 5/18/21 10:02 AM, Randy Dunlap wrote: >>>> On 5/18/21 2:27 AM, Stephen Rothwell wrote: >>>>> Hi all, >>>>> >>>>> Changes since 20210514: >>>>> >>>> >>>> on i386: >>>> # CONFIG_NET is not set >>>> >>>> ld: kernel/bpf/bpf_lsm.o: in function `bpf_lsm_func_proto': >>>> bpf_lsm.c:(.text+0x1a0): undefined reference to `bpf_sk_storage_get_proto' >>>> ld: bpf_lsm.c:(.text+0x1b8): undefined reference to `bpf_sk_storage_delete_proto' >>>> >>>> >>>> Full randconfig file is attached. >>>> >>> >>> Hi, >>> I am still seeing this build error in linux-next-20210525. >> >> Will take a look and get back. > > This should resolve it: Acked-by: Randy Dunlap # build-tested Thanks. > > diff --git a/kernel/bpf/bpf_lsm.c b/kernel/bpf/bpf_lsm.c > index 5efb2b24012c..da471bf01b97 100644 > --- a/kernel/bpf/bpf_lsm.c > +++ b/kernel/bpf/bpf_lsm.c > @@ -107,10 +107,12 @@ bpf_lsm_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) >         return &bpf_inode_storage_get_proto; >     case BPF_FUNC_inode_storage_delete: >         return &bpf_inode_storage_delete_proto; > +#ifdef CONFIG_NET >     case BPF_FUNC_sk_storage_get: >         return &bpf_sk_storage_get_proto; >     case BPF_FUNC_sk_storage_delete: >         return &bpf_sk_storage_delete_proto; > +#endif /* CONFIG_NET */ >     case BPF_FUNC_spin_lock: >         return &bpf_spin_lock_proto; >     case BPF_FUNC_spin_unlock: -- ~Randy