Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3717538rwe; Mon, 17 Apr 2023 02:24:28 -0700 (PDT) X-Google-Smtp-Source: AKy350YN/Yz5eAegONaibS/EBjaWX1mvJAYLdzbnLqBe76csPbc6vBoVKVbU4EqqAVR4svGx/SZy X-Received: by 2002:a17:903:2289:b0:19c:e842:a9e0 with SMTP id b9-20020a170903228900b0019ce842a9e0mr13598619plh.16.1681723468413; Mon, 17 Apr 2023 02:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681723468; cv=none; d=google.com; s=arc-20160816; b=JlkjJ0vZ5GdubpqmiC25Lh2u0Bs8A1+ETWuaEYI6L65Q1hGd+GHKHBkbl+XWlH8+Zc Ncmm1pgT8XqXPwOer6rB+e6a0+6bmx3KHPhxQlc2y4LxYwLdcgx/ItyEEpwzCVnoNomM DrJ0rd6+xHSOnYE55LIBHs40a+pKSovRjCNRDHWqhrkjs82NTRwZn/C2LzZUqYf+e26x +5bYdwLaKAeBX9ZuO+n3nNF8TwBn5J2JKgslEJw4ulF52ROswfvBL5X+TFEZGyUJeXar Dgpyj5/RnbYJbgdi1CKvA2icjPEeCtVTWslBJPxcHcUM7jHJ9mCvl/Jb4F0lYfwKZvqC HIbw== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=VNFoKzeswfOQNkGjDiCUCGJMzb7iQerntsMQBw5kM00=; b=FooeNWVtY5D47W7TuZC5ep65p+Abj2boAj0PdWM60WUk+qcylEqm6lfAIoa8CEq8M3 FTSqzuU9+bRQ2Mjz3nmfYM5jNfTT1ErAb4PVidKOKNp18AyXaWdLILCgfEaTi/4Ymyx4 eRVan74VjUFkAgHr+K67k/Zm5gMUdpMP5D16npBgWKWVu05tyCBrIatnWeTFVPRtPw1p ihIVzpymluwze0t2o7XTQQPGYnT+Ap2AbLeCCwtlv3nKWLyKw4qLWtoL5rcUVvWDRl99 HLk6AeeWBNPOwyhSyLSN5fVDnIXZtW5wLaGCwytcaN9l1Hqd5i1miZA/7b8oGqxQV+ox J3Jg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw18-20020a170903045200b001a64a25c808si10891144plb.5.2023.04.17.02.24.17; Mon, 17 Apr 2023 02:24:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbjDQJXT (ORCPT + 99 others); Mon, 17 Apr 2023 05:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbjDQJXL (ORCPT ); Mon, 17 Apr 2023 05:23:11 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C7D055B7 for ; Mon, 17 Apr 2023 02:22:33 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8CxjdrSDz1kFuEdAA--.35010S3; Mon, 17 Apr 2023 17:22:26 +0800 (CST) Received: from [10.130.0.149] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxHuTRDz1kgqQqAA--.18602S3; Mon, 17 Apr 2023 17:22:26 +0800 (CST) Subject: Re: [PATCH v2 0/4] Add uprobes support for LoongArch To: Hengqi Chen , Huacai Chen , WANG Xuerui References: <1681464781-4428-1-git-send-email-yangtiezhu@loongson.cn> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn From: Tiezhu Yang Message-ID: <8478fc34-01e9-2bdd-254b-982533ef3856@loongson.cn> Date: Mon, 17 Apr 2023 17:22:25 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8BxHuTRDz1kgqQqAA--.18602S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUUBvb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x02 67AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E 87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0V AS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCF54CYxVAaw2AFwI0_Jrv_JF1l4I8I3I0E 4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_Jrv_JF1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07josjUUUUUU= X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,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 On 04/17/2023 11:17 AM, Hengqi Chen wrote: > Hi Tiezhu: > ... > > When I try to uprobe the pthread_spin_lock calls, the application core dumped. > On X86, this will return -EINVAL instead of crashing the userspace application. > Probably, we should add more opcode to insns_not_supported(). > Yes, the atomic memory access instructions such as amswap_db.w should not be supported, like llsc instructions, let me add them in insns_not_supported(), thank you. Thanks, Tiezhu