Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3221340pxb; Mon, 25 Jan 2021 09:57:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPMT0UoIxOt34ZOsbdwje92Qo5kz8o8w7f9x5Zg2YoPpcOCVZ9ocAggW21vkckVIhVazZQ X-Received: by 2002:a05:6402:151:: with SMTP id s17mr1393703edu.107.1611597453683; Mon, 25 Jan 2021 09:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611597453; cv=none; d=google.com; s=arc-20160816; b=hCyVeZVOyOGB1flD51PkdN5ehoxvrSDA47W3NZ1acDt1ewxU5uae3SX/nBLhDa+Pct uM2gHL/dpR+KVRpGp9ZOnfFH10V//xAm+G8ulSQsjxfk/sjyELxedVonNKu6Hi4U+J9b MvKdcImJpOxLV14lgfzrBrTJFx02STtVgh0cnuWoiaZGhx3wFx6j7yZUp0CXxxKbdLqJ p836yLZc+P0BJIARjsIy58Ilt0xYxufjOpSK5M1A2AJAEQBh6JUrDTLubrPMZ6qVbdWT OPj1hWVChcg9WjUAvVDBlpyqNpc2692eNlpho1wFE3yuLyY5ZWiZq2DrEc5oSbnCVms5 oKEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ob1xTyAI24mHFVCr1dvkttwjnfLIwDqMJDg3OM+FTmY=; b=GwJclmzceSXjyBt/kVSID3ZGj2XNJcn1VvANZKbN0JXJ9JaFzOhIY6QlFYegg5sk+S tSXKtdndEPC8Y4g0IX3JhOkewbqyj3xsrqcl1d/G+VjOquMM1ueb3k+2yWeIYlZAjwwJ sc+waZSiITQNP3AN664lODhxq72hJ9UCortDvM2N2GIItpAaptrAmytdfi/L1S2cipyY FRdQiNcZDdxxG23DM1XOn1Kg/DGTuCSbtjFKV92YF8DRv+VbCFe0Hmoa3mwz7ysnwsCd cGCpzknYardwdrXFwR3aksjFKxzpjzxSrXjch4eiq06J3M6RC8FAri4TmG9eD4cR2R96 DMHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KIl7Cq9B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si7412846edr.294.2021.01.25.09.57.08; Mon, 25 Jan 2021 09:57:33 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=KIl7Cq9B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731226AbhAYRzN (ORCPT + 99 others); Mon, 25 Jan 2021 12:55:13 -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-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