Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1133440rwb; Thu, 11 Aug 2022 16:56:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4gScQdMgESOH7puXF6uZtQqOx0N5PoWyL6ypBxLoVW3fSaZTevQIzwCN9x2soHM8yOthVc X-Received: by 2002:a05:6a00:17a8:b0:52e:6e3e:9ff with SMTP id s40-20020a056a0017a800b0052e6e3e09ffmr1425305pfg.42.1660262160036; Thu, 11 Aug 2022 16:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660262160; cv=none; d=google.com; s=arc-20160816; b=m9rLXBQLqhm5vJElG5L8QU1WbnSlvkOtRpqby+J+6417Xdx/gyZ4JcY4Gf+lN5vUWy abTUFZUF7j2uWPKG2uMNkz42e9t9YZHag2sswgRjYeVRRHOuC6UkUMOlEYpKVbMyzI9p cS3piIG+HnPIV/kW2pqPJRYn2YT9IwYvhqr9RRv2e5N3Z9z6jKjsBVjhmvWMG+olhES8 E4glfLvrNe6dHT2OqGXS6X2syV/W5gA2zTqS7q5PBy1CdBsyX/9+hlYJhxPJF487jSm2 nRxttpM0Qql5NxzxhMSnxUqiGuA9od4YsDjwxzyirAY5mNxJK3rApTa5YnKziYJpI2Tl fl0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BCNvthC39gCRraQNwfNIpWLe+NH2lD7LVfKZ5xnj2DQ=; b=hPe8aqAaVDXLHnafUQXOa1IS93jjHFgEjT1xml2WtZsXu2eOw86rC/0JbGlcuM0TNd 4HPRTzMyOMsIL3DmN6hfmlFi7EEwDB3IdcwY4y9hZlZIyNKvruwnDDH7HTfuybRf+6hQ Lbc4Je3KDqElkv2NorTijJdtkxbALAwqqvdXPi24JqbOKITm8z73HQtwa2WfSGfDNNFK 9Dhdcjw86x0gD3jmp997EgVWSDPyqJmWLft+FbxKgZsJfB0pBqghJMmHWKLpZ5LaoRt8 fWownQXlS6eTz1zb54GRa+on+jmdWgwa3Tbq9/4Bu8d8jCuU1BRbRFMm6EPSU035APa9 BaPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=NhFylEAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a170903018b00b0016c7ab0194fsi716099plg.6.2022.08.11.16.55.45; Thu, 11 Aug 2022 16:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=NhFylEAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236246AbiHKXyW (ORCPT + 99 others); Thu, 11 Aug 2022 19:54:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235701AbiHKXyU (ORCPT ); Thu, 11 Aug 2022 19:54:20 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86AC4A1D47 for ; Thu, 11 Aug 2022 16:54:18 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 959F1240027 for ; Fri, 12 Aug 2022 01:54:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1660262056; bh=JkMK2ZzPPyQl8oBskpaCW68aHa6Y2QAApaUOJCrkky0=; h=Date:From:To:Cc:Subject:From; b=NhFylEAcYSP6ooajuZO4T2YGW5fL5ATOhgbkDJooGFyAbZTbVwTZnX5pApklMyoSF Aap+nYNKvCfvx9nZRlcKWt2CvEm/dN0ajORKOl6OqcT8Yxh6ZuWlD5+W+Gc3Fm6f+B LMKIFBWuqLyW43a3noOsHPkh5P8CzorGxYoYPkEUGtvLchkv70K8nzJuhZKeodw6jG LQ4mNGo/BVKiMFMvD8jxUH5xJCpw6RDbYMH98HcgdlQaSrer9xPQGHJ3R3xrGS75ec Yw0kyhs1pYpcO6zPr4fU8xKEbf9ueKqkuD2FYp76ICzCIDq4S1XRVN6N6Rfs0wZY5C DI/hfLUca7cYQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4M3kDF2Dxrz6tm9; Fri, 12 Aug 2022 01:54:04 +0200 (CEST) Date: Thu, 11 Aug 2022 23:52:22 +0000 From: Daniel =?utf-8?Q?M=C3=BCller?= To: Roberto Sassu Cc: Alexei Starovoitov , "ast@kernel.org" , "daniel@iogearbox.net" , "andrii@kernel.org" , "martin.lau@linux.dev" , "song@kernel.org" , "yhs@fb.com" , "john.fastabend@gmail.com" , "kpsingh@kernel.org" , "sdf@google.com" , "haoluo@google.com" , "jolsa@kernel.org" , "corbet@lwn.net" , "dhowells@redhat.com" , "jarkko@kernel.org" , "rostedt@goodmis.org" , "mingo@redhat.com" , "paul@paul-moore.com" , "jmorris@namei.org" , "serge@hallyn.com" , "shuah@kernel.org" , "bpf@vger.kernel.org" , "linux-doc@vger.kernel.org" , "keyrings@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v10 5/9] bpf: Add bpf_lookup_*_key() and bpf_key_put() kfuncs Message-ID: <20220811235222.inghj73tf6vudoyw@vaio> References: <20220810165932.2143413-1-roberto.sassu@huawei.com> <20220810165932.2143413-6-roberto.sassu@huawei.com> <20220810213351.wm5utltm67q4i6lu@MacBook-Pro-3.local.dhcp.thefacebook.com> <2415f4931a364541b2e6d14a8185ffbb@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 11, 2022 at 12:02:57PM +0000, Roberto Sassu wrote: > > From: Roberto Sassu [mailto:roberto.sassu@huawei.com] > > Sent: Thursday, August 11, 2022 9:47 AM > > > From: Alexei Starovoitov [mailto:alexei.starovoitov@gmail.com] > > > Sent: Wednesday, August 10, 2022 11:34 PM > > > On Wed, Aug 10, 2022 at 06:59:28PM +0200, Roberto Sassu wrote: > > > > + > > > > +static int __init bpf_key_sig_kfuncs_init(void) > > > > +{ > > > > + int ret; > > > > + > > > > + ret = register_btf_kfunc_id_set(BPF_PROG_TYPE_TRACING, > > > > + &bpf_key_sig_kfunc_set); > > > > + if (!ret) > > > > + return 0; > > > > + > > > > + return register_btf_kfunc_id_set(BPF_PROG_TYPE_LSM, > > > > + &bpf_key_sig_kfunc_set); > > > > > > Isn't this a watery water ? > > > Don't you have a patch 1 ? > > > What am I missing ? > > > > Uhm, yes. I had doubts too. That was what also KP did. > > > > It makes sense to register once, since we mapped LSM to > > TRACING. > > > > Will resend only this patch. And I will figure out why CI failed. > > Adding in CC Daniel M?ller, which worked on this. > > I think the issue is that some kernel options are set to =m. > This causes the CI to miss all kernel modules, since they are > not copied to the virtual machine that executes the tests. > > I'm testing this patch: > > https://github.com/robertosassu/libbpf-ci/commit/b665e001b58c4ddb792a2a68098ea5dc6936b15c I commented on the pull request. Would it make sense to adjust the kernel configuration in this repository instead? I am worried that otherwise everybody may need a similar work around, depending on how selftests are ultimately run. Thanks, Daniel