I'm experiencing segmentation faults with multiple system commands after mounting a share using smbfs.o.
As you can see below df works fine until I smbmount a network share, the mounted share seems to work nevertheless.
Code:
[admin@ROUTER root]$ insmod /opt/bin/smbfs.o
[admin@ROUTER root]$ lsmod |grep smbfs
smbfs 46928 0 (unused)
[admin@ROUTER root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part2 988244 198276 739768 21% /tmp/harddisk
/dev/discs/disc0/part3 152349444 10096224 134514308 7% /tmp/harddisk/part1
/dev/discs/disc0/part2 988244 198276 739768 21% /opt
/dev/discs/disc0/part3 152349444 10096224 134514308 7% /mnt
[admin@ROUTER root]$ /opt/bin/smbmount //shift/500Gig /opt/shift/500Gig -o rw,username=backup,password=***
[admin@ROUTER root]$ lsmod |grep smbfs
smbfs 46928 1
[admin@ROUTER root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part2 988244 198276 739768 21% /tmp/harddisk
Segmentation fault
[admin@ROUTER root]$ ls -all /opt/shift/500Gig
drwxr-xr-x 1 admin root 4096 Apr 1 21:58 .
drwxr-xr-x 4 admin root 4096 Apr 1 21:56 ..
drwxr-xr-x 1 admin root 4096 Mar 30 22:02 Test
The mount seems to break other commands as well.
Tune2fs for instance fails to do a simple -l /dev/discs/disc/part2, immediately exiting with a segmentation fault.
Does anyone have an idea what I'm doing wrong?
Here is the relevant exception as found in the systemlog...
Code:
Reserved instruction in kernel code in traps.c::do_ri, line 642:
$0 : 00000000 10009c00 c0171fc8 c01724d0 81ba7f60 8107f520 00000000 00000086
$8 : 00000077 00000002 00000001 66696873 80793ba4 10010f12 80793ba0 0000000a
$16: 00000003 801ef8d0 8187c000 81ba7f60 8107f520 8187cfee 00000000 8150e200
$24: 00000000 2ac111e0 81dbe000 81dbfe78 81ba7f78 80052474
Hi : 00000000
Lo : 000009c0
epc : c0171fc8 Not tainted
Status: 10009c03
Cause : 00000028
Process df (pid: 222, stackpage=81dbe000)
Stack: 00000000 81914820 8107e200 00000000 8187c000 00001000 81ba7f60
00000000 8107f520 00000060 000000ee 10010f12 00000012 800541f4 2ac61f10
0050d0d2 00000015 00000000 00000009 00000000 0000000a 00000000 00000100
8150e1e0 ffffffea 10010f00 7fff7e98 10011000 00000015 00000000 10008d48
800369f8 00000000 00000000 000000ff 00000000 2ac61f10 00000001 2ac61f10
2ac5e9f4 ...
Call Trace: [<800541f4>] [<800369f8>] [<800085c4>] [<80008730>]
Code: 695f6574 65646f6e 00000000 <73726576> 006e6f69 396e6977 00000035 61646c6f 00727474