#40 kmod-fs-nfsd's nfsd.ko crashes on Unknown symbol __stack_chk_guard

Closed
opened 6 years ago by kabo · 2 comments
kabo commented 6 years ago

I've installed kmod-fs-nfsd and nfs-kernel-server. nfsd is enabled and tries to autostart on boot. But I get this from dmesg:

[   48.786469] nfsd: Unknown symbol __stack_chk_guard (err 0)
[   48.798483] nfsd: Unknown symbol __stack_chk_fail (err 0)
[   48.843266] nfsd: Unknown symbol __stack_chk_guard (err 0)
[   48.855385] nfsd: Unknown symbol __stack_chk_fail (err 0)
[   48.901988] nfsd: Unknown symbol __stack_chk_guard (err 0)
[   48.914177] nfsd: Unknown symbol __stack_chk_fail (err 0)
[   48.958916] kmodloader: 1 module could not be probed
[   48.969275] kmodloader: - nfsd - 0
# insmod nfsd.ko
failed to insert /lib/modules/4.4.108-gnu/nfsd.ko
# uname -a
Linux libreNAS 4.4.108-gnu #0 SMP Mon Jan 1 02:50:55 2018 mips GNU/Linux

Should the kernel or nfsd.ko be compiled with some other options, like -fno-stack-protector or -fstack-protector-all?

I'm building from v1.4.2.

I've installed `kmod-fs-nfsd` and `nfs-kernel-server`. `nfsd` is enabled and tries to autostart on boot. But I get this from `dmesg`: ``` [ 48.786469] nfsd: Unknown symbol __stack_chk_guard (err 0) [ 48.798483] nfsd: Unknown symbol __stack_chk_fail (err 0) [ 48.843266] nfsd: Unknown symbol __stack_chk_guard (err 0) [ 48.855385] nfsd: Unknown symbol __stack_chk_fail (err 0) [ 48.901988] nfsd: Unknown symbol __stack_chk_guard (err 0) [ 48.914177] nfsd: Unknown symbol __stack_chk_fail (err 0) [ 48.958916] kmodloader: 1 module could not be probed [ 48.969275] kmodloader: - nfsd - 0 ``` ``` # insmod nfsd.ko failed to insert /lib/modules/4.4.108-gnu/nfsd.ko ``` ``` # uname -a Linux libreNAS 4.4.108-gnu #0 SMP Mon Jan 1 02:50:55 2018 mips GNU/Linux ``` Should the kernel or nfsd.ko be compiled with some other options, like `-fno-stack-protector` or `-fstack-protector-all`? I'm building from v1.4.2.
RISCI_ATOM commented 6 years ago
Collaborator

Since the libreCMC project itself does not have any hardware for testing or release maintenance, support provided here is going to be limited.

I have tested NFS support on AR71xx, x86_64 and sunxi targets and it does work.

To figure out what is going on, I'm going to need a few more pieces of information :

  • On what distro did you build libreCMC?
  • Where did you obtain libreCMC (was it from the OEM or from the libreCMC source repository)?
  • Did you make sure to install the package feed src. repository before configuring and building libreCMC?
  • How were these modules and packages installed (were they built into the final image or installed using packages)?
Since the libreCMC project itself does not have any hardware for testing or release maintenance, support provided here is going to be limited. I have tested NFS support on AR71xx, x86_64 and sunxi targets and it does work. To figure out what is going on, I'm going to need a few more pieces of information : * On what distro did you build libreCMC? * Where did you obtain libreCMC (was it from the OEM or from the libreCMC source repository)? * Did you make sure to install the package feed src. repository before configuring and building libreCMC? * How were these modules and packages installed (were they built into the final image or installed using packages)?
kabo commented 6 years ago
Poster

This was built from libreCMC v1.4.2. packages were installed using opkg install

I've tested including nfs-kernel-server in make menuconfig and I no longer get the error. So maybe some sort of kernel version mismatch?

This was built from libreCMC v1.4.2. packages were installed using `opkg install` I've tested including `nfs-kernel-server` in `make menuconfig` and I no longer get the error. So maybe some sort of kernel version mismatch?
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.