Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5254703imu; Wed, 19 Dec 2018 08:06:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/UwYFhonkGRDW3x5l7oxQi3yGYrtwJfkjM6BODphWc9nJ/RPVkLLSLsX/jVsJvsAAWv4y/z X-Received: by 2002:a62:442:: with SMTP id 63mr20555854pfe.156.1545235574680; Wed, 19 Dec 2018 08:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545235574; cv=none; d=google.com; s=arc-20160816; b=z5q4kgf2ma0mBvizrlj2ST6hJDBT/EMZNEpNTtgXIH9b2EeH+1G9IAhB93PLMxn2wJ OMX2wWs25osqQNe3Cz85J5aBv/t5DUBLNCc/3JKMjOkIAjZVoG9vTQRoy4d4uWG5EGbc YMB4E7bwvTi+qgE+8ii0EDZ/wY630tL2P+PACxH4BiZ1hU87AW9+0gSftDNweajMCjXI PFcmytTANnIdTjWj+GXJNF6qOlZexilRJvL/x6vGmvOcx2w8aJzsyY0M9Utuy/57gs6k 9kuPU/cRymCfWKnlKym14qHoXzmEJgDulWuzP1J4SblAIK6BjD5J/SJ2NsK3RUGnidfe xYWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Eddjy1yIu1eEGnkwlfQj42NuIjTYKtmeSXVcn3/nUZQ=; b=jOian+63vcEniS/D7rN4+Pq63ys3iXSW+P/n9BUCn6zazD6Iwr95NOUGQV1+2SqAiM TN/DZo2NViupJJ3IsjJdtCZeb7WoBmju/s9mlVtoULbr6RiS70EMc0yGTwOlBoH08OCX D8F6scLZ41NxnuVFV6VKfz0NbxvNG6iywqQq+1ZcnQIQQ3jrxR8RRy0hYtXS7afItwNe PALFdaVpayv5yzlWOokhXpUjuZLFzn8dOF6PYUrAfN+wkFUH7CpHuUuyN41v4ywg9lGr VrPGa4etmpeiVCfKd2YOyJ73giQE08E64Ov7ZAgMdxbD/o5KpuAkQ7nsZQ5nIDpNAIa1 vmMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nnqJnXef; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si13758852pls.408.2018.12.19.08.05.47; Wed, 19 Dec 2018 08:06:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nnqJnXef; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729824AbeLSPbn (ORCPT + 99 others); Wed, 19 Dec 2018 10:31:43 -0500 Received: from mail-io1-f47.google.com ([209.85.166.47]:35335 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbeLSPbm (ORCPT ); Wed, 19 Dec 2018 10:31:42 -0500 Received: by mail-io1-f47.google.com with SMTP id o13so200720ioh.2 for ; Wed, 19 Dec 2018 07:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:sender:from:date:message-id :subject:to:cc; bh=Eddjy1yIu1eEGnkwlfQj42NuIjTYKtmeSXVcn3/nUZQ=; b=nnqJnXefzaPmvQRuHa/IcjOJ6CdRR5GP+dz9+6ZGPpEAjVKqF0a9HmvSXVhdlIqTn0 /1ZjMHEC4+YP+ZO8fT6oONj+ZWUvzSYfl5hi4ny4456plYejr/26Vy5oh3JqjlZZ05Lo JwpHA2N52Y8mWvo+uklz83kH+m4fSpiXktO+iduRc9Q7P1P1Y0gICeHntzMcLq7ITakB 5bdslW3nf1+C8/QzK9M/yPL4C2xwKnidVBupJ9RNqtjBG3hv+bgcwM0XKjFJezNSdyqC ND8YCpBx+Z8olgjsKWE97lzVKPAkoe0vKKNPs6gI8OpjnRTcVMMysojhSis/00jfu2p4 bmqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:sender:from :date:message-id:subject:to:cc; bh=Eddjy1yIu1eEGnkwlfQj42NuIjTYKtmeSXVcn3/nUZQ=; b=JEdAe7v2UQwv/q0d1pi5lDVOMmbfktNHVmBRqVAttIrOKUhjLH6iOCpNBm09peSB2f Ztawu+N59lwCPU6fypeY/ktXqbUBl2uuOj25+0xM/8d370qx/fuKPp6MpVJmSFLiMNl/ qN6+QRx52/5d0OkVSLuHEAXo4UHilS65uU7nM6kXd0pAg7CYPzYcXUON2STRiDCCAl86 yVQg/VkPwHEOOBUw+40Fyku3e9GlcCrDHY8E9qkaqoZekSVBJhnTx8yuE4ErBx73MMwR P0r1Gy/cbCrTVQ/lBri2ymCOekf5UwV4hLQAEAZEy9ZTHULAGOFDOcayVGH8IF5iEhhh n8UA== X-Gm-Message-State: AA+aEWYf81CunPBEU0jscB+8L7/OVE5C7EGJGqKLnm5UqaTaAbbAxtKh BC9QvntER6Pizdy07mO6rS8FRcZmeSLGqpuegpg= X-Received: by 2002:a6b:1583:: with SMTP id 125mr18203422iov.102.1545233501593; Wed, 19 Dec 2018 07:31:41 -0800 (PST) MIME-Version: 1.0 References: <20181219150604.GB25653@kroah.com> In-Reply-To: <20181219150604.GB25653@kroah.com> X-Google-Sender-Delegation: praveenkumar1511@gmail.com From: Praveen Kumar Date: Wed, 19 Dec 2018 21:01:11 +0530 X-Google-Sender-Auth: oHu8Mu3nP5kIyriqG_uhocKxtGE Message-ID: Subject: Re: /proc/modules not showing any output To: Greg KH Cc: kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 19, 2018 at 8:36 PM Greg KH 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.