From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85E95C4332B for ; Tue, 23 Feb 2021 15:30:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 493E664D9F for ; Tue, 23 Feb 2021 15:30:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233206AbhBWPaY (ORCPT ); Tue, 23 Feb 2021 10:30:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:58158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233320AbhBWP3g (ORCPT ); Tue, 23 Feb 2021 10:29:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8851864E20; Tue, 23 Feb 2021 15:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614094126; bh=/yFNU66U4Xw+JD7FpZgD669dqSm9thssAE43uytWBV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iriA5e9XzHqLm0IOvgqYXsErbMc0pIs3Ve/qrXWEMmls0Ekd/l1MHUZ6090exbi+P zhlCCHsD0pD5tOXsGkPhqTYf+WtPXfLGOkiZnunylfotsEIej3zaKoG1LWh2PuTpXp 4j9TgOenknb5FwbWdoT/snGoRHDl9xmOOoOw5fxNQtzAImQN2EV75X6XSoHzEuPWU7 Zd9F0lj3TlM0x1ZzP/IpfrP83sbwcEjGGYe+H2k8iTyG0WZ7x0k+0r7gfy0ZXzleDM nIM6Xwuw3RHZukCH/HkguBZVm0gct7vw+R1Oh1nrrFrDKfIWnHG/prdAFowqCsqhVd FwGIVl/Sb1/Bg== From: Will Deacon To: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, He Zhe , jolsa@redhat.com, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, mark.rutland@arm.com, namhyung@kernel.org Cc: kernel-team@android.com, Will Deacon Subject: Re: [PATCH 1/2] arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing Date: Tue, 23 Feb 2021 15:28:39 +0000 Message-Id: <161407668452.1401335.3864455032595350603.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210223082535.48730-1-zhe.he@windriver.com> References: <20210223082535.48730-1-zhe.he@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Feb 2021 16:25:34 +0800, He Zhe wrote: > As stated in linux/errno.h, ENOTSUPP should never be seen by user programs. > When we set up uprobe with 32-bit perf and arm64 kernel, we would see the > following vague error without useful hint. > > The sys_perf_event_open() syscall returned with 524 (INTERNAL ERROR: > strerror_r(524, [buf], 128)=22) > > [...] Applied first patch only to arm64 (for-next/fixes), thanks! [1/2] arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing https://git.kernel.org/arm64/c/d47422d953e2 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev