Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2834248ybb; Mon, 30 Mar 2020 14:02:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsIchut3OIakdOMZz7+04/fK+RaHRBTv3y883J1641E9dGq0ybuijoMS59OFsShIn4kgHph X-Received: by 2002:aca:5191:: with SMTP id f139mr13368oib.140.1585602126499; Mon, 30 Mar 2020 14:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585602126; cv=none; d=google.com; s=arc-20160816; b=m59Ff3WVZWs3CfWeP9Hvzpg3pTGoYVHpWrrYz7KhT/GyHNsgtuw2mF6zEKHL1mkyv0 wVrRPM+sg5s3Vf5c4gSVHeBKKPIrwHj40Qul8JXM6PYBXJpKGcXx/DW2ABOc66Z5wzM7 uQDwwJo6ouJkGFqN3Ng1J+hJb204v8GeeBI3mlYp3o0qWfzwQy1fXSXXhww+ZndDPl7i JLNgL/vHtTLNA5auy8sncvY0HJh/zJ9EScfnpQ9VZMn8VtPT1kWeYMuLGTKJjIoHbsRz 7JXlwA6WD+RvpNNhruHV4YVgbumXWkOvfAWhNf2/RNv1EL7/URqMNpqdfXrrmX6jn+qT Dq6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=QJRXaFSmdizU3gcgzmC6VNf0B5yWIVwMwU5JSX/wwi0=; b=czUG1cWspoaWiJv684rDwzd6YFcKvKi5wMxW1iCU1KjwOnb8Cb7gwJ/cn3HW5mYnPP UQo7cMUBpXL9bsRxMLhU/mc74NMQW3yUjLGJOF0GiAP3XTRmuCQwLrMV/uMXFzKNqwOK tllIPQfYgLgZObP8I/dGWC7uUa8hA+ajxw2C75DhW3bZaM+YgIg53Poc4OBFAeX6AZs9 yhCKEKwGDC0VJEdvoQjOd4DrTjqMIpRXTEOzhZjJOWBwnQCwnHmq+IraeQ5xFF3NcO+l ZzJghbwZNnMn5/SBBzMRrDpI7GeNOMevUx5Ct2D2iKJnfPF7NDeMNiNfGIVALsimdYPT 3cMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QWDTyJmD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u137si5905240oie.160.2020.03.30.14.01.52; Mon, 30 Mar 2020 14:02:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QWDTyJmD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728654AbgC3VBZ (ORCPT + 99 others); Mon, 30 Mar 2020 17:01:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38066 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728165AbgC3VBY (ORCPT ); Mon, 30 Mar 2020 17:01:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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=QJRXaFSmdizU3gcgzmC6VNf0B5yWIVwMwU5JSX/wwi0=; b=QWDTyJmDxiBwGQLjBtaz2Z8R65 ZLDoWOhS//KutrdTX90J+sTnZ0EuEhxHGMsLMApanXxjtpQTl9qwuvFagvRxFZhSaeEQfs7iVs+15 qqnI0ttiMgc7P5AnthV9o6Ji6zWSCCOVujGHmzQIjezcGSXFuoP1+/e1srr2mcL9LQ0LIsRiWgFJU wlfMZzEnbPkvse+1m3xqJAownEfA6jmP8tbtFTrNpxd8HKqG6Pw1cehY4HX+NQmhD2KLwFFGL+WyT 7ToylqXuXlTetTkgQRJBqjih3LwSbu4nNELGdZqFkH6iwAObGyDn53+GAF6ivs8m9kNQR/DDjTY+a 9Zyg5gTg==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jJ1XA-0006mx-Kd; Mon, 30 Mar 2020 21:01:24 +0000 Subject: Re: [PATCH bpf-next] bpf: lsm: Make BPF_LSM depend on BPF_EVENTS To: Daniel Borkmann , KP Singh , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: Alexei Starovoitov References: <20200330204059.13024-1-kpsingh@chromium.org> From: Randy Dunlap Message-ID: <7157f7eb-f210-24d0-abfb-ae205e97e77e@infradead.org> Date: Mon, 30 Mar 2020 14:01:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/30/20 2:00 PM, Daniel Borkmann wrote: > On 3/30/20 10:40 PM, KP Singh wrote: >> From: KP Singh >> >> LSM and tracing programs share their helpers with bpf_tracing_func_proto >> which is only defined (in bpf_trace.c) when BPF_EVENTS is enabled. >> >> Instead of adding __weak symbol, make BPF_LSM depend on >> BPF_EVENTS so that both tracing and LSM programs can actually share >> helpers. >> >> Signed-off-by: KP Singh >> Reported-by: Randy Dunlap >> Fixes: fc611f47f218 ("bpf: Introduce BPF_PROG_TYPE_LSM") > > Applied, thanks! Acked-by: Randy Dunlap # build-tested thanks. -- ~Randy