Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6127445rwb; Mon, 5 Dec 2022 08:17:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6I+U+9pjNDwzRG0LKlODy1fCHxsVpmszS7Oop5mDhzvLViLnDWDI4w+X6h3d2bXmk1DmjR X-Received: by 2002:a17:907:8749:b0:7c0:7c6c:d484 with SMTP id qo9-20020a170907874900b007c07c6cd484mr4449590ejc.752.1670257044720; Mon, 05 Dec 2022 08:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670257044; cv=none; d=google.com; s=arc-20160816; b=jCak6dvo2rq7RBhamLpUALix7WgrwkQYSmDdsbotowglJAHDPiSKgT92PRY+gEJGsN Jg+O7IiKZV858e4CS1SfZFniZxyiEhTuJ72VAIv0NYpnntoDzcrPXsX4XAPTYDjJs1nQ 0qTyQ244P7LCI5O2iB4lmnZ3UHqjEIoEJaXMlA2K9Jv5uJJIrupcsFeCvUCs9Kd2ltIh l7KnTYGFAShp5iH/ObgceT6DKzU5a1A+nYLwGV5w79fWvNaYznven9smbRNg150NKNz4 wXqbG3HrVKyg64rymbSNbHPaxV3AT1KnzI22CVJ0MYubAjMBeJ0eFrX5ph+Z7hAzotyG /giw== 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=9El/RZkRos51n/f/dVtbiHSByzdIyCzF2IBBBwCif5M=; b=bT9cJGI/Gc5l/FJb76y7yLGXkbf6xMXh8WDULCP47VU0Jtq4QxNUJ7UW17efozPSDL cKSF0ZZzay0gRjgvLLe24zo5WG5MicM6sooQLmT143KqVnkSXDWa8BDWKwO4wbpfO01D eHTlPEBaO1SCQQB4gP6wlyd3UvNxWxNhxNqx8l1ZDVtFf1G5x5fIKysJqk0kCkWptd0n frAgx7eXFPT92yTEAUIfB/AmBrV4BjiFIhbnR/VUrO9JwFJqpsC7Nww31o0jfc0U48op kHeQ48rbpnvSn239Vwb4pIROKMPc6sTu03KP+qCkN01sKYru+Sn0vHCbiWhLox5xG7va wfpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n7bquxzM; 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 eb10-20020a0564020d0a00b00468ccfbba7asi12344286edb.387.2022.12.05.08.17.04; Mon, 05 Dec 2022 08:17:24 -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=n7bquxzM; 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 S232060AbiLEPnN (ORCPT + 82 others); Mon, 5 Dec 2022 10:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiLEPnL (ORCPT ); Mon, 5 Dec 2022 10:43:11 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637DDBC0C for ; Mon, 5 Dec 2022 07:43:10 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 083BB611A9 for ; Mon, 5 Dec 2022 15:43:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F138AC433C1; Mon, 5 Dec 2022 15:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670254989; bh=D/+BKVIlShuhR+UQ6Pz52NTeoGKKkf+tJ77kNXk0hZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n7bquxzMr78fGNDfb9ivVZpS+1pTFDeSVwEFyDCPtrVpAk3ZeMEObpDsnyHBzMnaK zCOBxkdkyjWU5cXf7WpE9599BSUeSfm7kWettx5rIezCBqGLtx+zSg9v20AXSpgrWD N3iPqzaHkd3nwOOy/hRPoWoyBSm9UgNIFSJ2EpnFUxBvOk/7YbCfowwg9eo5NwvuGE NKBi/ey06eRe+0no/1VI9xJVUhwjo+BzpeVyrqLSuBx8pPzVjrYno8pTKOiB5ygOne Qr7awKLrAisGUDeN4aO4AEY7Hx6ogTOrkArEwL10XPaUAfIjAe25ZI3gQ80y9G/quP cXWnSoPlz0FSw== From: Will Deacon To: catalin.marinas@arm.com, guo.ziliang@zte.com.cn Cc: kernel-team@android.com, Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, huang.junhua@zte.com.cn Subject: Re: [PATCH] arm64:uprobe fix the uprobe SWBP_INSN in big-endian Date: Mon, 5 Dec 2022 15:43:02 +0000 Message-Id: <167024898950.269185.3140250803235881009.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <202212021511106844809@zte.com.cn> References: <202212021511106844809@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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,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 Fri, 2 Dec 2022 15:11:10 +0800 (CST), guo.ziliang@zte.com.cn wrote: > From: junhua huang > > We use uprobe in aarch64_be, which we found the tracee task would exit > due to SIGILL when we enable the uprobe trace. > We can see the replace inst from uprobe is not correct in aarch big-endian. > As in Armv8-A, instruction fetches are always treated as little-endian, > we should treat the UPROBE_SWBP_INSN as little-endian。 > > [...] Applied to arm64 (for-next/insn), thanks! [1/1] arm64:uprobe fix the uprobe SWBP_INSN in big-endian https://git.kernel.org/arm64/c/60f07e22a73d Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev