From: Praveen Kumar <kpraveen.lkml@gmail.com>
To: Greg KH <greg@kroah.com>
Cc: kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org
Subject: Re: /proc/modules not showing any output
Date: Wed, 19 Dec 2018 21:01:11 +0530 [thread overview]
Message-ID: <CABcWhv4794moz7PZxmzJMySpJnjZR4ikGwHVcicp0-4PWOHmig@mail.gmail.com> (raw)
In-Reply-To: <20181219150604.GB25653@kroah.com>
On Wed, Dec 19, 2018 at 8:36 PM Greg KH <greg@kroah.com> wrote:
>
> On Wed, Dec 19, 2018 at 06:52:39PM +0530, Praveen Kumar wrote:
> > Hi All,
> >
> > Compiled the vanila kernel 4.20.0-rc6 build, and was trying to get
> > module information, but /proc/modules is not showing any output ( both
> > on arm64 and x86_64 )
> >
> > root@ubuntu:~# uname -a
> > Linux ubuntu 4.20.0-rc6-00082-g65e08c5e8631 #7 SMP PREEMPT Fri Dec 14
> > 15:54:30 IST 2018 aarch64 aarch64 aarch64 GNU/Linux
> >
> > root@ubuntu:~# cat /proc/modules
> > root@ubuntu:~#
> >
> > Tried with older version 4.4.162-78-default modules were properly shown.
> >
> > Can you please help if there is something which I am missing during
> > compilation or is there any potential bug here ? Thanks in advance.
>
> Are you sure your .config file has enabled modules? Have you actually
> loaded any? If you do not load any, nothing will show up in that proc
> file :)
>
Thanks Greg for the reply.
I think I did compile with enabled modules.
kern-xen-dev:/mnt/kernel/linux # cat .config | grep MODULE
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y
CONFIG_MODULES=y <<<<<<<<
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
# CONFIG_MODULE_COMPRESS is not set
CONFIG_MODULES_TREE_LOOKUP=y
I added a new kernel module and was able to see the module added.
kern-xen-dev:/mnt/kernel/linuxfs # insmod linuxfs.ko
kern-xen-dev:/mnt/kernel/linuxfs # cat /proc/modules
linuxfs 16384 0 - Live 0xffffffffc01c1000 (O)
I think, on my test machine, by default, there are many modules which
get added during boot up, which with vanilla kernel is not happening.
Thanks for your input.
Regards,
~Praveen.
next prev parent reply other threads:[~2018-12-19 15:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-19 13:22 /proc/modules not showing any output Praveen Kumar
2018-12-19 15:06 ` Greg KH
2018-12-19 15:31 ` Praveen Kumar [this message]
[not found] ` <CAFSeFg9dyKEry_pbnn7395nFtOYixbgYuAunvoNa5roe9dVUTQ@mail.gmail.com>
2018-12-19 16:17 ` Praveen Kumar
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=CABcWhv4794moz7PZxmzJMySpJnjZR4ikGwHVcicp0-4PWOHmig@mail.gmail.com \
--to=kpraveen.lkml@gmail.com \
--cc=greg@kroah.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).