Linux Modules
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Aaron Tomlin <atomlin@atomlin.com>
Cc: arnd@arndb.de, mcgrof@kernel.org, petr.pavlu@suse.com,
	da.gomez@kernel.org, samitolvanen@google.com, neelx@suse.com,
	sean@ashe.io, chjohnst@mail.com, steve@abita.co,
	mproche@mail.com, nick.lane@mail.com, linux-arch@vger.kernel.org,
	linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] init/main: Expose built-in initcalls and blacklist status via debugfs
Date: Thu, 25 Jun 2026 16:50:11 -0700	[thread overview]
Message-ID: <20260625165011.63b47ca601b6f871797d98ac@linux-foundation.org> (raw)
In-Reply-To: <20260510061301.41341-1-atomlin@atomlin.com>

On Sun, 10 May 2026 02:13:01 -0400 Aaron Tomlin <atomlin@atomlin.com> wrote:

> At present, identifying the correct function name to supply to the
> "initcall_blacklist=" kernel command-line parameter requires manual
> inspection of the source code or kernel symbol tables. Furthermore,
> administrators lack a reliable runtime mechanism to verify whether a
> specified built-in module has been successfully blacklisted.

I expect nobody has felt a need for this in their day-to-day work, so
the interest is low.

A detailed description of the use-cases would be of benefit - help
people better understand the value of this to our users.  I suggest you
add this info and send a v2, if motivated.

> To resolve this, introduce a new debugfs interface at
> /sys/kernel/debug/modules/builtin_initcalls. This file enumerates all
> built-in modules alongside their corresponding initialisation callbacks
> (e.g., those specified by module_init()) in a simple format:
> "module_name init_callback".

Isn't this information all available at build time?

Can we extract it and put it in some file somewhere which becomes part
of the distributed kernel package?

Or is it possible to write some userspace application which processes
the files which are typically in the kernel package and which extracts
this info?

> If a built-in module has been actively
> blacklisted, the entry is explicitly appended with a " [blacklisted]"
> suffix.

Can this be added to the /proc/modules output in some fashion?  Perhaps
just add TAINT_BLACKLISTED and we get this info almost for free?

      parent reply	other threads:[~2026-06-25 23:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-10  6:13 [PATCH] init/main: Expose built-in initcalls and blacklist status via debugfs Aaron Tomlin
2026-05-11 20:34 ` Aaron Tomlin
2026-06-13 21:05 ` Aaron Tomlin
2026-06-17 12:39 ` Petr Pavlu
2026-06-20 23:11   ` Aaron Tomlin
2026-06-25 23:50 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260625165011.63b47ca601b6f871797d98ac@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=atomlin@atomlin.com \
    --cc=chjohnst@mail.com \
    --cc=da.gomez@kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=mproche@mail.com \
    --cc=neelx@suse.com \
    --cc=nick.lane@mail.com \
    --cc=petr.pavlu@suse.com \
    --cc=samitolvanen@google.com \
    --cc=sean@ashe.io \
    --cc=steve@abita.co \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox