Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4888198rwi; Sat, 22 Oct 2022 18:57:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aYeVcpE4JTPTMQshJ8YZmW1+4FVhZCO5Wy7hru6Lvllr9iTBdtTTyIRQsqk+/mUQys0Cl X-Received: by 2002:a17:907:75c4:b0:78e:176e:f62e with SMTP id jl4-20020a17090775c400b0078e176ef62emr21976031ejc.736.1666490229215; Sat, 22 Oct 2022 18:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666490229; cv=none; d=google.com; s=arc-20160816; b=xyQy79RF4ySygzxAkhfoFQExC7EEbNLm4igSln+ORFtSjIVxz88aNI9jA7kKWftB7v tO8Vny8UcD/PgOXJHZLYb0Nw9JhOyZcEjKuL2hj2XhXxVhGGS0XfhnUK6/6fS3wM4s6W 1ZO26W31JZztuLvKfIVwSfNJBysmNzwSlJcWUBDb7diMs4UG4vlIA/qpzuMGgYBuSFFF jwt4J1CrL4zmP1wrkHWBoyWyroR/Sscq6AqDsXOaecoyvbVegDnzS4s4nIGrpNLM6vY2 LqiK0tocT903abKdZtLiPQz23ksQJvfnOx0c392Jcn9gXhtmUS0Oz8mGRBI29nsgVdyZ wRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LTUZ9ZfhQbY7Sl8R6nldBu8JmbFhh7EdT+zCO2E+5ps=; b=nb3LoKtg/tX4Q/JdK/YBFO3aHglzJovq+LJbF5us2031TVjZ+E4Ihqjg+mWfcMsBUK 22hfOZiTGbYkPwwQjxwcjhTNEt29ERQfulkH1zO7bAfLXQCtEykGsZAnhG2bUNcVhUOE AI4+Bc8J5c/u1xik5iWrvyGN62SLDeW9tL+k5ejYUrhvwiw4RkOWOEYCVCFdYUvTrDUz 0pax7gRosur7DpXxUi9HJMtg17clmR5Rk9UjT2LMNDItkGLframYE/ba9sM31+j6h7Ql cHLc+ye4XIZ1VftwfFilECh3aMbGRbgjDTolfwu2YnOM8ewsXlo/YwM1p7w/+RNtm8d+ 9iUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bdSs8MvS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a056402521100b004523826ed6dsi25217019edd.554.2022.10.22.18.56.27; Sat, 22 Oct 2022 18:57:09 -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=@gmail.com header.s=20210112 header.b=bdSs8MvS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbiJWBQr (ORCPT + 99 others); Sat, 22 Oct 2022 21:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiJWBQo (ORCPT ); Sat, 22 Oct 2022 21:16:44 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D551DFAD; Sat, 22 Oct 2022 18:16:43 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id r14so19194910edc.7; Sat, 22 Oct 2022 18:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LTUZ9ZfhQbY7Sl8R6nldBu8JmbFhh7EdT+zCO2E+5ps=; b=bdSs8MvSxoUmwaOBI4QxUSfvezkQc71r4WZp6UV/ufhwfqzuKmfDjF18HEe9DZ4u4e 9+4wt8LSaJbtDHyIlLHGJxWO2j4r8HMf8O5fglTTdsWsHNYvLTv84z7WehCjbc4OTjlF DBZ8WSBc3AYVpEx3G0YfSylDOC3sMqPj46wzlA+dS0j30wxqpUbkTPsaszVsqr5yy1ph BwW+H7gKOMhxM+TLzKyYAr0TBmXEsKTAGVretmRHu18/f0ZAIlv5P1JFT8+H/8DHB6OV Aipm2fK0VofY7GtiwF1Ffb+NCKd1kvyrTyZDIn1sjqPt7StKuKdnYKFknuK8b88EP/sF QnkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LTUZ9ZfhQbY7Sl8R6nldBu8JmbFhh7EdT+zCO2E+5ps=; b=UoQjId5Br/xUzENQp3+YysambMHCLpGMtZWbrXMx7xDPnO9ShAIglAJry4gqovZJr+ T80ybJKuoIdbioFT5saPSrFnFAtmuXahfZA5Mz8kA34EGXyECOP4gm7MRScf8L71IOWb OY2N351Z7bOFtcJbM475JGe91+akzmdwNOPtF9aFCTK3Fwd+cFT94kRJox8bc63JzDnP Rir+HEQhiGsAJfJ6GNcM23AZSB56RcU3gK5cKGW2dJfpOdVXPsAWng3TVjLtVMH83+wZ yBlG94aOR8mN8GiL162ChpM9EaxQZcKhS8WcNl3Gpu8kZH4fbldMnDjX8VbQqax9w8ci YsBA== X-Gm-Message-State: ACrzQf3lhd56DonkgDs5NlHLg7s6GSGN6PcWnROHJ7xlvjb0RzAFohjr 8TiRPgy9C5WBEg9FHxUMvipwuZuYyRzfFi/wRgU= X-Received: by 2002:a05:6402:5406:b0:452:1560:f9d4 with SMTP id ev6-20020a056402540600b004521560f9d4mr24624897edb.333.1666487801784; Sat, 22 Oct 2022 18:16:41 -0700 (PDT) MIME-Version: 1.0 References: <20221007081327.1047552-1-sumanthk@linux.ibm.com> In-Reply-To: From: Alexei Starovoitov Date: Sat, 22 Oct 2022 18:16:30 -0700 Message-ID: Subject: bpf+perf is still broken. Was: [PATCH] bpf: fix sample_flags for bpf_perf_event_output To: Peter Zijlstra , Linus Torvalds Cc: Jiri Olsa , Sumanth Korikkar , bpf , Vasily Gorbik , Heiko Carstens , Ilya Leoshkevich , LKML , Namhyung Kim , Sven Schnelle , Thomas Richter , X86 ML , Daniel Borkmann , Andrii Nakryiko , Jakub Kicinski , "David S. Miller" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Another 2 days have passed and the fix is still not in the Linus's tree. Peter, whatever your excuse is for not sending tip:perf/urgent this is not acceptable. Linus, please apply this fix directly: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=perf/urgent&id=21da7472a040420f2dc624ffec70291a72c5d6a6 or suggest the course of action. It sucked to have such a breakage in rc1 and we don't want rc2 to stay broken. Thanks On Thu, Oct 20, 2022 at 6:36 PM Alexei Starovoitov wrote: > > Peter, > > Another 2 days have passed and bpf side is still broken > due to the change that went during the merge window without > corresponding fix from the bpf side. > Looks like the patch is sitting in tip:perf/urgent. > Please send it to Linus asap. > > We're not sending bpf fixes to avoid breaking bpf tree too. > We've worked around the issue in bpf CI for bpf-next tree only. > Developers still see failures when they run tests locally. > > On Tue, Oct 18, 2022 at 9:57 PM Alexei Starovoitov > wrote: > > > > On Fri, Oct 7, 2022 at 8:31 AM Peter Zijlstra wrote: > > > > > > On Fri, Oct 07, 2022 at 11:45:36AM +0200, Jiri Olsa wrote: > > > > On Fri, Oct 07, 2022 at 10:13:27AM +0200, Sumanth Korikkar wrote: > > > > > * Raw data is also filled by bpf_perf_event_output. > > > > > * Add sample_flags to indicate raw data. > > > > > * This eliminates the segfaults as shown below: > > > > > Run ./samples/bpf/trace_output > > > > > BUG pid 9 cookie 1001000000004 sized 4 > > > > > BUG pid 9 cookie 1001000000004 sized 4 > > > > > BUG pid 9 cookie 1001000000004 sized 4 > > > > > Segmentation fault (core dumped) > > > > > > > > > > Fixes: 838d9bb62d13 ("perf: Use sample_flags for raw_data") > > > > > Acked-by: Namhyung Kim > > > > > Signed-off-by: Sumanth Korikkar > > > > > > > > Acked-by: Jiri Olsa > > > > > > > > Peter, > > > > I think this should go through your tree again? > > > > bpf-next/master does not have sample_flags merged yet > > > > > > Yep can do. I'll line it up in perf/urgent (Ingo just send out > > > perf/core). > > > > Peter, > > > > Could you please hurry up. 11 days have passed. > > > > This issue affects everyone the hard way now after merging > > all the trees: tip -> linus -> net-next -> bpf-next. > > The BPF CI is red right now with 5 tests failing because > > this fix is still missing. > > It's causing a headache to maintainers and developers.