Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp426706rdb; Sat, 19 Aug 2023 07:18:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHns0/TRrwzLYT/2hoMkWhFD/nmsuTc+JZ01oA4dWXaXI7d4ajMEtajyzv3jGC2553h3sg X-Received: by 2002:a17:902:cecc:b0:1bb:d7d4:e2b with SMTP id d12-20020a170902cecc00b001bbd7d40e2bmr2548037plg.0.1692454709447; Sat, 19 Aug 2023 07:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692454709; cv=none; d=google.com; s=arc-20160816; b=QffMueknEfUqFqc7NqJR8x57kd835Nig8dyzJqVCQPh3OdakFuGx2o6WtOefqIzPwo bscjPhW8pe1pw3lHeb+kcnQb1afx/+1rmQUvPJuMh7Z2Zqup/EI8l9CVVePGZCMVpAOx JAqM/GOPnN1skQnd0sGPZUqlZXdMYy+MRkgO349wF181bppXyo0W14vv0Pb024l549pV 9WXtsvwAed29hjy5spPD8RLfhvoSV8thPaHvln4q0gLISuBOH//6MShE6VKn3PpDWbZ9 sWCmFLZYHgvtxAzzeHtzi8AfjORH93TUqTQgp5TrWrau9L/OCZAmSIYQv0KX2mYjjr5w WX6w== 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=Se2hTbrdgHj/YOlBFnlnou0Z2M9bZ/6rQ0U4WpUWNVo=; fh=LYEQfGbxjWCCvsbfbe1+jYS1B5CUn6J7Fbkf7eroR+0=; b=IUC9QXuhU7JXWvldEUuA6RrObEyEHnWoXXz/iRvvJTIVa4/YeBSihQMYYbmtrbm86U wYeN/nRdqPe3U4YpcQY/IxZzdOI1XW+4WTjXf9JaxUm/XzCX1UZMQmGCvX878I6WP8zR REmNGdg7JUL8i6qXgfKp8D7acMbHlqY9YpFQCXZfJ2/DrLdqaLkm65ChTt+j/GCR48My f3YUTOdtfpdlVpgHxs96Hf2lijTWfOiNFKp1L7wWNRkRAIHLnrBclIX6Ax02IXs/QEm2 MbFJzfn96w+qEYyeJj9o9tmmDQD1OiKOGVTsTV3/Yq9ufUiYCEibyPdMWNEcKTbS9m4U CgeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vOJfCUsF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id li14-20020a170903294e00b001bf0cc53d2csi3321049plb.261.2023.08.19.07.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 07:18:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vOJfCUsF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA8E0BEBC9; Sat, 19 Aug 2023 01:43:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379347AbjHRSEq (ORCPT + 99 others); Fri, 18 Aug 2023 14:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379371AbjHRSEX (ORCPT ); Fri, 18 Aug 2023 14:04:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765E82D70 for ; Fri, 18 Aug 2023 11:04:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 04DF567EFC for ; Fri, 18 Aug 2023 18:04:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85097C433CC; Fri, 18 Aug 2023 18:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692381861; bh=P15k+ZGTnh3saf8KGpHE9eVH30ID/HlxHmNdojIcpx0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vOJfCUsFtYqGREnA5GesxwE4BTL2LNH71u1NZ4aF2VXFru1FyM15kV4Tu9R7V2OA7 +/5uGTenGy+RpjW1x8bWlf3xyAPg1E0cIk9u2f17rDT8/lI3+ph3i/BZdVdjruhbz9 T7Vo2qKyfrTsdMeK0ed/TTP0h7pXr0m3/tOSTFDv7SvbZwilAs99mg0RcCeAT/VHp9 dCbi4phDlRELTY/WZe6fIj+iPlaW/2lY+6UZ/+OsmO95bJadtTyrGUBO3JRklSqm+s x9lCIb8BtSKASOt5HJqIVyw33vkF8OiHWvIYic/8z8Uw1Vr+8QSak6hf6gg8FzhqHk bZCzQuOgJAcDQ== From: Will Deacon To: Tomislav Novak , Catalin Marinas Cc: kernel-team@android.com, Will Deacon , Alexei Starovoitov , Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Rutland , Samuel Gosselin Subject: Re: [PATCH v2] hw_breakpoint: fix single-stepping when using bpf_overflow_handler Date: Fri, 18 Aug 2023 19:04:10 +0100 Message-Id: <169237465034.1400900.4830514571452045431.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230605191923.1219974-1-tnovak@meta.com> References: <20230605191923.1219974-1-tnovak@meta.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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, 5 Jun 2023 12:19:23 -0700, Tomislav Novak wrote: > Arm platforms use is_default_overflow_handler() to determine if the > hw_breakpoint code should single-step over the breakpoint trigger or > let the custom handler deal with it. > > Since bpf_overflow_handler() currently isn't recognized as a default > handler, attaching a BPF program to a PERF_TYPE_BREAKPOINT event causes > it to keep firing (the instruction triggering the data abort exception > is never skipped). For example: > > [...] Applied to will (for-next/perf), thanks! [1/1] hw_breakpoint: fix single-stepping when using bpf_overflow_handler https://git.kernel.org/will/c/d11a69873d9a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev