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

NULL pointer dereference when browsing to .zfs directory with Nautilus #977

Closed
wrouesnel opened this issue Sep 20, 2012 · 1 comment
Closed
Milestone

Comments

@wrouesnel
Copy link
Contributor

Getting a NULL pointer dereference when I use Nautilus on Linux 3.2.0-30-generic x86_64 to browse to the .zfs directory (it works fine if I directly browse to .zfs/snapshots).

I'm running a zfs-daily build off the PPA: 0.6.0.80-0ubuntu1~precise1

Sep 20 12:55:38 will-laptop kernel: [ 3899.857282] BUG: unable to handle kernel NULL pointer dereference at 000000000000005f Sep 20 12:55:38 will-laptop kernel: [ 3899.857364] IP: [<ffffffff81182b95>] follow_managed+0x35/0x140 Sep 20 12:55:38 will-laptop kernel: [ 3899.857423] PGD 212fdb067 PUD 212fda067 PMD 0 Sep 20 12:55:38 will-laptop kernel: [ 3899.857475] Oops: 0000 [#2] SMP Sep 20 12:55:38 will-laptop kernel: [ 3899.857515] CPU 1 Sep 20 12:55:38 will-laptop kernel: [ 3899.857535] Modules linked in: snd_seq_dummy ip6table_filter ip6_tables ebtable_nat ebtables xt_state ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter bbswitch(O) ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables kvm_intel bridge kvm stp bnep parport_pc ppdev rfcomm binfmt_misc ext2 snd_hda_codec_hdmi snd_hda_codec_realtek arc4 joydev snd_hda_intel uvcvideo snd_hda_codec iwlwifi videodev btusb i915 bluetooth snd_hwdep snd_pcm mac80211 v4l2_compat_ioctl32 r8168(O) snd_seq_midi snd_rawmidi drm_kms_helper snd_seq_midi_event drm snd_seq snd_timer snd_seq_device dell_wmi cfg80211 sparse_keymap snd dell_laptop intel_ips wmi i2c_algo_bit psmouse soundcore snd_page_alloc video coretemp mei(C) serio_raw lp mac_hid parport dcdbas zfs(P) zcommon(P) znvpair(P) zavl(P) zunicode(P) spl(O) zlib_deflate Sep 20 12:55:38 will-laptop kernel: [ 3899.858427] Sep 20 12:55:38 will-laptop kernel: [ 3899.858445] Pid: 2749, comm: nautilus Tainted: P D C O 3.2.0-30-generic #48-Ubuntu Dell Inc. XPS L501X /00CKNG Sep 20 12:55:38 will-laptop kernel: [ 3899.858537] RIP: 0010:[<ffffffff81182b95>] [<ffffffff81182b95>] follow_managed+0x35/0x140 Sep 20 12:55:38 will-laptop kernel: [ 3899.858607] RSP: 0018:ffff880212f21c08 EFLAGS: 00010246 Sep 20 12:55:38 will-laptop kernel: [ 3899.858651] RAX: 000000000000005f RBX: ffff880212f21d18 RCX: ffff88024a0abb00 Sep 20 12:55:38 will-laptop kernel: [ 3899.858707] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000000000005f Sep 20 12:55:38 will-laptop kernel: [ 3899.858762] RBP: ffff880212f21c58 R08: ffffffff8118d3cb R09: 0000000000000000 Sep 20 12:55:38 will-laptop kernel: [ 3899.858817] R10: 0000000000000000 R11: 0000000000000003 R12: ffff88024a0abb00 Sep 20 12:55:38 will-laptop kernel: [ 3899.858873] R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000000 Sep 20 12:55:38 will-laptop kernel: [ 3899.858930] FS: 00007f14bebbd980(0000) GS:ffff88025bc80000(0000) knlGS:0000000000000000 Sep 20 12:55:38 will-laptop kernel: [ 3899.858994] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Sep 20 12:55:38 will-laptop kernel: [ 3899.859040] CR2: 000000000000005f CR3: 0000000212f47000 CR4: 00000000000006e0 Sep 20 12:55:38 will-laptop kernel: [ 3899.859096] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Sep 20 12:55:38 will-laptop kernel: [ 3899.863373] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Sep 20 12:55:38 will-laptop kernel: [ 3899.867655] Process nautilus (pid: 2749, threadinfo ffff880212f20000, task ffff880212db5c00) Sep 20 12:55:38 will-laptop kernel: [ 3899.871934] Stack: Sep 20 12:55:38 will-laptop kernel: [ 3899.876218] 0000000000000001 ffff880212f21d40 ffff880212f21c58 00ffffff81182b40 Sep 20 12:55:38 will-laptop kernel: [ 3899.880548] ffff880212f21c58 ffff880212f21dc8 ffff880212f21d18 000000000000005f Sep 20 12:55:38 will-laptop kernel: [ 3899.884769] 0000000000000001 ffff880212f21d40 ffff880212f21cd8 ffffffff81184bed Sep 20 12:55:38 will-laptop kernel: [ 3899.888901] Call Trace: Sep 20 12:55:38 will-laptop kernel: [ 3899.892873] [<ffffffff81184bed>] do_lookup+0x14d/0x310 Sep 20 12:55:38 will-laptop kernel: [ 3899.896738] [<ffffffff811869dc>] path_lookupat+0x11c/0x750 Sep 20 12:55:38 will-laptop kernel: [ 3899.900540] [<ffffffff8113b672>] ? do_wp_page+0x382/0x740 Sep 20 12:55:38 will-laptop kernel: [ 3899.904308] [<ffffffff81187041>] do_path_lookup+0x31/0xc0 Sep 20 12:55:38 will-laptop kernel: [ 3899.908025] [<ffffffff81187b49>] user_path_at_empty+0x59/0xa0 Sep 20 12:55:38 will-laptop kernel: [ 3899.911727] [<ffffffff8165dfe0>] ? do_page_fault+0x210/0x520 Sep 20 12:55:38 will-laptop kernel: [ 3899.915402] [<ffffffff81187ba1>] user_path_at+0x11/0x20 Sep 20 12:55:38 will-laptop kernel: [ 3899.919079] [<ffffffff8117cbda>] vfs_fstatat+0x3a/0x70 Sep 20 12:55:38 will-laptop kernel: [ 3899.922739] [<ffffffff8117cc4b>] vfs_stat+0x1b/0x20 Sep 20 12:55:38 will-laptop kernel: [ 3899.926370] [<ffffffff8117cd8a>] sys_newstat+0x1a/0x40 Sep 20 12:55:38 will-laptop kernel: [ 3899.930004] [<ffffffff81178090>] ? vfs_read+0xb0/0x180 Sep 20 12:55:38 will-laptop kernel: [ 3899.933605] [<ffffffff8165ab75>] ? page_fault+0x25/0x30 Sep 20 12:55:38 will-laptop kernel: [ 3899.937184] [<ffffffff81662a02>] system_call_fastpath+0x16/0x1b Sep 20 12:55:38 will-laptop kernel: [ 3899.940751] Code: 5d d8 4c 89 65 e0 4c 89 6d e8 4c 89 75 f0 4c 89 7d f8 66 66 66 66 90 4c 8b 27 45 31 ff 48 89 fb 41 89 f5 c6 45 cf 00 48 8b 7b 08 <8b> 07 41 89 c6 41 81 e6 00 00 07 00 75 47 80 7d cf 00 74 05 4c Sep 20 12:55:38 will-laptop kernel: [ 3899.944880] RIP [<ffffffff81182b95>] follow_managed+0x35/0x140 Sep 20 12:55:38 will-laptop kernel: [ 3899.948812] RSP <ffff880212f21c08> Sep 20 12:55:38 will-laptop kernel: [ 3899.952693] CR2: 000000000000005f Sep 20 12:55:38 will-laptop kernel: [ 3899.956646] ---[ end trace bd65a6977c9933e6 ]---

At a guess this is related to the problems people have been having with Samba crashing when they try to browse to .zfs.

@behlendorf
Copy link
Contributor

Yup, this one has made it on to the short list of things to be fixed in the next tag.

behlendorf pushed a commit to behlendorf/zfs that referenced this issue Oct 15, 2012
Otherwise it will cause zpl_shares_lookup() to return a invalid
pointer when an error occurs.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Closes openzfs#626 openzfs#885 openzfs#947 openzfs#977
unya pushed a commit to unya/zfs that referenced this issue Dec 13, 2013
Otherwise it will cause zpl_shares_lookup() to return a invalid
pointer when an error occurs.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Closes openzfs#626 openzfs#885 openzfs#947 openzfs#977
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