Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5416393rwr; Tue, 9 May 2023 00:47:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7anfFrUXT29JrVGN/UN43vOJin1uPcBR9irDQAaXLjFahZbw5Gd2Xej8/imX1tRdVoJ3h4 X-Received: by 2002:a17:90b:1992:b0:24e:55c3:89af with SMTP id mv18-20020a17090b199200b0024e55c389afmr13222678pjb.18.1683618443004; Tue, 09 May 2023 00:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683618442; cv=none; d=google.com; s=arc-20160816; b=oNg65PU4/sLmHcas5LBi0+NWBp3nue4Ga5i+caoBwEBdJDriVJqvPn/hSKK/YNBvhW ms7aTILbtaa4bK/yA/7BbM5XaBCX9GtD1GbkVRhlFVIKdSFZn0evjfO9Jwf4c2aHqb8M 9T4imv0HOtln67ofQxnt/fMRyMAq7KmqqCQxB7Z4RGxyGdIrCajK3aOUp41Q/nnT634I QbiTYsOp4pjbcsIPAKLTlEWE8rjr5ZfkS8qFqOb5h8aYCN6nLQeepjxZhmAlkfNp4ilf XcTj7e7D1jZgQTFX5eEXlAm2uhhAfo5EqVlQtaL+mFvnWdhxKbZR3RYcSnwOEr7QlO+z Fx0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cbJpoz2h84EpZU/0NLdpAKfHSpFU8Fd9lDWG7+UCUKU=; b=pgrzmicj0nhWMvYy84zGGG9sJ+eM9ayeNYFCmPBRUguIwkOyxFmWrCq03di5rUrM3q 7InTkohCzmcQwmwPpFmOEAg4ohbdw76g1r6TCz6zPsB5yTu8w/sWvkydf5FPwmBz8iuq Mg8ZukfU62hi4piYFtmEf2hSSmOlJlnVwDT+0brl4sHukNA6eTky22pjDEieH6OYWGMt /yDVyM9E6kAnrcSqoCUVf7M7HlNSvSy/dq1Vn6Slbcxzgjlg7OP6/l9ktfUveL3/FzeC NTURs9WvG8ncAkzOGwDiDmLPOpvRT8AFUh+AjWvC/fqv1MjJza+Z7sspbiPKswXVGLny 2oaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IlXhJ5B0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a17090a000200b0024f338cd9f6si12528562pja.130.2023.05.09.00.47.08; Tue, 09 May 2023 00:47:22 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IlXhJ5B0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233960AbjEIHff (ORCPT + 99 others); Tue, 9 May 2023 03:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjEIHfc (ORCPT ); Tue, 9 May 2023 03:35:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C92C119B3 for ; Tue, 9 May 2023 00:35:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 62F936319A for ; Tue, 9 May 2023 07:35:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA023C433A0 for ; Tue, 9 May 2023 07:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683617730; bh=i6AkqX9OG4urSpbS1xrzYnpDcBb8eJNd6ma8fn40rMc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IlXhJ5B0XdxfUeNt156ZUkJeirPYII3urcHVcT6n8Z6kgly1/sqvJD6PqBxS1/bMq Bru8X5xMZ1isOfEnQ0nHIO7JMmQQti4bdYhfd1jWgxLTWBWR6wBcpbNcCp1LMpTBg/ RSiRRN5q+Xox1lVppn9llbkf9bFjqxz0TuiO85sRp9/paN6z/mnuK/4samE6h5wMrI ZduRlmx4CbZrZ+Fx5OL4YkL4PAY/qyjh7D40D/3EODPA0vKFlIs+LO2azRcvyW9MnP xqfI/eZb4ZqLDQiEgb0vYy6rkEI/hAskWFta2ZM3Zz4zhkMeq1Vqhazyofhp1qjJYQ e90Y/59zg/G5g== Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-9661a1ff1e9so460102166b.1 for ; Tue, 09 May 2023 00:35:30 -0700 (PDT) X-Gm-Message-State: AC+VfDx2DGjOfgVCUFOL/PZkB7lZCCyLzydCNc7ICS2ZbvIdMKUqvuWU fjhS43Jps0BjFLgIdCIlAcUC/JXNLVkyazgVljQ= X-Received: by 2002:a17:907:2ce5:b0:969:9fd0:7ce7 with SMTP id hz5-20020a1709072ce500b009699fd07ce7mr2847749ejc.11.1683617728888; Tue, 09 May 2023 00:35:28 -0700 (PDT) MIME-Version: 1.0 References: <1683614971-10744-1-git-send-email-yangtiezhu@loongson.cn> <68984bbb-4ccc-51f8-7d4b-b1ae08a43c52@loongson.cn> In-Reply-To: <68984bbb-4ccc-51f8-7d4b-b1ae08a43c52@loongson.cn> From: Huacai Chen Date: Tue, 9 May 2023 15:35:04 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Select HAVE_DEBUG_KMEMLEAK to support kmemleak To: Youling Tang Cc: Tiezhu Yang , Catalin Marinas , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Tue, May 9, 2023 at 3:13=E2=80=AFPM Youling Tang wrote: > > Hi, Tiezhu > > On 05/09/2023 02:49 PM, Tiezhu Yang wrote: > > We can see that DEBUG_KMEMLEAK depends on HAVE_DEBUG_KMEMLEAK after > > commit b69ec42b1b19 ("Kconfig: clean up the long arch list for the > > DEBUG_KMEMLEAK config option"), just select HAVE_DEBUG_KMEMLEAK to > > support kmemleak on LoongArch. > > > > Signed-off-by: Tiezhu Yang > > --- > > > > This is based on 6.4-rc1 > > > > arch/loongarch/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig > > index d38b066..1e64edd 100644 > > --- a/arch/loongarch/Kconfig > > +++ b/arch/loongarch/Kconfig > > @@ -90,6 +90,7 @@ config LOONGARCH > > select HAVE_ASM_MODVERSIONS > > select HAVE_CONTEXT_TRACKING_USER > > select HAVE_C_RECORDMCOUNT > > + select HAVE_DEBUG_KMEMLEAK > > select HAVE_DEBUG_STACKOVERFLOW > > select HAVE_DMA_CONTIGUOUS > > select HAVE_DYNAMIC_FTRACE > > > > At the same time, you need to modify the loongarch in arch-support.txt > to ok. Agree, Tiezhu can send a new version. > > BTW, we can submit a separate patch to modify the features already > supported by LoongArch. > > The following features are already supported in LoongArch. I think Youling can send this patch. Huacai > > diff --git > a/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt > b/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt > index bcc29d3aba9a..38a0a54b79f5 100644 > --- a/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt > +++ b/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt > @@ -13,7 +13,7 @@ > | csky: | ok | > | hexagon: | TODO | > | ia64: | TODO | > - | loongarch: | TODO | > + | loongarch: | ok | > | m68k: | TODO | > | microblaze: | TODO | > | mips: | TODO | > diff --git a/Documentation/features/debug/kprobes/arch-support.txt > b/Documentation/features/debug/kprobes/arch-support.txt > index 8a77d62a42c5..aad83b57587a 100644 > --- a/Documentation/features/debug/kprobes/arch-support.txt > +++ b/Documentation/features/debug/kprobes/arch-support.txt > @@ -13,7 +13,7 @@ > | csky: | ok | > | hexagon: | TODO | > | ia64: | ok | > - | loongarch: | TODO | > + | loongarch: | ok | > | m68k: | TODO | > | microblaze: | TODO | > | mips: | ok | > diff --git a/Documentation/features/debug/kretprobes/arch-support.txt > b/Documentation/features/debug/kretprobes/arch-support.txt > index cf4723c5ac55..61380010a4a7 100644 > --- a/Documentation/features/debug/kretprobes/arch-support.txt > +++ b/Documentation/features/debug/kretprobes/arch-support.txt > @@ -13,7 +13,7 @@ > | csky: | ok | > | hexagon: | TODO | > | ia64: | ok | > - | loongarch: | TODO | > + | loongarch: | ok | > | m68k: | TODO | > | microblaze: | TODO | > | mips: | ok | > diff --git > a/Documentation/features/debug/stackprotector/arch-support.txt > b/Documentation/features/debug/stackprotector/arch-support.txt > index 71cd4ba18f7d..4c64c5d596f7 100644 > --- a/Documentation/features/debug/stackprotector/arch-support.txt > +++ b/Documentation/features/debug/stackprotector/arch-support.txt > @@ -13,7 +13,7 @@ > | csky: | ok | > | hexagon: | TODO | > | ia64: | TODO | > - | loongarch: | TODO | > + | loongarch: | ok | > | m68k: | TODO | > | microblaze: | TODO | > | mips: | ok | > > Thanks, > Youling. >