Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496896 - sys-fs/zfs-kmod-0.6.2-r3: module crashes when shutting down a qemu guest using a zvol for storage - PaX enabled
Summary: sys-fs/zfs-kmod-0.6.2-r3: module crashes when shutting down a qemu guest usin...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-03 15:06 UTC by Philippe Gagnon
Modified: 2016-01-16 19:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg output while using 0.6.2 (dmesg 0.6.2.txt,3.90 KB, text/plain)
2014-01-03 15:07 UTC, Philippe Gagnon
Details
dmesg output while using 9999 (dmesg 9999.txt,14.66 KB, text/plain)
2014-01-03 15:08 UTC, Philippe Gagnon
Details
kernel configuration (kernel config,90.38 KB, text/x-mpsub)
2014-01-03 15:08 UTC, Philippe Gagnon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Gagnon 2014-01-03 15:06:47 UTC
I'm running KVM on a hardened gentoo system with PAX enabled. It happens sometimes (pretty often) that the ZFS module will crash when a KVM guest is cleanly shut down if the guest uses a ZVOL for storage.

I have reproduced this issue running both ZFS 0.6.2-r3 from the ebuild and git master from the ebuild as well. So far I have tried disabling kernel-space ASLR but it didn't help.

I will attach two dmesg outputs (while running zfs 0.6.2-r3 and zfs 9999) that I received and my kernel .config.

Reproducible: Sometimes

Steps to Reproduce:
1. Start a VM backed by ZFS storage
2. Shut it down cleanly (i.e. using poweroff in the guest)
Actual Results:  
The ZFS module crashes.


prometheus ~ # uname -a
Linux prometheus 3.11.7-hardened-r1 #6 SMP PREEMPT Thu Jan 2 15:06:51 EST 2014 x86_64 Quad-Core AMD Opteron(tm) Processor 8356 AuthenticAMD GNU/Linux
Comment 1 Philippe Gagnon 2014-01-03 15:07:56 UTC
Created attachment 366850 [details]
dmesg output while using 0.6.2
Comment 2 Philippe Gagnon 2014-01-03 15:08:15 UTC
Created attachment 366852 [details]
dmesg output while using 9999
Comment 3 Philippe Gagnon 2014-01-03 15:08:31 UTC
Created attachment 366854 [details]
kernel configuration
Comment 4 Richard Yao (RETIRED) gentoo-dev 2016-01-16 19:55:50 UTC
There is an upstream issue for this:

https://github.com/zfsonlinux/spl/commit/a3c1eb77721a0d511b4fe7111bb2314686570c4b

This commit is believed to have fixed this:

https://github.com/zfsonlinux/zfs/commit/a16878805388c4d96cb8a294de965071d138a47b

In the future, I suggest filing kernel NULL pointer dereference reports upstream. I have been spending the time that I have for working on non-Gentoo specific ZFS bugs at the upstream tracker.