Skip to content
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

zconfig fails ans causes kernel oops with kernel 3.3.5: #730

Closed
michaelletzgus opened this issue May 8, 2012 · 3 comments
Closed

zconfig fails ans causes kernel oops with kernel 3.3.5: #730

michaelletzgus opened this issue May 8, 2012 · 3 comments
Milestone

Comments

@michaelletzgus
Copy link

Debian wheezy with kernel 3.3.5:

  1. First run:

uche-pc1-ml:/home/mletzgus # /usr/local/libexec/zfs/zconfig.sh -c -v
Destroying
1 persistent zpool.cache Pass
2 scan disks for pools to import Pass
3 zpool import/export device /dev/tank/volume may not be immediately available
Error: Could not stat device /dev/zvol/tank/volume - No such file or directory.
Fail (4)

SYSLOG:
May 8 19:30:57 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:30:57 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:30:57 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:30:58 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:30:58 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:30:58 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:30:58 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:30:58 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:30:58 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:31:00 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:31:00 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:31:00 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:31:00 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:31:00 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:31:00 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:31:01 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:31:01 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:31:01 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:31:01 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:31:01 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:31:01 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:31:03 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:31:03 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:31:03 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:31:03 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:31:04 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:31:04 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:31:04 uche-pc1-ml kernel: zd0: unknown partition table

  1. Ssecond run:

uche-pc1-ml:/home/mletzgus # /usr/local/libexec/zfs/zconfig.sh -c -v
Destroying
1 persistent zpool.cache Pass
2 scan disks for pools to import Fail (7)

