Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2833576ybb; Mon, 30 Mar 2020 14:01:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuYmka9BucK3QCMNPbCJg8FkY0HV+v1gYQKc3LVk7/0itV0LWxu1ckZ91qSH1HZLHORydLV X-Received: by 2002:a9d:6c4c:: with SMTP id g12mr9956079otq.351.1585602080289; Mon, 30 Mar 2020 14:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585602080; cv=none; d=google.com; s=arc-20160816; b=D6kkR2NM7VEPw+pMicFRGan9pP2W/kHiLaYcJjtqtGYJorucG6s7FsREBSY2GLHRO+ OL5b3VxgaS26A7TkHxWpLu5l6Wv+PVbFbX92fYzHGenfucKFJOTbATj6Rrd9zSmvPsdT iPGbNPt0RPBqSt2LCpRjfDIsNcQB6MWXOCU/n2G4svcEd9FZBB0iUFGVo7Itcs2M1S/o g33zugkUKVFFeRCCeHNgyN+uERokL/r+1kNMnZBRUxSRmpBSaR/B/HbPouU3hT5Y1cFz QeVQxAMY1tWx5MKaUv6oHvLTMQQ2uCLEQyi0/yN8Rys3mEEhe8HPDYLhc+g1W6P4H9jn TzLQ== 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; bh=ZjRRTgZT4/5KVsPIhUOAP4IB6+macisX516sdQ8tCRk=; b=k3RtN1pKV1Ot2+dNXlTErk3TaMnEk9n+l6heB4F49hkjO1yVN+iFOZcwYrntdg/Lbp T7LYYNHwQAK8EckcQsot4X9aH0blaJTueqX1zEwEpI68e/4cKiGD8nnu0+RqQ9+m3W2G OPxI1oZTxKBYiyHZI3vGsfcDEqZoURzQaANiXW27uGZJVwqNP0iWO1oM4MCHAXmZZSqZ PVMN5MW6flrt+FPeA4qICGOi1dtLLExB4PsQYSz+tpZriHpP6NahUF3q1auIMyWts0w3 3cItrtH2R1fwAHpU2KbamKuD9aWRryqi5Twde/3ViwZQ5cARik3cIXws8+f5QzcTRAbu oB3g== ARC-Authentication-Results: i=1; mx.google.com; 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 t8si5620094ood.64.2020.03.30.14.01.05; Mon, 30 Mar 2020 14:01:20 -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; 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 S1728540AbgC3VAR (ORCPT + 99 others); Mon, 30 Mar 2020 17:00:17 -0400 Received: from www62.your-server.de ([213.133.104.62]:41432 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728317AbgC3VAQ (ORCPT ); Mon, 30 Mar 2020 17:00:16 -0400 Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jJ1W2-00008c-T2; Mon, 30 Mar 2020 23:00:14 +0200 Received: from [178.195.186.98] (helo=pc-9.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJ1W2-000MLg-LA; Mon, 30 Mar 2020 23:00:14 +0200 Subject: Re: [PATCH bpf-next] bpf: lsm: Make BPF_LSM depend on BPF_EVENTS To: KP Singh , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: Randy Dunlap , Alexei Starovoitov References: <20200330204059.13024-1-kpsingh@chromium.org> From: Daniel Borkmann Message-ID: Date: Mon, 30 Mar 2020 23:00:14 +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: <20200330204059.13024-1-kpsingh@chromium.org> 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.102.2/25767/Mon Mar 30 15:08:30 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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!