From: "Dorau, Lukasz" <lukasz.dorau@intel.com>
To: "Williams, Dan J" <dan.j.williams@intel.com>
Cc: linux-nvdimm <linux-nvdimm@lists.01.org>
Subject: RE: nfit_test: issue #3: BUG: kernel NULL pointer dereference, address: 0000000000000018
Date: Tue, 17 Mar 2020 09:09:07 +0000 [thread overview]
Message-ID: <SN6PR11MB286403BE843E5B13813825E396F60@SN6PR11MB2864.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAPcyv4iAJbZpKYzA5SgGcH+dkPQyHkxgGgufTd_YnSZ5bF_X7A@mail.gmail.com>
On Tuesday, March 17, 2020 9:26 AM Dan Williams <dan.j.williams@intel.com> wrote:
> On Mon, Mar 16, 2020 at 1:58 AM Dorau, Lukasz <lukasz.dorau@intel.com> wrote:
> > The above error:
> > "nfit_test: Unknown symbol acpi_nfit_test (err -2)"
> > I have hit after having removed the 'nfit_test' module:
> > $ sudo modprobe -v -r nfit_test
> > and having tried to reinsert it:
> >
> > $ sudo modprobe -v nfit_test
> > insmod /lib/modules/5.6.0-rc1-13504-
> g7b27a8622f80/kernel/drivers/acpi/nfit/nfit.ko.xz
> > insmod /lib/modules/5.6.0-rc1-13504-g7b27a8622f80/extra/test/nfit_test.ko.xz
> > modprobe: ERROR: could not insert 'nfit_test': Unknown symbol in module, or
> unknown parameter (see dmesg)
> >
> > because 'modprobe' has inserted the production version of the 'nfit' driver
> (kernel/drivers/acpi/nfit/nfit.ko.xz)
> > instead of the test one (extra/nfit.ko.xz).
>
> Right, that's broken, but I'm not sure why.
>
> >
> > Regarding 'depmod' I have run the following commands to build and install the
> kernel and the modules:
> > $ make
> > $ make M=tools/testing/nvdimm
> > $ sudo make M=tools/testing/nvdimm modules_install # ---> it runs depmod
> > $ sudo make modules_install # ---> it runs depmod
> > $ sudo make install
>
> What distro? On Fedora rawhide I'm doing the same steps and end up with:
Fedora release 31 (Thirty One)
>
> # cat /lib/modules/$(uname -r)/modules.dep | grep nfit_test.ko
> extra/test/nfit_test.ko: extra/dax_pmem.ko extra/dax_pmem_core.ko
> extra/device_dax.ko extra/nd_pmem.ko extra/nd_btt.ko extra/nfit.ko
> extra/libnvdimm.ko
> kernel/security/keys/encrypted-keys/encrypted-keys.ko
> kernel/security/keys/trusted-keys/trusted.ko
> extra/test/nfit_test_iomap.ko kernel/drivers/char/tpm/tpm.ko
>
> ...i.e. the test version "extra/nfit.ko" in the dependency chain.
On Fedora release 31 (Thirty One) I have the production version ("kernel/drivers/acpi/nfit/nfit.ko.xz") in the dependency chain:
$ cat /lib/modules/5.6.0-rc1-13504-g7b27a8622f80/modules.dep | grep nfit_test.ko
extra/test/nfit_test.ko.xz: extra/test/nfit_test_iomap.ko.xz kernel/drivers/acpi/nfit/nfit.ko.xz kernel/drivers/nvdimm/libnvdimm.ko.xz kernel/security/keys/encrypted-keys/encrypted-keys.ko.xz kernel/security/keys/trusted-keys/trusted.ko.xz kernel/drivers/char/tpm/tpm.ko.xz kernel/drivers/char/hw_random/rng-core.ko.xz
I do not want to use Fedora rawhide, because AFAIK ndctl does not compile on it.
All I need now is to know the distro & kernel the 'nfit_test' module works well with.
Do you know them?
--
Lukasz
_______________________________________________
Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org
To unsubscribe send an email to linux-nvdimm-leave@lists.01.org
next prev parent reply other threads:[~2020-03-17 9:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-12 14:59 nfit_test: issue #3: BUG: kernel NULL pointer dereference, address: 0000000000000018 Dorau, Lukasz
2020-03-12 15:06 ` Dorau, Lukasz
2020-03-12 17:08 ` Dan Williams
2020-03-13 10:06 ` Dorau, Lukasz
2020-03-13 15:49 ` Dan Williams
2020-03-16 8:58 ` Dorau, Lukasz
2020-03-17 8:26 ` Dan Williams
2020-03-17 9:09 ` Dorau, Lukasz [this message]
2020-03-17 16:14 ` Dan Williams
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=SN6PR11MB286403BE843E5B13813825E396F60@SN6PR11MB2864.namprd11.prod.outlook.com \
--to=lukasz.dorau@intel.com \
--cc=dan.j.williams@intel.com \
--cc=linux-nvdimm@lists.01.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).