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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 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 D79DCC2D0BF for ; Tue, 10 Dec 2019 16:30:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B60F9207FF for ; Tue, 10 Dec 2019 16:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbfLJQaV (ORCPT ); Tue, 10 Dec 2019 11:30:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:50322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727177AbfLJQaU (ORCPT ); Tue, 10 Dec 2019 11:30:20 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 6AD332073B; Tue, 10 Dec 2019 16:30:19 +0000 (UTC) Date: Tue, 10 Dec 2019 11:30:17 -0500 From: Steven Rostedt To: Alexei Starovoitov Cc: Alexei Starovoitov , "David S. Miller" , Daniel Borkmann , X86 ML , Network Development , bpf , Kernel Team Subject: Re: [PATCH bpf 1/3] ftrace: Fix function_graph tracer interaction with BPF trampoline Message-ID: <20191210113017.2fc14de7@gandalf.local.home> In-Reply-To: References: <20191209000114.1876138-1-ast@kernel.org> <20191209000114.1876138-2-ast@kernel.org> 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 Tue, 10 Dec 2019 08:19:42 -0800 Alexei Starovoitov wrote: > On Sun, Dec 8, 2019 at 4:03 PM Alexei Starovoitov wrote: > > > > Depending on type of BPF programs served by BPF trampoline it can call original > > function. In such case the trampoline will skip one stack frame while > > returning. That will confuse function_graph tracer and will cause crashes with > > bad RIP. Teach graph tracer to skip functions that have BPF trampoline attached. > > > > Signed-off-by: Alexei Starovoitov > > Steven, please take a look. I'll try to get to it today or tomorrow. I have some other work to get done that my job requires I do ;-) -- Steve