SYSLOG:
May 8 19:35:30 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8May 8 19:35:30 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8May 8 19:35:30 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8May 8 19:35:30 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195acMay 8 19:35:30 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8May 8 19:35:30 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5May 8 19:35:31 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:35:31 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:35:31 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:35:31 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:35:31 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:35:31 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:35:33 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:35:33 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:35:33 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:35:33 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:35:33 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:35:33 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:35:34 uche-pc1-ml kernel: ZFS: Unloaded module v0.6.0-rc8
May 8 19:35:34 uche-pc1-ml kernel: SPLAT: Unloaded module v0.6.0-rc8
May 8 19:35:34 uche-pc1-ml kernel: SPL: Unloaded module v0.6.0-rc8
May 8 19:35:35 uche-pc1-ml kernel: SPL: Loaded module v0.6.0-rc8, using hostid 0x468195ac
May 8 19:35:35 uche-pc1-ml kernel: SPLAT: Loaded module v0.6.0-rc8
May 8 19:35:35 uche-pc1-ml kernel: ZFS: Loaded module v0.6.0-rc8, ZFS pool version 28, ZFS filesystem version 5
May 8 19:35:35 uche-pc1-ml kernel: BUG: unable to handle kernel NULL pointer dereference at 00000000000001ce
May 8 19:35:35 uche-pc1-ml kernel: IP: [] __blkdev_get+0x28/0x420
May 8 19:35:35 uche-pc1-ml kernel: PGD 1dac5e067 PUD 1cc90f067 PMD 0
May 8 19:35:35 uche-pc1-ml kernel: Oops: 0000 [#1] SMP
May 8 19:35:35 uche-pc1-ml kernel: CPU 1
May 8 19:35:35 uche-pc1-ml kernel: Modules linked in: zfs(PO) zcommon(PO) zunicode(PO) znvpair(PO) zavl(PO) splat(O) spl(O) zlib_inflate zlib_deflate xt_TCPMSS xt_limit xt_tcpudp nf_nat_irc nf_nat_ftp ipt_LOG ipt_MASQUERADE xt_DSCP ipt_REJECT nf_conntrack_irc nf_conntrack_ftp xt_state vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) acpi_cpufreq mperf cpufreq_stats cpufreq_performance cpufreq_ondemand freq_table cpufreq_powersave cpufreq_conservative fuse iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle iptable_filter ip_tables x_tables zram(C) kvm_intel kvm pl2303 usbserial md_mod adt7475 it87 hwmon_vid coretemp hwmon loop joydev hid_cherry usbhid hid usb_storage snd_hda_codec_realtek snd_hda_intel snd_hda_codec sr_mod cdrom snd_hwdep nvidia(PO) snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_oss snd_seq_midi uhci_hcd snd_rawmidi ehci_hcd snd_seq_midi_event usbcore snd_seq snd_seq_device snd_timer snd r8169 processor button i2c_i801 i2c_core usb_common floppy soundcore [last
May 8 19:35:35 uche-pc1-ml kernel: unloaded: spl]
May 8 19:35:35 uche-pc1-ml kernel:
May 8 19:35:35 uche-pc1-ml kernel: Pid: 14681, comm: zpool Tainted: P C O 3.3.5 #2 Gigabyte Technology Co., Ltd. EP45-UD3LR/EP45-UD3LR
May 8 19:35:35 uche-pc1-ml kernel: RIP: 0010:[] [] __blkdev_get+0x28/0x420
May 8 19:35:35 uche-pc1-ml kernel: RSP: 0018:ffff8801cd525c58 EFLAGS: 00010282
May 8 19:35:35 uche-pc1-ml kernel: RAX: ffffffffffffff86 RBX: ffff8801fbe69380 RCX: fffffffffffffaf0
May 8 19:35:35 uche-pc1-ml kernel: RDX: 0000000000000510 RSI: ffff8801cd525c74 RDI: ffffffffa117a1e0
May 8 19:35:35 uche-pc1-ml kernel: RBP: ffffffffffffff86 R08: 01fbe694f00c0000 R09: fde619ea09993c03
May 8 19:35:35 uche-pc1-ml kernel: R10: ffff88021e82a5e0 R11: ffff8801cd525da0 R12: ffff8801db690c80
May 8 19:35:35 uche-pc1-ml kernel: R13: ffff8801fbe69398 R14: 000000000000001d R15: 000000000000001d
May 8 19:35:35 uche-pc1-ml kernel: FS: 00007f2c5c2efb40(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
May 8 19:35:35 uche-pc1-ml kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 8 19:35:35 uche-pc1-ml kernel: CR2: 00000000000001ce CR3: 00000001cf827000 CR4: 00000000000406e0
May 8 19:35:35 uche-pc1-ml kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
May 8 19:35:35 uche-pc1-ml kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
May 8 19:35:35 uche-pc1-ml kernel: Process zpool (pid: 14681, threadinfo ffff8801cd524000, task ffff8801cf712e10)
May 8 19:35:35 uche-pc1-ml kernel: Stack:
May 8 19:35:35 uche-pc1-ml kernel: ffffffff810f1a90 0000000000000000 ffff88021f9e5688 00000000810da420
May 8 19:35:35 uche-pc1-ml kernel: 0000000000000000 0000000000000000 ffff8801fbe69380 ffff8801db690c80
May 8 19:35:35 uche-pc1-ml kernel: ffff880210ee0648 000000000000001d ffff880210ee076c ffffffff810f346b
May 8 19:35:35 uche-pc1-ml kernel: Call Trace:
May 8 19:35:35 uche-pc1-ml kernel: [] ? I_BDEV+0x10/0x10
May 8 19:35:35 uche-pc1-ml kernel: [] ? blkdev_get+0x4b/0x2f0
May 8 19:35:35 uche-pc1-ml kernel: [] ? unlock_new_inode+0x37/0x60
May 8 19:35:35 uche-pc1-ml kernel: [] ? bdget+0x112/0x130
May 8 19:35:35 uche-pc1-ml kernel: [] ? blkdev_get+0x2f0/0x2f0
May 8 19:35:35 uche-pc1-ml kernel: [] ? __dentry_open.isra.17+0x212/0x320
May 8 19:35:35 uche-pc1-ml kernel: [] ? do_last.isra.48+0x2bc/0x7f0
May 8 19:35:35 uche-pc1-ml kernel: [] ? path_init+0x2ce/0x3d0
May 8 19:35:35 uche-pc1-ml kernel: [] ? path_openat+0xcc/0x380
May 8 19:35:35 uche-pc1-ml kernel: [] ? do_filp_open+0x45/0xb0
May 8 19:35:35 uche-pc1-ml kernel: [] ? alloc_fd+0x46/0x130
May 8 19:35:35 uche-pc1-ml kernel: [] ? do_sys_open+0xf8/0x1e0
May 8 19:35:35 uche-pc1-ml kernel: [] ? system_call_fastpath+0x16/0x1b
May 8 19:35:35 uche-pc1-ml kernel: Code: 1f 40 00 41 57 41 89 f7 41 56 41 55 4c 8d 6f 18 41 54 55 53 48 89 fb 48 83 ec 28 89 54 24 0c e9 ed 00 00 00 0f 1f 80 00 00 00 00 <48> 8b 80 48 02 00 00 48 89 ef 4c 8b 70 58 e8 15 32 0a 00 4c 89
May 8 19:35:35 uche-pc1-ml kernel: RIP [] __blkdev_get+0x28/0x420
May 8 19:35:35 uche-pc1-ml kernel: RSP
May 8 19:35:35 uche-pc1-ml kernel: CR2: 00000000000001ce
May 8 19:35:35 uche-pc1-ml kernel: ---[ end trace 4b84bb1b07d4b254 ]---

@michaelletzgus
Copy link
Author

It's "zpool import" saying only "killed" an producing am kernel oops...

@behlendorf
Copy link
Contributor

Interesting... when we get a chance we'll take a look.

@behlendorf
Copy link
Contributor

Once again this is a duplicate of issue #949 , I'm closing the issue because all the useful context is in the other bug.

behlendorf pushed a commit that referenced this issue Oct 3, 2012
Previously we returned ERR_PTR(-ENOENT) which the rest of the kernel
doesn't expect and as such we can oops.

Signed-off-by: Chris Wedgwood <cw@f00f.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #949
Closes #931
Closes #789
Closes #743
Closes #730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants