X-Received: by 2002:a17:906:aad7:b0:6ce:a6e3:9461 with SMTP id kt23-20020a170906aad700b006cea6e39461mr56677ejb.186.1645627110177; Wed, 23 Feb 2022 06:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645627110; cv=none; d=google.com; s=arc-20160816; b=xCbBqfSY46olhQin39vA2bKUW4ds9E/ov6JiaXB/X0/on7pvI5BB7N8DJdP88FJUhj lzMasXxLzlXhcsD79PFMutOADVn0mfXiQHRvD2hln+rozKrGmxh/Pzgo/u2HyxL2t0hb uIlHSFdUStNNQEWNJa1h4U4CMId1m9LI1hx+VdZl03rqs6ojqRVXGRFCt8N1GExnczMM CRnqAzOOJKHnX8wjRTuuWuWN3bgCDwFlnMr+rpKPybPyE69EH+TXer/+JOI77WntYe4S 41qz6dx3KTPtFfWB/1kitpz39uSRccgLtdTwcORV4nY15Nw2GIorTns4SbntaqGP5YaT 5YFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=GJ7ifFl01ZOrtOig++GnKT6DSzSCoYFsEoY0Ot9TJPE=; b=WcCxSBUt9Y5grNmRfQSYuB6scXafHSTF1qcjkGKWLZSilH+fmgX7s5fKHAeBfhpHuY Afwx7nhzl9k8Rh3c2ymiBADwXu75PIMa/tm5G75sZp9e6n6h5GlSs8lH++9mkWkTR5tR ZF/Pos34EUpbI5Q+t3NN74a9NVXy+Cz7I4KjdnsGAjyn5wOxjDYOjrl+Yw260y1UROo9 SVwbsYjdQZHqTbuCxnilVnuTdE+WUb8LJgtA30I0rxZL+O2y5urXPFcFelFb85Z494gN 0hchyJG4kzCX+3usjVuouJfhSn0IOpq1r82rClY829tbXPdw4IGBnfPkVLVkGh26xD2Q cYvg== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr3si16384599ejc.955.2022.02.23.06.38.05; Wed, 23 Feb 2022 06:38:30 -0800 (PST) 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237307AbiBWI4N (ORCPT + 99 others); Wed, 23 Feb 2022 03:56:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiBWI4N (ORCPT ); Wed, 23 Feb 2022 03:56:13 -0500 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9D557C149; Wed, 23 Feb 2022 00:55:45 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=ashimida@linux.alibaba.com;NM=1;PH=DS;RN=20;SR=0;TI=SMTPD_---0V5HULum_1645606540; Received: from 192.168.193.152(mailfrom:ashimida@linux.alibaba.com fp:SMTPD_---0V5HULum_1645606540) by smtp.aliyun-inc.com(127.0.0.1); Wed, 23 Feb 2022 16:55:41 +0800 Message-ID: <769ae7ad-e860-722d-59b7-cd7be5f6f1ee@linux.alibaba.com> Date: Wed, 23 Feb 2022 00:55:40 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH] [PATCH] AARCH64: Add gcc Shadow Call Stack support Content-Language: en-US To: Guenter Roeck , Nathan Chancellor Cc: catalin.marinas@arm.com, will@kernel.org, ndesaulniers@google.com, keescook@chromium.org, masahiroy@kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, mark.rutland@arm.com, samitolvanen@google.com, npiggin@gmail.com, mhiramat@kernel.org, ojeda@kernel.org, luc.vanoostenryck@gmail.com, elver@google.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org References: <20220222095736.24898-1-ashimida@linux.alibaba.com> From: Dan Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 On 2/22/22 08:47, Guenter Roeck wrote: > On 2/22/22 08:16, Nathan Chancellor wrote: >> On Tue, Feb 22, 2022 at 01:57:36AM -0800, Dan Li wrote: >>> Shadow call stack is available in GCC > 11.2.0, this patch makes > > The above suggests that the option will be available with gcc 11.3.0. > Information available in public suggests that it will be introduced > with gcc 12.0. > Ah, yes, I think we could use "gcc >= 12.0.0" here. > The point here, I think, is to list the minimum gcc version. > It is going to be a long time until gcc 12.0 is the minimum version, > so I think it makes sense to list the minimum version number for > each compiler here. > > However, it may make sense to add some reference indicating that > support will indeed be added with gcc 11.3.0, and not only starting I took a quick look at the gcc description, and it seems like the y in x.y.z is usually used to fix bugs, and new features should be added directly to the trunk. Link: https://gcc.gnu.org/develop.html > with gcc 12.0 (and maybe wait with applying this patch until it is > actually available in gcc and can be confirmed to work as intended). > It's also fine to wait for gcc 12 to be released, and I thought maybe I could submit the "final" version of this patch to the community (or mailing list) first so maybe more people would test it and if there were any issues, it could be fixed before GCC 12 is released :) Thanks, Dan.