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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 16785C28CC3 for ; Fri, 7 Jun 2019 07:55:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE63221019 for ; Fri, 7 Jun 2019 07:55:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727415AbfFGHzh (ORCPT ); Fri, 7 Jun 2019 03:55:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:58798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbfFGHzg (ORCPT ); Fri, 7 Jun 2019 03:55:36 -0400 Received: from oasis.local.home (unknown [95.87.249.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9FA63208C0; Fri, 7 Jun 2019 07:55:33 +0000 (UTC) Date: Fri, 7 Jun 2019 03:55:28 -0400 From: Steven Rostedt To: Andrii Nakryiko Cc: Matt Mullins , hall@fb.com, Alexei Starovoitov , Daniel Borkmann , bpf , Networking , open list , Ingo Molnar , Martin KaFai Lau , Song Liu , Yonghong Song Subject: Re: [PATCH bpf] bpf: fix nested bpf tracepoints with per-cpu data Message-ID: <20190607035528.43c0423d@oasis.local.home> In-Reply-To: References: <20190606185427.7558-1-mmullins@fb.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 6 Jun 2019 19:59:18 -0700 Andrii Nakryiko wrote: > On Thu, Jun 6, 2019 at 1:17 PM Matt Mullins wrote: > > > > BPF_PROG_TYPE_RAW_TRACEPOINTs can be executed nested on the same CPU, as > > they do not increment bpf_prog_active while executing. > > > > This enables three levels of nesting, to support > > - a kprobe or raw tp or perf event, > > - another one of the above that irq context happens to call, and > > - another one in nmi context > > Can NMIs be nested? No, otherwise several things in the kernel will break. -- Steve