Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1859715rwb; Fri, 7 Oct 2022 20:52:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UVa8nzjMn16D4fYQLt2SoXUXnxMM+crsdrzNG3rgTgaly9DGX9vLrV6pK6adsPi5xunIY X-Received: by 2002:a17:907:60c6:b0:787:af55:87c2 with SMTP id hv6-20020a17090760c600b00787af5587c2mr6481536ejc.52.1665201161155; Fri, 07 Oct 2022 20:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665201161; cv=none; d=google.com; s=arc-20160816; b=Aho+zUZffEMAZd+z+wj2t41IXejDak3RCBVpoSpTwypWLgjiGQHz92KPvvWwnJMB1x ZZyFqADl2ILXuxNSXK68+5Cndfsufja43DL0zNrOmMBl1hsABL06UnQeOFOh3Uk0YVej h/rimwFhTWy6aXeR/es71sNjzJxHta32CZ1AjYODsAeaLY9drw9Qm6ZTCCojsLJixyM/ nqsB7vd9c8Q/LQXlUlOdmtkvcP3Y7j3oB5I3SsnF1Cm0RfltPdOxKcxYea2puhY3X8Nx pxSNXQNFGOXnQm0aUO5nhyqbjEAtFhfbXCfU3ymRg/2vE3yzlxSMmL8FA4aO8xaWlcMm OA3w== 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=rRPuZ/+eBD5ZRQo8os369KwbEz820SKzZicIRnZDHwk=; b=QLRUm8GDoiElkvhXesiMq1FRs6OwDCMMHcNgYvoD7DoZjYi6fSm5cyZZBXIlsy1g9H V5NFninO0KTkjzwxYFCd5HyP6iMBwXTG5J8XQ4fPMB6uLX0iLIqCGUn/wvuSv0hkBHnF MA8dzj71IlykeZRAlM+EyibuMYHpyuQY432kAWHfAx52/LMSo27A9f+EbRa5L2ar7wlV ygcDtgQb3pewqEu1DuUWwuAcOsYsqW/vMektUGrOuklOORJ4JEJvBfn7XKUQ8x8z8rQV yuqirdgTNAVQ4sHWXon0acbF7SbfNGMdjOb6vz773VqrwfjEDSELfIuZmUMEzjJLkKYa prOA== 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 di17-20020a170906731100b0078bb4d5db86si5284396ejc.77.2022.10.07.20.52.16; Fri, 07 Oct 2022 20:52:41 -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 S229623AbiJHDKq (ORCPT + 99 others); Fri, 7 Oct 2022 23:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJHDKm (ORCPT ); Fri, 7 Oct 2022 23:10:42 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16160A2222; Fri, 7 Oct 2022 20:10:38 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MkqnW5LF8zlXhx; Sat, 8 Oct 2022 11:06:07 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 11:10:36 +0800 Received: from [10.67.108.67] (10.67.108.67) 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.31; Sat, 8 Oct 2022 11:10:36 +0800 Message-ID: <6b4ccb6b-c6c2-e0cc-1670-1776877ecf46@huawei.com> Date: Sat, 8 Oct 2022 11:10:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0 Subject: Re: [PATCH v3] ARM: kprobes: move __kretprobe_trampoline to out of line assembler Content-Language: en-US To: Nick Desaulniers CC: "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" , Arnd Bergmann , Nathan Chancellor , Tom Rix , sparkhuang , Ard Biesheuvel , Steven Rostedt , Linus Walleij , , , , , Naresh Kamboju , , , "Linux Kernel Functional Testing" , Logan Chien , Masami Hiramatsu , Russell King References: <202209291607.0MlscIht-lkp@intel.com> <20220930211505.209939-1-ndesaulniers@google.com> From: Chen Zhongjin In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.108.67] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Hi, Sorry for late reply because I just found this thread before the long vacation so I didn't have much time to deal with it. On 2022/10/7 4:35, Nick Desaulniers wrote: > On Fri, Sep 30, 2022 at 2:15 PM Nick Desaulniers > wrote: >> commit 1069c1dd20a3 ("ARM: 9231/1: Recover kretprobes return address for >> EABI stack unwinder") >> tickled a bug in clang's integrated assembler where the .save and .pad >> directives must have corresponding .fnstart directives. The integrated >> assembler is unaware that the compiler will be generating the .fnstart >> directive. >> >> arch/arm/probes/kprobes/core.c:409:30: error: .fnstart must precede >> .save or .vsave directives >> :3:2: note: instantiated into assembly here >> .save {sp, lr, pc} >> ^ >> arch/arm/probes/kprobes/core.c:412:29: error: .fnstart must precede >> .pad directive >> :6:2: note: instantiated into assembly here >> .pad #52 >> ^ >> > Chen, I noticed that your patch was discarded; it's not in linux-next today. > https://lore.kernel.org/linux-arm-kernel/YzHPGvhLkdQcDYzx@shell.armlinux.org.uk/ > https://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=9231/1 > How would you like to proceed here? Since 6.1 is closing now. Let's reorganize everything and queue it up for -next for 6.2 > I think moving this out of line, incorporating Ard's feedback, then > putting the UNWIND directives on top might be the way to go. What do > you think? This way looks good to me. How about making a set for this,  to make everything more clear: 1. Move this out of line 2. Apply the feature, test with gcc & clang 3. Other cleaning, or merge with 2 if the cleaning is tiny. I'll send another version for this, rebased to 6.1-rc1 Thanks for your time! Best, Chen