Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp316361rwd; Wed, 17 May 2023 19:19:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Jwa0jbi8HPnLV52Z2jo4opLmhoTawOTcNswzs1iGI3hFxuXQvMtnfssTwPAJD4D+/hxvr X-Received: by 2002:a05:6a00:21cd:b0:643:849a:dd06 with SMTP id t13-20020a056a0021cd00b00643849add06mr2339591pfj.34.1684376365815; Wed, 17 May 2023 19:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684376365; cv=none; d=google.com; s=arc-20160816; b=NhdikCWFuGbJhgsicXgPT/djMWQgtk8rYYlZNnKby8Y3PIKyTh3sv83hNiG9THRCzM MMFtnh1kBvSXeUV75v2bTvXJckN+dQyDSMCIY3CaeLZNoTyYWUk4DC1APuvX+5Q6cuzw U+bS0NEH+jvLjkRUUbS653ZRj1V1Z9T98mcAIF7h6btHwo/M67tT5BHHHCmKydAhAZrs KVKTVywYT71wd7oa95QFov790f2nJhXomLHBrm8ycF4WJuKryxaiBFcD457CgGkLZ6AW o/jRLVenNI1G0+wfJ9r5qwuK725Ub5LsZUwsteYGSBtjx1ZnLtknjlVWfJx5fru3OJz9 8JAQ== 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=wk6iVZX89YFLS/wltSWrJHAHEeL8ORSmNGUbdIoH1EM=; b=mvvOJv8pl9PJaERgIdVOxSfOHiuLDlmVAa+ZuTVMtNWx9NE6brnGhh/4qyfPBA9iDW Oqi+7BLnvyQjq4YQAU3Un/1xa0mEl3WNB8BPBsU3cBJcBHBS882+1lUm4/Gs9+x4vZEF iq9EX+ZOX7wSinIZQIohTADTQ1TyMm+p3J0DBXLNGWEbuze+iz40ZQv6CiHxnX17kV5n 9MZ5DF0wsEG2FOK5+6aqfJqMaovTmtxzJRCKuDxin8UTISzXfpFTUeZQqmEHVlcggQGW IKbUd0IneyDh3vLo37HeoOaZBk315+UoqQVXrM13cce6iLf9c8DnGPNPbgZ0hmrdRD3L Gm/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VdbOK9dZ; 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 y24-20020a63b518000000b00528cfd22852si316523pge.178.2023.05.17.19.19.11; Wed, 17 May 2023 19:19:25 -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=VdbOK9dZ; 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 S229550AbjERCLH (ORCPT + 99 others); Wed, 17 May 2023 22:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjERCLG (ORCPT ); Wed, 17 May 2023 22:11:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA39630F5; Wed, 17 May 2023 19:11:04 -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 26FFB64A49; Thu, 18 May 2023 02:11:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A693C4339B; Thu, 18 May 2023 02:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684375863; bh=E52TVkteomz/h6pUEBvlWgEUbOD2I9Bt/bs3FHGid+s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VdbOK9dZbsGcZ8+H5Jkf6/zdKQOX8dhO8VnlbEquipFI08HW9uiK4J8N2s/LEqMAd wu1FHBx+SAkq/09gTMKFhWGecYgNVIlxN9F35PxqL7k6vCNMLsvgFDj7+b5Jwe3BsH BkOrQSsMvmHjN2pdArq3pAZePD9kmdgLAOKIZIQhiU4muhwVebz2mX5MIrkXj4o42M sPc0xjBD/Gb8V450hiapssA1IH4rJ1KhlTI7eJQwxnh7EFgUu5Ulo2eRpsnArT21XR /yCIQAxNYTgXgRR4xLwr80H6l+IodIYC8624PHmFrLqJT2cKvfUueX2LZUQyXJo2/3 5E5vlHrG/Dlcg== Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-510b4e488e4so2659002a12.3; Wed, 17 May 2023 19:11:03 -0700 (PDT) X-Gm-Message-State: AC+VfDzkoSOz8QQMhL3PPb1Zdt5g1vXRv5BEfN31pHvz1ig8GhuaaEKW VsljrcRboUk5IAHw+zIcGRawclqJfrQCeIa9Frg= X-Received: by 2002:a17:907:6d15:b0:96a:bfc:7335 with SMTP id sa21-20020a1709076d1500b0096a0bfc7335mr27608366ejc.53.1684375861787; Wed, 17 May 2023 19:11:01 -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: From: Huacai Chen Date: Thu, 18 May 2023 10:10:50 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Select HAVE_DEBUG_KMEMLEAK to support kmemleak To: Tiezhu Yang Cc: Youling Tang , Catalin Marinas , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Jonathan Corbet , linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Queued, thanks. Huacai On Tue, May 9, 2023 at 3:43=E2=80=AFPM Tiezhu Yang = wrote: > > Cc: Jonathan Corbet > linux-doc@vger.kernel.org > > On 05/09/2023 03:13 PM, 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. > > > > BTW, we can submit a separate patch to modify the features already > > supported by LoongArch. > > > > The following features are already supported in LoongArch. > > > > diff --git > > a/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt > > b/Documentation/features/debug/kprobes-on-ftrace/arch-support.txt > ... > > 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 > ... > > 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 > ... > > 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 > > Thank you, I have already prepared a patch to update the docs, > but some more features will be added on LoongArch in the following > merge window, I am not sure what is the proper time to send the > following patch, maybe two months later, or right away, maybe > Jonathan can give some suggestions. > > Documentation/features: Refresh LoongArch support files > > Run the refresh script [1] to document the recent feature additions > on LoongArch. > > [1] Documentation/features/scripts/features-refresh.sh > > Thanks, > Tiezhu > >