From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::42e; helo=mail-pf1-x42e.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4D55321191734 for ; Fri, 16 Nov 2018 14:56:05 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id q1so4064322pfi.5 for ; Fri, 16 Nov 2018 14:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/Q/SCd5GxpjIE3xGGAC9nPFmgV90h1E9f+nsa3xmKKs=; b=OkwE0jZ7mDBujPYl09TGO5SR9DzS9bnfC19lwJC5iXNTZEQ8Bveqx6MwZkQzJ6A5CY oSLayggWR1r38m9eYw7U2F5W8DgK9RPX0nAe5eNjNA2YTixcwsO9FMf2HQWh3nAHK04f NW7J91lqPn0HCL879xElp3WCyrB8pM9rSt5no= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/Q/SCd5GxpjIE3xGGAC9nPFmgV90h1E9f+nsa3xmKKs=; b=CbkvfrvJpaJgw9S2isl2SwgxeyyZ8o6BTvoMFvhogpuGcUf19gRn+DcQStg/tDOQLX SEHp6m3Yp7JcMiR6dprSTcFmzRnxsg7Bezm81YeJsnnnKL+JMwNxmMdU5wLQTSw3LVDY Ae4T1vxRMxt2AK3Sq57Y6C5KzhWRISSAmKLEylrNMphH0qHzj6DKyXIMMx2poxgpaA6G iEY2sBhPF4TyjjWhTwTO0xQwmLONFPWkwD4Kvy+KmpbcwOOJMxm26ZsB0jbMae9vaJXU GNPqNJ+SMCMzYEd73GVytwgkjr/4bhvogrBegkihH7htpH0SrDVuuNLsP+d3oeP2MHy5 P8FQ== X-Gm-Message-State: AGRZ1gJ6D2nGfHPVjtfHMEf5V28Wjw2JPM8iSFr40NN60c2s+xsRd/YA wJbFqufwWaR0izcdbtZzJQOKnbjELhu4lw== X-Google-Smtp-Source: AJdET5fdZbg+mj5aMHpzx2/GPU3JXicS7HPGGB+cmSkGZvVMFSwcc87ljDi180j8cHBQCw7Yzug1iA== X-Received: by 2002:a62:2741:: with SMTP id n62-v6mr13294306pfn.138.1542408964343; Fri, 16 Nov 2018 14:56:04 -0800 (PST) Received: from mba13.psav.com ([64.114.255.114]) by smtp.gmail.com with ESMTPSA id r6sm41670483pgk.91.2018.11.16.14.56.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 14:56:03 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: lersek@redhat.com, leif.lindholm@linaro.org, philmd@redhat.com, Ard Biesheuvel Date: Fri, 16 Nov 2018 14:55:56 -0800 Message-Id: <20181116225558.27720-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [PATCH 0/2] Clear frame pointer in startup code on AARCH64 systems X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2018 22:56:05 -0000 The backtrace code on AARCH64 does not sanitize the frame pointer values it pulls of the stack when attempting to do a backtrace, and so junk left in the frame pointer register may result in a recursive exception and a truncated backtrace. Ard Biesheuvel (2): ArmPlatformPkg: clear frame pointer in startup code ArmVirtPkg/PrePi: clear frame pointer in startup code ArmPlatformPkg/PrePeiCore/AArch64/PrePeiCoreEntryPoint.S | 3 +++ ArmPlatformPkg/PrePi/AArch64/ModuleEntryPoint.S | 3 +++ ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S | 3 +++ 3 files changed, 9 insertions(+) -- 2.17.1