Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5398404iog; Wed, 22 Jun 2022 19:24:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDPtWlEMpDtyf4KI3ndoLoMsWZgaYhTu+sfyTRzVkd30qNmey3vjXSSWXovUtYgeTS/R2b X-Received: by 2002:a17:90b:4b0f:b0:1e8:53ac:ec51 with SMTP id lx15-20020a17090b4b0f00b001e853acec51mr1512607pjb.78.1655951055640; Wed, 22 Jun 2022 19:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655951055; cv=none; d=google.com; s=arc-20160816; b=AC9SMpdiauy3gYN7gUOlnePJMoM2cbn125I5/jx6m3aPprO3+Y/h+zm+kht/w6vOJF iPIavK1ob+Gg09Az+1YPIfUkfzIvBaE64llIFkeF05QeQMOoLtfnycGOg5cJ8d3ZjY1x qmFl6LDA1sR3jV5RkXqUgFTA32HZq6PQb2KJnNPgNxfFGb7WhnW/HcsWqYSIKsdC7EGy aegWu/BB3JJI08ewoQiCbHODv+2Dr0II2VzvTf+xMcbu4rtc3EDZ8ttZ22WMRFfOAC6T atw03ZrGB8Sxo7Zx0ja6yZghnb7N46p0r6f9Ao64Zh5Ycu55PW+EwL0Tu/D9QDj3Fnhi j6dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=szLVUCufP7IPmbvERwdfCpXqM7YUKPrnDb5zY4kGNPk=; b=dSk7q/c2HimCzUS56cvGcQGtBlrTEhnLfUW4ymFg2YW/nLFwyABGGTIqItBLeioIDi gH1kaKltjcVyc+L7PxdUxRGHB1/Rqdwo/n7Xhku2GOpylJO+k+nyPQvB/JiP6mgtJOHH kFoQNVmU1/tWJVrTxwMQSzY7eEfN3gQy/KUxS7zE/PeJkmt6G1TUml91L/N/cTaoLu7z uX0LPNc7WtSfvlDknqOdWvOaeOHRY7Q1WITsN3VHkwKJ9D7kEBBiaymy/+5ExWkv22By ogRr2C3ibR6qSejcoJEUMc/Z9whtVIjoLf65aroWMCM3UyHOy2/e2Bpmp5doPAWMveSc DfBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a056a00099000b005170994dea1si11502411pfg.8.2022.06.22.19.24.03; Wed, 22 Jun 2022 19:24:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377840AbiFWByR (ORCPT + 99 others); Wed, 22 Jun 2022 21:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344345AbiFWBwa (ORCPT ); Wed, 22 Jun 2022 21:52:30 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A19B043EC2; Wed, 22 Jun 2022 18:51:54 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LT38m49s4zhYWx; Thu, 23 Jun 2022 09:49:44 +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:52 +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:51 +0800 From: Chen Zhongjin To: , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v6 31/33] arm64: kernel: Skip validation of proton-pack.c Date: Thu, 23 Jun 2022 09:49:15 +0800 Message-ID: <20220623014917.199563-32-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 Content-Type: text/plain 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org qcom_link_stack_sanitisation() repeatly calls itself, but we can't mark the asm code as intra-call so it should be marked as non_standard. Signed-off-by: Julien Thierry Signed-off-by: Chen Zhongjin --- arch/arm64/kernel/proton-pack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/proton-pack.c b/arch/arm64/kernel/proton-pack.c index 40be3a7c2c53..9439e62d4b57 100644 --- a/arch/arm64/kernel/proton-pack.c +++ b/arch/arm64/kernel/proton-pack.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -257,6 +258,7 @@ static noinstr void qcom_link_stack_sanitisation(void) "mov x30, %0 \n" : "=&r" (tmp)); } +STACK_FRAME_NON_STANDARD(qcom_link_stack_sanitisation); static bp_hardening_cb_t spectre_v2_get_sw_mitigation_cb(void) { -- 2.17.1