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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 6F8ABC433E0 for ; Wed, 6 Jan 2021 11:01:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 024F821D93 for ; Wed, 6 Jan 2021 11:01:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 024F821D93 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=v4290o3LIxilo4/dlGGhlwOFduz737wYDaCmN34etN0=; b=PKsNSuY7QEvI0ntVtnxUPfM2B JMDzLzo1o+0GtXnIuyUo4ij4J4I2bQ/8lZHMDtjUbamxFEWvpehbqvleXNOaidfVYY3ubxGVVvE3A w436qQtNW1BAlNHA9x9mm1kOSPBn2dAEIIdQm9aQuvhy64f0tSvPSuIbGNEUJr30qaraGOCSvcMqw 86ZovjyN3FcnSbmw4aJSJkJG6gHVqti7l5FVuIzzEBkc1NaSkwvJyQI6oIjtId5XsMtau5/G8KNhY BPr0gGNtorrVvBS2DVGHke9LKSTLYop9ljhM7N5kI9EK4R5DdIhgDx9OZitDdzzdlt0lDl/fUX64S 4je5Lvx4w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx6X6-00066w-4K; Wed, 06 Jan 2021 10:59:16 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx6X3-00066b-QQ for linux-arm-kernel@lists.infradead.org; Wed, 06 Jan 2021 10:59:14 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 98AE621D93; Wed, 6 Jan 2021 10:59:09 +0000 (UTC) From: Catalin Marinas To: Peter Collingbourne , Will Deacon Subject: Re: [PATCH] arm64: vdso: disable .eh_frame_hdr via /DISCARD/ instead of --no-eh-frame-hdr Date: Wed, 6 Jan 2021 10:59:05 +0000 Message-Id: <160993073707.13790.8547280737911345953.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201230221954.2007257-1-pcc@google.com> References: <20201230221954.2007257-1-pcc@google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210106_055914_074617_CE4609AC X-CRM114-Status: GOOD ( 12.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Szabolcs Nagy , Ard Biesheuvel , Tamas Zsoldos , Vincenzo Frascino , Dave Martin , Linux ARM , Daniel Kiss 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 Wed, 30 Dec 2020 14:19:54 -0800, Peter Collingbourne wrote: > Currently with ld.lld we emit an empty .eh_frame_hdr section (and a > corresponding program header) into the vDSO. With ld.bfd the section > is not emitted but the program header is, with p_vaddr set to 0. This > can lead to unwinders attempting to interpret the data at whichever > location the program header happens to point to as an unwind info > header. This happens to be mostly harmless as long as the byte at > that location (interpreted as a version number) has a value other > than 1, causing both libgcc and LLVM libunwind to ignore the section > (in libunwind's case, after printing an error message to stderr), > but it could lead to worse problems if the byte happened to be 1 or > the program header points to non-readable memory (e.g. if the empty > section was placed at a page boundary). > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: vdso: disable .eh_frame_hdr via /DISCARD/ instead of --no-eh-frame-hdr https://git.kernel.org/arm64/c/e2bba5f92354 -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel