-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel panics on i386/amd64 9.2 when writing to mounted filesystem on zfs #12
Comments
closing this, it seems possibly wiki has error |
Can't reproduce on CURRENT, didn't install 9.2 vm to verify it yet. What do you mean by "wiki error"? Error log doesn't contain backtrace, backtrace would be really helpful. Could you also check if problem persists if building pefs from ports. I don't know which kernel packages are build against. Kernel ABI is supposed to remain stable but could have been accidentally broken. |
by "wiki error" i meant this pefs mount ~/private.enc ~/private here private.enc and private are being used, in pefs man page example it is like this pefs mount ~/Private ~/Private If I use what wiki suggests, kernel panics, however the example in man page works fine sorry didn't have backtrace, I can supply if this is still legitimate problem, however it is working fine for me now that I am using example from man page yes the same problem persists even from ports, I tried building on amd64, but again this is only when I do "pefs mount ~/private.enc ~/private" thanks. On Tuesday 24 December 2013 20:01:50 Gleb Kurtsou wrote:
Alex Pavlovic - CEO |
I was able to reproduce it with 9.2 packages. I believe the problem to be KABI breakage between 9.0 and 9.2 when VOP_ADD_WRITECOUNT was introduced. The following VOP methods are initialized correctly:
Backtrace:
|
Just another update, on i386 mounting via same directory and trying to write as per below panics as well
|
Just builtworld with STABLE 10 on i386 as per below, mounting and writing works fine using man page example. Built pefs from ports afterwards.
FreeBSD node3.grid1 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #1 r259961: Fri Dec 27 21:55:13 PST 2013 [email protected]:/usr/obj/usr/src/sys/NODE3-GRID1 i386 |
I've send follow up to the same issue discussed in Nov on stable@. No response yet. |
FWIW, I can confirm this on two 9.2-RELEASE-p3 systems, amd64, GENERIC kernel installed by freebsd-update, on UFS, with pefs installed through pkgng (pefs-kmod-2013.10.13), crashes kernel on first write:
kgdb backtrace (via panicmail):
|
UPDATE: same happens on amd64 system when using pefs from pkgng, below is i386 example
uname -a
FreeBSD node3 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013 [email protected]:/usr/obj/usr/src/sys/GENERIC i386
pkg info pefs*
pefs-kmod-2013.10.13
Dec 22 14:15:18 node3 kernel: Fatal trap 12: page fault while in kernel mode
Dec 22 14:15:18 node3 kernel: cpuid = 0; apic id = 00
Dec 22 14:15:18 node3 kernel: fault virtual address = 0x4
Dec 22 14:15:18 node3 kernel: fault code = supervisor read, page not present
Dec 22 14:15:18 node3 kernel: instruction pointer = 0x20:0xc052a0e7
Dec 22 14:15:18 node3 kernel: stack pointer = 0x28:0xeffe2a08
Dec 22 14:15:18 node3 kernel: frame pointer = 0x28:0xeffe2a18
Dec 22 14:15:18 node3 kernel: code segment = base 0x0, limit 0xfffff, type 0x1b
Dec 22 14:15:18 node3 kernel: = DPL 0, pres 1, def32 1, gran 1
Dec 22 14:15:18 node3 kernel: processor eflags = interrupt enabled, resume, IOPL = 0
Dec 22 14:15:18 node3 kernel: current process = 1533 (vi)
Dec 22 14:15:18 node3 kernel: trap number = 12
Dec 22 14:15:18 node3 kernel: panic: page fault
Dec 22 14:15:18 node3 kernel: cpuid = 0
commands executed in following order ( note the use of camellia xts instead of aes xts)
UPDATE: same thing happens when default algorithm is in use ( AES128 XTS mode )
commands taken from https://wiki.freebsd.org/PEFS
mkdir ~/private ~/private.enc
pefs addchain -a camellia128 -f -Z ~/private.enc
pefs mount ~/private.enc ~/private
pefs addkey -c ~/private
cd ~/private
vi hello
trying to save file
kernel panics, system reboots
root on zfs setup as per: https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
UPDATE:
pefs works on amd64 when using example from man pefs
the only difference here is same directory is used in mount, could wiki have an error?
The text was updated successfully, but these errors were encountered: