Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5173026rwi; Mon, 17 Oct 2022 16:56:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eJNnH15DFSsBxix+Y4di79RcPf51gS117XDXsAbkrjSa5ZoucN2QZkBnVUMq92EiIMIlt X-Received: by 2002:a17:907:7621:b0:741:6656:bd14 with SMTP id jy1-20020a170907762100b007416656bd14mr178858ejc.298.1666050975003; Mon, 17 Oct 2022 16:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666050974; cv=none; d=google.com; s=arc-20160816; b=cujCPT1HJDXWd8FCqqHP2yphxaFld0YYuGPsPxRk/bif9UuI+x/T+rBNA2RZknAkcC dgk+xSqqXRk6hrqMLI7oNJs+F1R5MYfLUVoJZ7yYdnjlpPs6bRXhBIdeQ0LAu/ErNAHo Y4zM2VhBRKBBBd+pt/BSlzuu4nqWCPOcV0LJ6MXZnI/ViESFKMokpsHUoPOFa4NKNc54 VWTeb4m93Y4sPjk9aG5hQvac20rAfTSvYn1/sxlt2lBGVixX1LX7hNiOMSsYxh5iQty1 h0073XW/M2CmtdAfg8UBJEFaso2vgwT/OpujtRsE7TTNN98HadVTHWrbpTXB9H5AGDrD YhPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8EBF6rKPrRzGdD+ezskelFh+/dF03482uGhHTZdJXFg=; b=NkqPS+IouBr/fOb0/nZrnFEbQTvINoJOOCmzQK/b0eAxFNZSilEJxWv5Vkkjd6BtWi u/fZgUi2rCSu2Bdo4BMNLrRyVVNtj/e4mq7UP0f9hKEAvHw9b1pRmzgS/b4w/LrOndys Bv9hPIB80xH8Sor7+/RsPAEKi8tF9ZPxVL5qp74Jhxv/Xq2ViBsr8pH++JdIwxAKAhkB gH5MQhDh02onZlyu6D3CH3q1t84vos/M8bSJHeWDUfljFxbs1HGiQkdmfzPn6V5Q/EIU dikxhM3M/yEE4TmblzvP2DCzvlkW8xDMH0EI1bn5HcfzJFCN9w+caZNNpt7/OcZz/mKT TjZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KCuPC8cn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go13-20020a1709070d8d00b0078e31b05896si7376282ejc.766.2022.10.17.16.55.49; Mon, 17 Oct 2022 16:56:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KCuPC8cn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230371AbiJQXgB (ORCPT + 99 others); Mon, 17 Oct 2022 19:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbiJQXfw (ORCPT ); Mon, 17 Oct 2022 19:35:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BC5B7E825; Mon, 17 Oct 2022 16:35:50 -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 ams.source.kernel.org (Postfix) with ESMTPS id 06357B81B81; Mon, 17 Oct 2022 23:35:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A542DC433D6; Mon, 17 Oct 2022 23:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666049747; bh=lip3Ur+ocrRvIW0I+VBZVLQI85o9HCxQxXC3Oent80Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KCuPC8cnBqvtumPy6OqCj1yPCfD6fxnnwy0hYidc/HAPVAmJjoEhDf6RuGLK4S4Kf 7W0ccFgTN7YXil4TbTeGtII7YAFIZw7ZQFXw4jwuXbyhkHzHZYRCoXhznfTj/uTM2T qF1yXG4y3k59p+EjoPSWJ1SGAnPDqxFgUuMoE2uxo52XFc1PfoT4bTXjZfsYpxQsrM 5zLqK7zGXoaWO2usbm0+vrVY/UFEiIye0y9aE8XcRKgD+ho4lKYKcXwTokcnhQnVuq AF0vpn8XrHzjFiEph7iriI8eJHajTkCTLCdBfEV/HySRlhDhlCemGEYv6NQEMOM4YR 17dZUSCC136xA== From: SeongJae Park To: Namhyung Kim Cc: SeongJae Park , Sumanth Korikkar , olsajiri@gmail.com, bpf@vger.kernel.org, gor@linux.ibm.com, hca@linux.ibm.com, iii@linux.ibm.com, linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, peterz@infradead.org, svens@linux.ibm.com, tip-bot2@linutronix.de, tmricht@linux.ibm.com, x86@kernel.org Subject: Re: [PATCH] bpf: fix sample_flags for bpf_perf_event_output Date: Mon, 17 Oct 2022 23:35:44 +0000 Message-Id: <20221017233544.1408-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Oct 2022 15:52:15 -0700 Namhyung Kim wrote: > Hi SeongJae, > > On Mon, Oct 17, 2022 at 12:27 PM SeongJae Park wrote: > > > > Hello, > > > > > > The commit that this patch is fixing[1] also causes yet another segfault for > > 'perf-script' of tracepoint records. For example: > > > > $ sudo timeout 3 perf record -e exceptions:page_fault_user > > [ perf record: Woken up 1 times to write data ] > > [ perf record: Captured and wrote 0.228 MB perf.data (74 samples) ] > > $ sudo perf script > > Segmentation fault > > > > Reverting this patch and the original bug commit[1] fixes the issue. I haven't > > deep dive yet because I'm not familiar with this area. Anybody has any idea > > about this? > > > > [1] 838d9bb62d13 ("perf: Use sample_flags for raw_data") > > Sorry for the trouble. No problem. > I think you also need to apply the below: > > https://lore.kernel.org/r/20221012143857.48198-1-james.clark@arm.com Thank you for this nice answer. I confirmed that this fixes my issue. Thanks, SJ [...]