Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5524205pxb; Mon, 14 Feb 2022 00:45:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJygdnnpXx/OBJgf1f6GS3pNleAiF8aNr3siOgt8JxuVVnNGWO1Pt925y9QL0PL2BNEPVXyy X-Received: by 2002:a05:6402:13c2:: with SMTP id a2mr1000201edx.272.1644828314929; Mon, 14 Feb 2022 00:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644828314; cv=none; d=google.com; s=arc-20160816; b=Zyq9BN8ew5XUMjJK46AfPhJwUR4ZQ7+VP2lepCb9RQTNz2azqO9br8jOG21BEwVZ9Z DvRIrAOrmCSnOo4bw3EO5S4DZaUMs/l6DZALuQT8nooz/WVB2SfrOPHXH/zBRK73/Frm GcEiJEBZmpWakfJe0mVR2liTti8Cx36jcnZ25LZYCyo6fdjfNIgVlFmPr4ZVzznk4J2f xLku1JH0BIIVQvA4mvJF3rqV/VB6BkHFfAe5VoFQYpNmjpmDM4JuRNwFvOn/R2kqjCXt oky9l6xjenHaunLARBcE/NA2M5ZPSsXB83QqD7xHWVfYqJ/ZCdlb9rdqa3U9iOo25r7G kLyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6GDOxQGVDeSQrF28P9dVTC7+ArRcSB51YDX/25gUBmk=; b=UDjC2pfEhaORAQ8lZVnExIhhQIyxTfz5E0EQ+cGYWwHO9zncx7JpPCDBysF+J1msaz UuR/gKbOSyWcjm+pXRYaZlOOsIikcR/9dKlcYHLDnLIyBUxg0iUIdvRPeaY3+opg6pg9 LktWHZaT9SZQwa5hgOomcz6T01xbPAa9h+PVaujatiOGCEob4V8BoIRO7LtY9Ag9alp6 btPo1s25JvHhFuFOfgAK/DfCxWNG9IjfdxICIR2I9R6DNylqeTAIf3Z4VgZ/+1DGtcrZ X2gmTjA15cEuhbC9m7IXfSSwSCiCeJ6Gu1vGkRrPFtoMRjwXlirR8fBkPME6Zmt15dcK j6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CwIDRfHg; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7si18386857ejh.105.2022.02.14.00.44.49; Mon, 14 Feb 2022 00:45:14 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CwIDRfHg; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236405AbiBMOOz (ORCPT + 99 others); Sun, 13 Feb 2022 09:14:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbiBMOOy (ORCPT ); Sun, 13 Feb 2022 09:14:54 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B8635F255 for ; Sun, 13 Feb 2022 06:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644761687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6GDOxQGVDeSQrF28P9dVTC7+ArRcSB51YDX/25gUBmk=; b=CwIDRfHgHhKjzmg9E9encOU8yHIfqWMtzOjw2N5E0ypAdi/J9BJNYmfGVfe+uZe2zeSp8r WAxou3qgldiG4b7aK07DV3wUiU5ToiHmrFXZ353svfVYE1WoOdkQJXbGB6dSHJzMpTgLS9 nHkd3bXicq+1rsVl6NG54gDDB9WANKM= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-155-bucRmETNPril7n4yT6zvlA-1; Sun, 13 Feb 2022 09:14:46 -0500 X-MC-Unique: bucRmETNPril7n4yT6zvlA-1 Received: by mail-lf1-f69.google.com with SMTP id t27-20020ac24c1b000000b00438a5486bceso4403580lfq.21 for ; Sun, 13 Feb 2022 06:14:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6GDOxQGVDeSQrF28P9dVTC7+ArRcSB51YDX/25gUBmk=; b=i49vqX1L1Ybz+nd7hVuhFnghZi6AYCbDmXOUxbULTkr3t/oiVEulEiwNSu3u0Lchky RDVz4V/RVeEkhN6OGkvPWIsb7JpYWPdKTTuy4oeO6T2NzWxQAEwGA11RaHDoEHMmgCcT 8Cnkfassc+cRqT+s+j++loSa2ouFB50zwOVN761+7FU9d9X/Yfub/lWpDxwY1OKZwNuO GWgAs6b8qHIuVWeLNJIa6sBKJ2Bm/Vb852KpzctJ2VBOYKwvLsmVJ7SozCuOtp0oux3A 9dDk7eRIHe9Bo85CsxIigzLTPAIL4c5KtksFIPsUsp0ma6b5wPhYTf4/fGtvJmbtdFJ/ y7fg== X-Gm-Message-State: AOAM530x3Txs1kkR6hEKSkMUnVpB9IDpKD0+ZTB+Il+0crtfRlF2zH/E afP4Pxu6gLIfpFVStp7kqbkpAgid4xQC/qOo6vv0SMFyySQZxmXPOcSUOM/zfRHvr46/wZioVdw 43pcQv+OzO/TxAXGx+zVm7C0zObKq9Pj7EkEknzE= X-Received: by 2002:a05:6512:15a6:: with SMTP id bp38mr306548lfb.118.1644761685150; Sun, 13 Feb 2022 06:14:45 -0800 (PST) X-Received: by 2002:a05:6512:15a6:: with SMTP id bp38mr306524lfb.118.1644761684887; Sun, 13 Feb 2022 06:14:44 -0800 (PST) MIME-Version: 1.0 References: <20220209171118.3269581-1-atomlin@redhat.com> <20220209171118.3269581-2-atomlin@redhat.com> <3a3cc6b3-7bac-3cfd-ce56-7c71abb2de60@csgroup.eu> In-Reply-To: <3a3cc6b3-7bac-3cfd-ce56-7c71abb2de60@csgroup.eu> From: Aaron Tomlin Date: Sun, 13 Feb 2022 14:14:33 +0000 Message-ID: Subject: Re: [PATCH v5 12/13] module: Move kdb_modules list out of core code To: Christophe Leroy Cc: "mcgrof@kernel.org" , "cl@linux.com" , "pmladek@suse.com" , "mbenes@suse.cz" , "akpm@linux-foundation.org" , "jeyu@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-modules@vger.kernel.org" , "live-patching@vger.kernel.org" , "atomlin@atomlin.com" , "ghalat@redhat.com" , "allen.lkml@gmail.com" , "void@manifault.com" , "joe@perches.com" , "msuchanek@suse.de" , "oleksandr@natalenko.name" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 Thu 2022-02-10 14:05 +0000, Christophe Leroy wrote: > > diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c > > index 0852a537dad4..f101f5f078f4 100644 > > --- a/kernel/debug/kdb/kdb_main.c > > +++ b/kernel/debug/kdb/kdb_main.c > > @@ -59,6 +59,11 @@ EXPORT_SYMBOL(kdb_grepping_flag); > > int kdb_grep_leading; > > int kdb_grep_trailing; > > > > +#ifdef CONFIG_MODULES > > +extern struct list_head modules; > > Should go in module.h I disagree. Let's keep it restricted somewhat. The list of loaded/or added modules is not widely used. > > +struct list_head *kdb_modules = &modules; /* kdb needs the list of modules */ > > Should be static and should be removed from kernel/debug/kdb/kdb_private.h Agreed. It is only used in kernel/debug/kdb/kdb_main.c. > > diff --git a/kernel/module/internal.h b/kernel/module/internal.h > > index 52d30bf6d6b0..c49b4900b30b 100644 > > --- a/kernel/module/internal.h > > +++ b/kernel/module/internal.h > > @@ -225,6 +225,7 @@ static int mod_sysfs_setup(struct module *mod, > > { > > return 0; > > } > > + > > This should go in previous patch if needed (patch 11 sysfs) Agreed. Kind regards, -- Aaron Tomlin