On Thu, Mar 12, 2020 at 7:38 AM Dorau, Lukasz <[email protected]> wrote:
>
> Hi,
>
> Inserting the 'nfit_test' module in a natural way fails with the following 
> error:
>
> $ sudo modprobe -v nfit_test
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/kernel/drivers/char/hw_random/rng-core.ko.xz
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/kernel/drivers/char/tpm/tpm.ko.xz
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/kernel/security/keys/trusted-keys/trusted.ko.xz
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/kernel/security/keys/encrypted-keys/encrypted-keys.ko.xz
> install /usr/bin/ndctl load-keys ; /sbin/modprobe --ignore-install libnvdimm 
> $CMDLINE_OPTS
> No TPM handle discovered.
> failed to open file /etc/ndctl/keys/nvdimm-master.blob: No such file or 
> directory
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/kernel/drivers/nvdimm/libnvdimm.ko.xz
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/kernel/drivers/acpi/nfit/nfit.ko.xz
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/extra/test/nfit_test_iomap.ko.xz
> insmod 
> /lib/modules/5.6.0-rc1-bb-13504-g7b27a8622f80/extra/test/nfit_test.ko.xz
> modprobe: ERROR: could not insert 'nfit_test': Unknown symbol in module, or 
> unknown parameter (see dmesg)

Yes, you're environment is not being careful to exclude the production
version of the modules from being loaded. The ndctl unit test core
also sanity checks nfit_Test and reports the collisions before running
tests. See nfit_test_init():

    https://github.com/pmem/ndctl/blob/master/test/core.c#L119

I'd recommend at least running:

    make TESTS=libndctl check

...from latest ndctl.git to sanity check your nfit_test module
dependencies before trying to load it manually.

See the troubleshooting document:

    https://github.com/pmem/ndctl#troubleshooting

...for other tips about how to prevent the production modules from loading.
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to