Message ID | 20220623014917.199563-21-chenzhongjin@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 DD1C0C433EF for <linux-arm-kernel@archiver.kernel.org>; Thu, 23 Jun 2022 02:09:58 +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: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=AcLgPS1f0bTLEi9AlOGPEHnPFjLxUdn9t8jYOcextBE=; b=Pzn8SSkcVGRhBu kNxThtHb0c4L3llvfHLAJuNUsKhwVPKnjDAIy7jBi7CsnuKsUQi6dwEKiUD2n+qOWHR27wnuOlHCy x6xGxdfUkumqXZxHyVTYeP3/0GOnGBgDTViU0WAZtzQUbnk1AqMEnoOrihDMZ9V6rKS3K+x2uuTh9 5Q+5ozwiig4YgXu7KJHMYOzIC7Y2bTcna/8ZQEd5Aq9/xwVw27tZJ5tEmAjduvoPJdOrKKBxOcEr9 JyOC/rT1Y9utCSjCpidACFj46oAI2g4x2J2GLgrt0IhsDvLF8OmElA3iRoT/OBdVlrMego9GiNdd6 4NMR1HOeL4Nw8MiJxjhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4CGw-00Crtr-5T; Thu, 23 Jun 2022 02:08:42 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4C3T-00ClXK-B2 for linux-arm-kernel@bombadil.infradead.org; Thu, 23 Jun 2022 01:54:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AcRwzSKuoyO4EFQYnDUWEmKUUMaOsh2Dt/Mt1Tgp7DA=; b=oGqDVFTlk/iy0dyOU6aTYwdrpq Y6rVKZjE8dYQ+aNod/PmKfo6LfRCwYdcEg9K2SMVRQx4i8xb+hTdhv+H5Dz0CdtFAf3oof0aSMhwh Z0RYQeusxsHHtPyormOnk3AJkb4iRquB7M8HvfE4YKocDak20yqk/yLHs2H0/CIKtsKUcCpX6IAd6 9SFlo4LTxmW617ekodJdMOEUh0ArbOo1jK70vCacgKNrMPN6FBJ7f+gt3LSsYymjz5DENjeBHpKvj Wkhy2D+saWwkGoXcMRAGddgz5hbpBKCi/QuzTcnhCdAvW3rqIMidpazRa2VOGEJMyVuw4C4NYbYcL C9CmIUlA==; Received: from szxga03-in.huawei.com ([45.249.212.189]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4C0g-00BTYZ-Tj for linux-arm-kernel@lists.infradead.org; Thu, 23 Jun 2022 01:52:51 +0000 Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LT3BX0LctzDsNM; Thu, 23 Jun 2022 09:51:16 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:49 +0800 Received: from ubuntu1804.huawei.com (10.67.175.36) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:49 +0800 From: Chen Zhongjin <chenzhongjin@huawei.com> To: <linux-kernel@vger.kernel.org>, <linux-arch@vger.kernel.org>, <linuxppc-dev@lists.ozlabs.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kbuild@vger.kernel.org>, <live-patching@vger.kernel.org> CC: <jpoimboe@kernel.org>, <peterz@infradead.org>, <catalin.marinas@arm.com>, <will@kernel.org>, <masahiroy@kernel.org>, <michal.lkml@markovi.net>, <ndesaulniers@google.com>, <mark.rutland@arm.com>, <pasha.tatashin@soleen.com>, <broonie@kernel.org>, <chenzhongjin@huawei.com>, <rmk+kernel@armlinux.org.uk>, <madvenka@linux.microsoft.com>, <christophe.leroy@csgroup.eu>, <daniel.thompson@linaro.org> Subject: [PATCH v6 20/33] arm64: entry: Annotate unwind_hint for entry Date: Thu, 23 Jun 2022 09:49:04 +0800 Message-ID: <20220623014917.199563-21-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623014917.199563-1-chenzhongjin@huawei.com> References: <20220623014917.199563-1-chenzhongjin@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_025246_588646_950030E5 X-CRM114-Status: UNSURE ( 8.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
objtool: add base support for arm64
|
expand
|
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 3bd11101e79d..bbc440379304 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -120,6 +120,7 @@ alternative_cb spectre_v4_patch_fw_mitigation_enable b .L__asm_ssbd_skip\@ // Patched to NOP alternative_cb_end + UNWIND_HINT_REGS ldr_this_cpu \tmp2, arm64_ssbd_callback_required, \tmp1 cbz \tmp2, .L__asm_ssbd_skip\@ ldr \tmp2, [tsk, #TSK_TI_FLAGS] @@ -218,6 +219,7 @@ alternative_cb_end stp x24, x25, [sp, #16 * 12] stp x26, x27, [sp, #16 * 13] stp x28, x29, [sp, #16 * 14] + UNWIND_HINT_REGS .if \el == 0 clear_gp_regs @@ -601,6 +603,7 @@ SYM_CODE_START_LOCAL(ret_to_kernel) SYM_CODE_END(ret_to_kernel) SYM_CODE_START_LOCAL(ret_to_user) + UNWIND_HINT_REGS ldr x19, [tsk, #TSK_TI_FLAGS] // re-check for single-step enable_step_tsk x19, x2 #ifdef CONFIG_GCC_PLUGIN_STACKLEAK @@ -872,6 +875,7 @@ NOKPROBE(cpu_switch_to) * This is how we return from a fork. */ SYM_CODE_START(ret_from_fork) + UNWIND_HINT_REGS bl schedule_tail cbz x19, 1f // not a kernel thread mov x0, x20