Bug 167362 - [fusefs] Reproduceble Page Fault when running rsync over sshfs/encfs.
Summary: [fusefs] Reproduceble Page Fault when running rsync over sshfs/encfs.
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-27 16:00 UTC by Eric Crews
Modified: 2019-04-03 15:57 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Crews 2012-04-27 16:00:24 UTC
I mount a directory from a remote server via sshfs to my zpool partition.  Next I open an encrypted container in the sshfs mounted directory with encfs. Finally, when I attempt to rsync data into the unencrypted encfs mounted container the system immediately throws a Page Fault and totally freezes up.  Even the core dump fails to complete.  This is all the information( from the terminal screen ) of the fault I have.

****************************************************
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address     = 0x0
fault code                = supervisor read instruction, page not present
instruction pointer       = 0x20 :0x0
stack pointer             = 0x28 :0xffffff80559cdad0
frame pointer             = 0x28 :0xffffff80559cdb20
code segment              = base rx0, limit 0xffffff, type 0x1b
                          = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags          = interrupt enabled, resume, IOPL = 0
current process           = 1632 (rsync)
trap number               = 12
panic: page fault
cupid = 1
KDB: stack backtrace:
#0 0xffffffff808680fe at kdb_backtrace+0x5e
#1 0xffffffff80832cb7 at panic+0x187
#2 0xffffffff80b18400 at trap_fatal+0x290
#3 0xffffffff80b18749 at trap_pfault+0x1f9
#4 0xffffffff80b18c0f at trap+0x3df
#5 0xffffffff80b0313f at calltrap+0x8
#6 0xffffffff80b17cf0 at amd64_syscall+0x450
#7 0xffffffff80b03427 at Zfast_syscall+0xf7 
**********************************************************

I have tried this on both a zpool and a zpool on top of geli containers and gotten the same page fault every time.

I have previously done this same procedure on Ubuntu and Gentoo servers with no problems.

How-To-Repeat: sshfs <user>@<remote Server>:/home/<user> /mnt/archive

encfs -S /mnt/archive/.crypt /archive

rsync -avzqrpogtu /stuff /archive
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2012-04-27 17:08:54 UTC
Responsible Changed
From-To: freebsd-bugs->gnn

fuse maintianer
Comment 2 George V. Neville-Neil freebsd_committer freebsd_triage 2014-03-10 13:45:38 UTC
Responsible Changed
From-To: gnn->freebsd-bugs
Comment 3 George V. Neville-Neil freebsd_committer freebsd_triage 2014-03-10 13:46:00 UTC
Responsible Changed
From-To: freebsd-bugs->fs

Give to the Filesystem mailing list.
Comment 4 Kirk McKusick freebsd_committer freebsd_triage 2014-03-24 12:56:59 UTC
Responsible Changed
From-To: fs->freebsd-fs

Reassign from fs@freebsd.org to freebsd-fs@freebsd.org as that is 
where all the other filesystem bugs are kept.
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:48:40 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Comment 6 Alan Somers freebsd_committer freebsd_triage 2019-04-03 15:57:03 UTC
I can't reproduce on 13.0-CURRENT.  I'm going to hazard a guess that this crash was fixed by the new in-kernel fusefs(5) driver which replaced the old sysutils/fusefs-kmod port.