Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEB73C433EF for ; Wed, 3 Nov 2021 13:21:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9F79F61076 for ; Wed, 3 Nov 2021 13:21:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F79F61076 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0Z/dNpMhYar9d3g7htjUmbZvDa61AHWmLo1o2TZ1qUs=; b=4iQzV4bEbG/3NB ddzso0xi0OjOkA8W6m/2fPQeE5c8/kQWRLSNYc8YBbI1aK9576COsT52zZvRUQ5+4XuYBuqClElGi LiHIYprmYZJv0M8N3lLTVHoU0jqNHOkbn9EbjrvBToolkxttqdEr2gkU7qsvn9wFkpw8ZHyPGNiSm gSKsM9w7imjaBKc9ifB3ccQFi+HwEtt9xwhTrxdqFSbW/wEZ8ckT6fWmM/ogGw4B+jKSD5Ca1IamN KGcrf1rXylpUryizu1YwTU50pOMoWViuZSt0hmmbesE7t7BjXTSbC32xLJJid+9E/6yZYTVxelQRD 71LuF4G1Hj9qrcw28mxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miGBO-005HMb-7I; Wed, 03 Nov 2021 13:20:02 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miGBD-005HLS-UR for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 13:19:53 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1B3960F5A; Wed, 3 Nov 2021 13:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635945591; bh=HxRYiZz6459Dn6MMSvPVfmeRUIbmf066J5oCBqMrq00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rLhAbIDaZbVei3ko73AVV4ZP7s16arCAXA68MhAioz/e8zDz1y15FLvf+qR/H8NgZ Nn1uRsid/BswxLR3YkPWi9c0GmJkzTSEI+bgxub3+5FkuwuVUnweihmgus7E9y3EYF 23PRQgeeh5U87luLi0jYPrvSc8bLXjMLuaVuukFDCt9aRQ6SotFsYrMidQc5jaEnuW lFqjPvug5nKnQ2levhapfQCXb4Tz9tyB6vNXqzzLjqzWMFqnxB1Zy0OoHNstLVsP5C l4a2Hq3Hpueo3Ek/nZ2qleVDRcGWlb7E4IBiJNCWf8TPnWzWD53GkoOoeVqxrmahgr IkfvTd9ZHabzA== From: Will Deacon To: linux-arm-kernel@lists.infradead.org, Mark Rutland Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , broonie@kernel.org, madvenka@linux.microsoft.com, rostedt@goodmis.org Subject: Re: [PATCH v2] arm64: ftrace: use HAVE_FUNCTION_GRAPH_RET_ADDR_PTR Date: Wed, 3 Nov 2021 13:19:45 +0000 Message-Id: <163592934036.1973408.15525829325531932416.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211029162245.39761-1-mark.rutland@arm.com> References: <20211029162245.39761-1-mark.rutland@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_061952_026855_CD7F5112 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 29 Oct 2021 17:22:45 +0100, Mark Rutland wrote: > When CONFIG_FUNCTION_GRAPH_TRACER is selected and the function graph > tracer is in use, unwind_frame() may erroneously associate a traced > function with an incorrect return address. This can happen when starting > an unwind from a pt_regs, or when unwinding across an exception > boundary. > > This can be seen when recording with perf while the function graph > tracer is in use. For example: > > [...] Applied to arm64 (for-next/core), thanks! [1/1] arm64: ftrace: use HAVE_FUNCTION_GRAPH_RET_ADDR_PTR https://git.kernel.org/arm64/c/552e196d88e5 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel