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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, 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 416A5C2B9F8 for ; Tue, 25 May 2021 19:23:12 +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 0DB2161417 for ; Tue, 25 May 2021 19:23:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0DB2161417 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@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=5lMWttichF4rA5Mp6IfAY4VRkN8UNIl3KePTzAEXrXo=; b=sgWMgyLZrECePy KZEBFhH1agZVXPByDT/e8gxMPwAmXGTp6H6ITkGsNfwiNHNv0dgGOZVGJGjuEPhu5Pu0XhKTrGwRI QOkDkwBXFVep8WOIP/gpyaYDNjAjGZYd7vFuuj8CLWMF9pJeEdZ/ok2Geb5I++ohboONTvnhAX7Kh ixbdGnR/d3BNhqnm0AOCv2v+VUFAC5sXU8JhkDsEvGXlBtpfCPvPmvQCwPFr1hTACeBZp0CqosDpR B5IAlgU7L7w7cOxtxI6f9/13hjM51y6i7zv+vLz64mxvYNsUwAYQ0kQkPDM+wjDSeP2O38X8gr07t 0PClQglQ+QsteU7+5Azw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llccD-007fbm-3A; Tue, 25 May 2021 19:21:22 +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 1llcGm-007Uqa-RI for linux-arm-kernel@lists.infradead.org; Tue, 25 May 2021 18:59:14 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 60E2C61413; Tue, 25 May 2021 18:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621969151; bh=PIeuqpoLZG6p/agfBfl7P0yJbJ6rl8VB5Fb0TzDNHGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rH1EsTaJrj3pwzQJ6KI/dtjXR6qSK0EXNmHM9oqigV6bH+H90uq8wyRYhqAfgKkul ZwgtGNQcg+QMI95B8G7/jI6+ztDx/isHvd+XQmKR5ZJUPHNT9dhFsdAstlM3er6kj8 BwY2h0ASaj5bjOUF999XrUq8WAKjZZhqv4qBHfdaoZeg9QSy3svs74gojwtw7rjpZ2 Su0Z+9sRIM+Ed9R722qYfWr6HvODbu33TQxPbklpFuB1Fs0/NP6QJOFkJs6BohsOzP vXkIKLy/QhCZD2PtmwY3aUL8CWPdDZvULVecwkRDs0Vg9uCVwW1df6bbEEY/GWsU/+ MBi8XGeagpZMw== From: Will Deacon To: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, Mark Rutland Cc: kernel-team@android.com, Will Deacon , broonie@kernel.org, madvenka@linux.microsoft.com Subject: Re: [PATCHv4] arm64: Implement stack trace termination record Date: Tue, 25 May 2021 19:58:49 +0100 Message-Id: <162196520945.2314485.10955247233371980106.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210510110026.18061-1-mark.rutland@arm.com> References: <20210510110026.18061-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-20210525_115913_047415_9BED8471 X-CRM114-Status: GOOD ( 10.87 ) 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 Mon, 10 May 2021 12:00:26 +0100, Mark Rutland wrote: > Reliable stacktracing requires that we identify when a stacktrace is > terminated early. We can do this by ensuring all tasks have a final > frame record at a known location on their task stack, and checking > that this is the final frame record in the chain. > > We'd like to use task_pt_regs(task)->stackframe as the final frame > record, as this is already setup upon exception entry from EL0. For > kernel tasks we need to consistently reserve the pt_regs and point x29 > at this, which we can do with small changes to __primary_switched, > __secondary_switched, and copy_process(). > > [...] Applied to arm64 (for-next/stacktrace), thanks! [1/1] arm64: Implement stack trace termination record https://git.kernel.org/arm64/c/7d7b720a4b80 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