Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp9032670ybi; Fri, 7 Jun 2019 02:22:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyalSC/373rIopR9Yh0q7vLf1ZEHx/ExMU9leq28z9ifQ7Hdg7jn+rbUSLRk6WmKzydJQcZ X-Received: by 2002:a17:90a:9f8e:: with SMTP id o14mr4283385pjp.82.1559899342940; Fri, 07 Jun 2019 02:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559899342; cv=none; d=google.com; s=arc-20160816; b=f2OJMpxKRGAwVfJGXS8pBAGIrasylxX85QgfJGeeUGtLYv6Y+hcR2Se2qVQxZqsJOb 5B4zrazxRMHflU2+qIWRIby42vlX8LHxocOUzPJy0PF+m/TOQ9UVw9pxAtabvMY3w2v9 irZE0iZV/AsERfw6kXPzLDDx9xTIPVaWGMd3COvxUr4306M6agm+y9/JHf2EN13NUE+3 qVcDGcv2Pq+mAOns68uBgL3h7gRyn2cgu/meQYiIrHumCK+csmX7axnLtvJ/6CyU6V13 MabXvGLd3zLGZwU/+OoZCp6bHN+mDshoiz660B7UBoQh/Hzo08wsnsdmMkPL9lNEtHGz rFjw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3R7HvjpfolCwY3nVLwvpc9wWX453M5Y/U3CkADxkxeI=; b=AWU0h1vRh/V4v49v0SGi6OqqmW5vPv3oIZTlYDlCVcobRj5F8hp1DI9HKzDiPEixIY wNVHsKJgeSu/nh8kv2Lz3pQMIKXvvN0+HgIoeVotaebkUSoFdhgJUfG+zeM8jh31b/A/ O7Zz/jkXBxEUM7zT8joL6i/UPSBEAfr4qdcnIGhYsDDj7++Vj7v2IcRozbsw0lEBB8Xi WFmidEcNyqkJYgfdKuvdsxdWIkLS7w0X3yHfzIMYSJuF5jPdqZGT0Dmp2IW6IV+9NBG2 vqOlN7ifZITOz/HuBXH7qfv9w82Zl3ZWZjz+DOJXAtiQEn12qo7tV7UMfnLbUORnRvQY m0sg== 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 h36si1347108plb.199.2019.06.07.02.22.04; Fri, 07 Jun 2019 02:22:22 -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 S1727480AbfFGHzh (ORCPT + 99 others); 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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