Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4456553rwb; Mon, 21 Nov 2022 07:49:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7T3qqvjbGDLZxxg1blLJX+Uzqm1R18QzDPbqN0OFhotHSvZVwiDYvUAReaq/pO9YgXdE9T X-Received: by 2002:aa7:d3c6:0:b0:460:fab2:c31f with SMTP id o6-20020aa7d3c6000000b00460fab2c31fmr17207683edr.335.1669045782606; Mon, 21 Nov 2022 07:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669045782; cv=none; d=google.com; s=arc-20160816; b=b+6hxRU07Cgh14R+yLDnhGnweEC1ew82/ScTk6FBIFMf4EPS1nrKuzJN6+9gB1LO1O CBFvFV75P8dUh4DCsVTNBks/3//cW7kE8zjWerZfqdqp3Z3DoQjFE0Bj8IUj3oXPK5cc oaNJps4hzF7lYqi0GYExpykYCAbEHtBP55+ogpvyyrJg3tL7gnyBBACNtbrjCfNr9xSq i5telVkwRYGlDXhnXh1riHzLT7edDTSKfeIGpchK3zkApBIffyvLXBDIXvyZBUOFmV1V e2m5S2ycQKqLYx+gOFVVMYCRWkhTFiLpUSnVJniMmRFJFLH8nmgvgaSSah7PxyIx8M9j XkRA== 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:subject:cc:to:from:date :dkim-signature; bh=TNrTWwtiMCOw0tk2X2l6jP/AYYSIRxWH3/6byAP5LDU=; b=yk7GW22owEzZh1/jdrSxPQUeYwXk2/MYH+QWRjkW4rL2eNrfA4noA2VvLtT257HheU 0+PxB1N0TCP0LrBzKK73DgQsUgTeQwBV1o+cfrvjv/30yI+j6FBJtq43asdSVJ1ruFP/ Du28yJfseHhh3L2E8gNmaIUjR7lqtectQgOedsRhLcdkELR425GvsfTxEXexw4BfzwCb sY1ID8s+By80hiBbojIMtYAii+sAhrBQ5Z9o4FHx907ZPPERN9+LWj2vRcEymAwCI8EA R6rK0hFuBobC4arXyd2CmseK9Dzk91XDlbxmGv0dSSN6WW/SJYXshpv9dUYHGClHFafx Ywpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sV0pofiv; 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 x9-20020a05640226c900b00461c9bb5205si10533817edd.152.2022.11.21.07.49.13; Mon, 21 Nov 2022 07:49:42 -0800 (PST) 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=sV0pofiv; 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 S230225AbiKUOsc (ORCPT + 91 others); Mon, 21 Nov 2022 09:48:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232052AbiKUOrK (ORCPT ); Mon, 21 Nov 2022 09:47:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23B93D29A3; Mon, 21 Nov 2022 06:41:21 -0800 (PST) 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 41017B8106E; Mon, 21 Nov 2022 14:40:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE78BC433C1; Mon, 21 Nov 2022 14:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669041628; bh=adn/oebRPSLoCRPxZEVPB8mg0QA8QCN70vqucPnJ/uo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sV0pofivIR9RlYIUXkTCnGWYK4YjbLiM4kYu/V8Gjn5+uJuQGTqu4kOgSRqIFPrif PGSbno7Et5no0hFBLW6dSFJTIrqadajvIBecYfdx8jfEeKiTJlKhkvw8tC6FWxdUl8 /f2eaDpr7UVzW41AF+BX8paNYu8EEC+6tfQikJAoN+1UBmwQOf/jFPmL2p2MtIFJTK If4tARvrH3cQe45iLjOY3o7KrTURnEMv7j41qpsh2sBfL1sFI4XyQy0Ap4f83GF2bG jAN5ckQ1wleA6sXHgfFAegki1cMNROb/HJ+ESYOUzEcuQ3S0gG21TNamZI+KgT5mt0 rN2ozM3c8jKYA== Date: Mon, 21 Nov 2022 23:40:23 +0900 From: Masami Hiramatsu (Google) To: Peter Zijlstra Cc: Steven Rostedt , Chris Mason , Mark Rutland , Alexei Starovoitov , Florent Revest , bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , KP Singh , Brendan Jackman , markowsky@google.com, Masami Hiramatsu , Xu Kuohai , LKML , Greg Kroah-Hartman , Linus Torvalds , Christoph Hellwig Subject: Re: [RFC 0/1] BPF tracing for arm64 using fprobe Message-Id: <20221121234023.0a8d3a89bf26ad463cf11ad4@kernel.org> In-Reply-To: References: <20221108220651.24492-1-revest@chromium.org> <20221117121617.4e1529d3@gandalf.local.home> <20221117174030.0170cd36@gandalf.local.home> <20221118114519.2711d890@gandalf.local.home> <43d5d1f5-c01d-c0db-b421-386331c2b8c1@meta.com> <20221118130608.5ba89bd8@gandalf.local.home> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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, 21 Nov 2022 11:09:21 +0100 Peter Zijlstra wrote: > On Fri, Nov 18, 2022 at 01:06:08PM -0500, Steven Rostedt wrote: > > How do I know that a function return was modified by BPF? If I'm debugging > > something, is it obvious to the developer that is debugging an issue > > (perhaps unaware of what BPF programs are loaded on the users machine), > > that the return of a function was tweaked by BPF and that could be the > > source of the bug? > > Have it taint the kernel if something is overridden ;-) Then we can all > ignore the report until it comes back without taint. Hmm, indeed. BTW, error injection should set that too. Thanks, -- Masami Hiramatsu (Google)