Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4607334pxj; Tue, 25 May 2021 11:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpIN8jl0V55xuyPeIBGrYGXOOtjEtnJ3vA4LduAza0snF9nnqcDNzeg0VMwQ0fnZS9T2FE X-Received: by 2002:a92:da8b:: with SMTP id u11mr23028285iln.135.1621968625987; Tue, 25 May 2021 11:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621968625; cv=none; d=google.com; s=arc-20160816; b=MVoQD4Fce7qCCqelzzSKYKS7oqITvOt9R0Rt7wPRcTxf2GkM4lgDiCzxUP2furQXbq drSpQXw00UdqO8zFpbeRHhI/du+picvtLkTUvNJSg9A7MjylHfZ32chxqEAvhelSNF3N 7TExyN2YI8lOk8Sit63EsscBM1teQ4Ynjz7eqWYuerzFzJ4WHzEUfp7qwiauF7MgayTl eGXXyVXM0dEl0JPJHEMIlATm7B6qj+cbNG1hRT5E84HCz+7zs1WcjhTsBvjw3R/65TOD W/3804YAvR07iBt9+J6jIiVc/2AqfQ0eZ9i5DGmWqsPvLYiGyu86blP+rA/SqNu6xjhv bTLg== 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:references:cc :to:from:subject; bh=aDm92mLSnsRgZh0O/wZ8voEEX3J3DP82YdQo3utT2lM=; b=DMjSrLW3bJezCvP/emuYM7I+eT1K9Ex84EJkyO4wS0FZwyvCtBjzK3H6bF76owfHvR pGgfKpF9ZuhS8zMPK2oYYVR+AXhj452v5V1rC8qgzW4j03gkzYVEne1xyXleqevrcbnS 47S6uZKsReBmUjTb6qWZJc+4PKH3GxEUijE/WX2S2v8Q2IpapqkB1VvdpJffZeXewrfh ce88146L4KjyYsRqIFP+1Q7gVDWIS5vTdoJVfp7XdMnHpjXoJ/sXTOYv+kL5qR0431yE BZpf+3baWjeknqFwacMB3w2AaKAgjkZ4wBA/Wd6eXONN9Rt+oFV8Cgmu/8rrQiBa/N4g dNyg== ARC-Authentication-Results: i=1; mx.google.com; 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 p4si7845882ilc.63.2021.05.25.11.50.12; Tue, 25 May 2021 11:50:25 -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; 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 S232473AbhEYScp (ORCPT + 99 others); Tue, 25 May 2021 14:32:45 -0400 Received: from www62.your-server.de ([213.133.104.62]:50460 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232411AbhEYScn (ORCPT ); Tue, 25 May 2021 14:32:43 -0400 Received: from sslproxy01.your-server.de ([78.46.139.224]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1llbpd-000GLy-Gy; Tue, 25 May 2021 20:31:09 +0200 Received: from [85.7.101.30] (helo=linux-2.home) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llbpd-000Gni-B9; Tue, 25 May 2021 20:31:09 +0200 Subject: Re: linux-next: Tree for May 18 (kernel/bpf/bpf_lsm.o) From: Daniel Borkmann To: Randy Dunlap , 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> Message-ID: Date: Tue, 25 May 2021 20:31:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <166d8da3-1f1f-c245-cc46-c40e12fb71ab@iogearbox.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.2/26181/Tue May 25 13:17:38 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 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: