From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BD503858D26; Sat, 29 Oct 2022 10:47:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BD503858D26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667040457; bh=yvZ153mK+18WdVu5Sxj9LNxf2CT+60WIpzuuFE8rNFI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DDeojtMLbwjCJkrZC7neWVGOIi+Gzaox28ss5MVCxNQn9KdgjPwXrHL2FGl+ekFld oedEgPYmlnYXooCDqcpiQptyYbW5IbMF0IV/pcK+JtLUUMXQpFZBqH4EApgPBLK6Hy Lyi9MS54TDO3sGVoGlTV2iBp6A4/k2jhrbfLv7yo= From: "tomas.vanek at fbl dot cz" To: gdb-prs@sourceware.org Subject: [Bug tdep/29716] Arm v8 M-profile FNC_RETURN unwinder uses wrong stack Date: Sat, 29 Oct 2022 10:47:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: tomas.vanek at fbl dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29716 --- Comment #1 from tomas.vanek at fbl dot cz --- Another problem in unwinding of interstate returns: A secure procedure with cmse_nonsecure_entry attribute is compiled with an epilogue ending by bxns lr When a non-secure context called such procedure, the stack unwinder (usually dwarf2 unwinder) does not know about cmse_nonsecure_entry attribute, does n= ot see 'bxns' at the return and therefore assumes normal return keeping securi= ty state unchanged. This causes incorrect unwinding of following frames as the secure stack is used instead of insecure. --=20 You are receiving this mail because: You are on the CC list for the bug.=