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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 76CA2C433EF for ; Fri, 8 Apr 2022 07:22:27 +0000 (UTC) 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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VQDqhbDIujVTAMDGfwAG5zgvNlYxkmxjllCqcLxNRJ4=; b=msb83zJBCJTrQd jcnrQyJo6o7dUqBwlVyYUeSz77O68YO15Htqzu/v0ZvEMcYKhCwg1D3yXhvdik0tIpc5UYv3vO8mp s0FkgY70Lhy3e6dfe1t90oDVtL/q+zD0erWF5LWGCb537YJvndG6Ki2CmYjjCrretyTa5zT0rZE29 bdm/efyh6syiPaPPyIuMfytKqsDLSSOJ1htokxvPaTItWV12TJ3LcOHFv5vzp4mb6KknDhe36YnqM HxN9QMUnqOY06EH/nU1940uOFJnx+MMjxU5lEkH45oowyE2cfBEtX2XUQnduVFJdxxlXVtLAqdFOp 5351woUbWQi4EcZjgyTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncivq-00FUiN-Ml; Fri, 08 Apr 2022 07:21:22 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncivb-00FUcv-O5 for linux-arm-kernel@lists.infradead.org; Fri, 08 Apr 2022 07:21:09 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 909AB11FB; Fri, 8 Apr 2022 00:21:06 -0700 (PDT) Received: from [192.168.4.21] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E2C0C3F5A1; Fri, 8 Apr 2022 00:21:04 -0700 (PDT) Message-ID: <75e6e827-e8c7-8e72-e584-0895bc2e50f7@arm.com> Date: Fri, 8 Apr 2022 08:20:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v2 2/2] arm64: vdso: enable orphan handling for VDSO Content-Language: en-US To: Joey Gouly , linux-arm-kernel@lists.infradead.org Cc: nd@arm.com, catalin.marinas@arm.com, keescook@chromium.org, masahiroy@kernel.org, will@kernel.org References: <20220407101304.539-1-joey.gouly@arm.com> <20220407101304.539-3-joey.gouly@arm.com> From: Vincenzo Frascino In-Reply-To: <20220407101304.539-3-joey.gouly@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220408_002107_957225_35781291 X-CRM114-Status: GOOD ( 13.06 ) 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 4/7/22 11:13 AM, Joey Gouly wrote: > Like vmlinux, enable orphan-handling for the VDSO. This can catch > subtle errors that might arise from unexpected sections being included. > > Signed-off-by: Joey Gouly Reviewed-by: Vincenzo Frascino > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Masahiro Yamada > Cc: Vincenzo Frascino > Cc: Kees Cook > --- > arch/arm64/kernel/vdso/Makefile | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile > index 172452f79e46..623d9ad2c717 100644 > --- a/arch/arm64/kernel/vdso/Makefile > +++ b/arch/arm64/kernel/vdso/Makefile > @@ -24,7 +24,13 @@ btildflags-$(CONFIG_ARM64_BTI_KERNEL) += -z force-bti > # routines, as x86 does (see 6f121e548f83 ("x86, vdso: Reimplement vdso.so > # preparation in build-time C")). > ldflags-y := -shared -soname=linux-vdso.so.1 --hash-style=sysv \ > - -Bsymbolic --build-id=sha1 -n $(btildflags-y) -T > + -Bsymbolic --build-id=sha1 -n $(btildflags-y) > + > +ifdef CONFIG_LD_ORPHAN_WARN > + ldflags-y += --orphan-handling=warn > +endif > + > +ldflags-y += -T > > ccflags-y := -fno-common -fno-builtin -fno-stack-protector -ffixed-x18 > ccflags-y += -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO -- Regards, Vincenzo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel