From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78554C433E0 for ; Mon, 25 Jan 2021 17:55:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A59622B3B for ; Mon, 25 Jan 2021 17:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731318AbhAYRzS (ORCPT ); Mon, 25 Jan 2021 12:55:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:40090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731009AbhAYRxv (ORCPT ); Mon, 25 Jan 2021 12:53:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3F4E822B3B for ; Mon, 25 Jan 2021 17:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611596727; bh=myD5RTOQTdAr23NbC1OH5P/i8LKkC7Cr6EEuikK6Z0o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KIl7Cq9B7m2TcFI2dhRj2UKHMP9GIPDZcWMPbVjOKsTKZiS3wO+mTvbgX8nosj9Wd c/Ta11U5ANIu5l52dzaNgvzHFz4NabQoJ9G2onDiNAmgQNzkJQyR7BOTr0wNinhJl7 O5i7Gif6WGBG/I8CSkSAOlpHb7Uyz7aD2FXvuTUbXS7yQVCF3Euuwmug9T7DiHbpGo XX+TcSz3OS72odQlLrPsgfkGOtSNG1gt1tTY3BXUEQckARl74+2fDknTuxwB/qiAkd SlnY10PyguCJu3Us9XSOa0sWsY9TACTA3PCLRGGiPnJ47SfGZL66CFdc6GNvp5d9XX 4ve26sdRbYsSw== Received: by mail-lf1-f42.google.com with SMTP id m22so19038469lfg.5 for ; Mon, 25 Jan 2021 09:45:27 -0800 (PST) X-Gm-Message-State: AOAM533f98YUc/Wi72vtzsuMpwbmxLfxIXpYUCclizoTVPFGyCDQiaF/ mOYG6fAOC3ogzZcvD8p1OK9zP5w1mwJQ/H4R9xpqLw== X-Google-Smtp-Source: ABdhPJz15eO+UVnMY3v5jjV58H+Z0oDwDj2CMx13QiBnNiaU4NpqSEPz6pW7IqWl7i3RZt0vzOF+XDpYU8VftAcBPwg= X-Received: by 2002:a19:3fd3:: with SMTP id m202mr768171lfa.550.1611596725562; Mon, 25 Jan 2021 09:45:25 -0800 (PST) MIME-Version: 1.0 References: <20210125063936.89365-1-mikko.ylinen@linux.intel.com> In-Reply-To: <20210125063936.89365-1-mikko.ylinen@linux.intel.com> From: KP Singh Date: Mon, 25 Jan 2021 18:45:14 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] bpf: Drop disabled LSM hooks from the sleepable set To: Mikko Ylinen Cc: bpf , Daniel Borkmann , KP Singh , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 7:39 AM Mikko Ylinen wrote: > > Some networking and keys LSM hooks are conditionally enabled > and when building the new sleepable BPF LSM hooks with those > LSM hooks disabled, the following build error occurs: > > BTFIDS vmlinux > FAILED unresolved symbol bpf_lsm_socket_socketpair > > To fix the error, conditionally add the relevant networking/keys > LSM hooks to the sleepable set. > > Fixes: 423f16108c9d8 ("bpf: Augment the set of sleepable LSM hooks") > Signed-off-by: Mikko Ylinen Acked-by: KP Singh