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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AB46C32771 for ; Thu, 22 Sep 2022 01:20:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbiIVBUU (ORCPT ); Wed, 21 Sep 2022 21:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiIVBUQ (ORCPT ); Wed, 21 Sep 2022 21:20:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A7691D14 for ; Wed, 21 Sep 2022 18:20:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A350960E9B for ; Thu, 22 Sep 2022 01:20:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id F0BAFC433D7; Thu, 22 Sep 2022 01:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663809615; bh=vutIcPb6IP0uMx0vYhr3Bamw+nH0I6g/akUUpFBRe/8=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=XaFMco6J3C1ET1xRrWlybL+adW0sCTbtUu8bB+vgL22BTgJNwk/B2odBzcF7/WxRj WKFt4JJb6x51r+gtHLjQmweiMTrH+gfj132YdZ2YVoA/hJFyeLCEKZBJ0sB0xQJxiw zPbDcOi1q+qw1lGgRnTOj2jJlPmq15qVDwN+hvEFCIj+XDAwK2S+Lc+qEiW7yM6w1F CwCF3Otjsgu5iIQZpojIR1R4uLKH2NublJ7KUhY4niXo6i/C/LXjPAtcEKwwDj0WYS 3PT8cEnjIcMcDI4TGxsaLktwxb6HnY1TN60fh74zmg4pwD0ZxqX7dBEACcPl4deiPl qTVEGDTYEXISA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id CBDA9E4D03D; Thu, 22 Sep 2022 01:20:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCHv2 bpf-next] bpf: Prevent bpf program recursion for raw tracepoint probes From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166380961483.28833.1573067698902385305.git-patchwork-notify@kernel.org> Date: Thu, 22 Sep 2022 01:20:14 +0000 References: <20220916071914.7156-1-jolsa@kernel.org> In-Reply-To: <20220916071914.7156-1-jolsa@kernel.org> To: Jiri Olsa Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, sdf@google.com, syzbot+2251879aa068ad9c960d@syzkaller.appspotmail.com, bpf@vger.kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, haoluo@google.com Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Fri, 16 Sep 2022 09:19:14 +0200 you wrote: > We got report from sysbot [1] about warnings that were caused by > bpf program attached to contention_begin raw tracepoint triggering > the same tracepoint by using bpf_trace_printk helper that takes > trace_printk_lock lock. > > Call Trace: > > ? trace_event_raw_event_bpf_trace_printk+0x5f/0x90 > bpf_trace_printk+0x2b/0xe0 > bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 > bpf_trace_run2+0x26/0x90 > native_queued_spin_lock_slowpath+0x1c6/0x2b0 > _raw_spin_lock_irqsave+0x44/0x50 > bpf_trace_printk+0x3f/0xe0 > bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 > bpf_trace_run2+0x26/0x90 > native_queued_spin_lock_slowpath+0x1c6/0x2b0 > _raw_spin_lock_irqsave+0x44/0x50 > bpf_trace_printk+0x3f/0xe0 > bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 > bpf_trace_run2+0x26/0x90 > native_queued_spin_lock_slowpath+0x1c6/0x2b0 > _raw_spin_lock_irqsave+0x44/0x50 > bpf_trace_printk+0x3f/0xe0 > bpf_prog_a9aec6167c091eef_prog+0x1f/0x24 > bpf_trace_run2+0x26/0x90 > native_queued_spin_lock_slowpath+0x1c6/0x2b0 > _raw_spin_lock_irqsave+0x44/0x50 > __unfreeze_partials+0x5b/0x160 > ... > > [...] Here is the summary with links: - [PATCHv2,bpf-next] bpf: Prevent bpf program recursion for raw tracepoint probes https://git.kernel.org/bpf/bpf-next/c/05b24ff9b2cf You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html