Is NFS supposed to work?

Gunnar Beutner gunnar at beutner.name
Tue May 24 12:49:31 EDT 2011


Hi Travis,

this looks like the issue that was fixed by this commit:
https://github.com/behlendorf/zfs/commit/3117dd0b9005eb76e483b9772c493883b82998bb

Make sure you're using a recent-enough version of the git tree and try
to reproduce that issue again.

Regards,
Gunnar Beutner

On 24.05.2011 09:35, Travis Tabbal wrote:
> I can read, but create or delete blow up... dmesg below. The first is
> a rm -r ... the second is "touch test"... The filesystem is exported
> rw.....
> 
> And now "ls" against that directory on the server is hanging........
> 
> -----
> 
> [ 7532.764674] BUG: unable to handle kernel NULL pointer dereference
> at 0000000000000018
> [ 7532.765814] IP: [<ffffffffa03eebb3>] zpl_fsync+0x23/0x4a [zfs]
> [ 7532.766957] PGD 160d12067 PUD 186bef067 PMD 0
> [ 7532.768025] Oops: 0000 [#2] SMP
> [ 7532.768477] last sysfs file: /sys/devices/vbd-10-268439808/uevent
> [ 7532.768477] CPU 0
> [ 7532.768477] Modules linked in: ip6table_filter ip6_tables
> ebtable_nat ebtables nf_conntrack_ipv4 nf_defrag_ipv4 xt_state
> nf_conntrack xt_physdev iptable_filter ip_tables x_tables nfsd lockd
> nfs_acl auth_rpcgss sunrpc exportfs fuse xen_evtchn xenfs ib_iser
> rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp
> libiscsi_tcp libiscsi scsi_transport_iscsi bridge stp zfs(P)
> zcommon(P) znvpair(P) zavl(P) zunicode(P) spl zlib_deflate loop
> firewire_sbp2 nouveau snd_pcm ttm drm_kms_helper drm amd64_edac_mod
> i2c_nforce2 i2c_algo_bit snd_timer edac_core i2c_core k10temp
> edac_mce_amd psmouse snd soundcore snd_page_alloc shpchp pci_hotplug
> serio_raw pcspkr evdev asus_atk0110 video button processor wmi
> acpi_processor output ext4 mbcache jbd2 crc16 dm_mod raid1 md_mod
> usbhid hid sd_mod crc_t10dif ata_generic firewire_ohci ahci
> firewire_core mptsas mptscsih mptbase scsi_transport_sas pata_amd
> e1000e crc_itu_t libata ohci_hcd ehci_hcd forcedeth scsi_mod usbcore
> nls_base thermal thermal_sys [last unloaded: scsi_wait_scan]
> [ 7532.768477] Pid: 5997, comm: nfsd Tainted: P      D W  2.6.32-5-xen-
> amd64 #1 System Product Name
> [ 7532.768477] RIP: e030:[<ffffffffa03eebb3>]  [<ffffffffa03eebb3>]
> zpl_fsync+0x23/0x4a [zfs]
> [ 7532.768477] RSP: e02b:ffff88017c583da0  EFLAGS: 00010202
> [ 7532.768477] RAX: ffff88016233c240 RBX: 0000000000000000 RCX:
> ffffffffa03eeb90
> [ 7532.768477] RDX: 0000000000000000 RSI: ffff88016a3ac000 RDI:
> ffff88016233cb40
> [ 7532.768477] RBP: ffff88016a3acb40 R08: 00000000ffffc000 R09:
> ffffffff8146ac20
> [ 7532.768477] R10: 00000000ffffc000 R11: ffffffffa03eeb90 R12:
> ffff88016233cb40
> [ 7532.768477] R13: 0000000000000000 R14: ffff88016a3ac000 R15:
> ffff8801071bcd88
> [ 7532.768477] FS:  00007fa26e1b5700(0000) GS:ffff88000ae7b000(0000)
> knlGS:0000000000000000
> [ 7532.768477] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
> [ 7532.768477] CR2: 0000000000000018 CR3: 00000001a6e08000 CR4:
> 0000000000000660
> [ 7532.768477] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
> 0000000000000000
> [ 7532.768477] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
> 0000000000000400
> [ 7532.768477] Process nfsd (pid: 5997, threadinfo ffff88017c582000,
> task ffff8801f0f22350)
> [ 7532.768477] Stack:
> [ 7532.768477]  0000000000000000 ffff880162c94008 00000000ffffc000
> ffffffffa04ff05c
> [ 7532.768477] <0> ffffffffa04bf727 ffff880162c94008 ffff880162c93000
> 000000000000001c
> [ 7532.768477] <0> ffff880162c94000 ffff880164a96000 ffffffffa051f6a0
> ffffffffa05062c5
> [ 7532.768477] Call Trace:
> [ 7532.768477]  [<ffffffffa04ff05c>] ? nfsd_unlink+0x136/0x16c [nfsd]
> [ 7532.768477]  [<ffffffffa04bf727>] ? svcauth_unix_set_client
> +0x1e3/0x243 [sunrpc]
> [ 7532.768477]  [<ffffffffa05062c5>] ? nfsd3_proc_remove+0x74/0x81
> [nfsd]
> [ 7532.768477]  [<ffffffffa04fb329>] ? nfsd_dispatch+0xdd/0x1b9 [nfsd]
> [ 7532.768477]  [<ffffffffa04bb4ff>] ? svc_process+0x403/0x627
> [sunrpc]
> [ 7532.768477]  [<ffffffffa04fb772>] ? nfsd+0x0/0x12e [nfsd]
> [ 7532.768477]  [<ffffffffa04fb857>] ? nfsd+0xe5/0x12e [nfsd]
> [ 7532.768477]  [<ffffffff81065be5>] ? kthread+0x79/0x81
> [ 7532.768477]  [<ffffffff81012baa>] ? child_rip+0xa/0x20
> [ 7532.768477]  [<ffffffff81011d61>] ? int_ret_from_sys_call+0x7/0x1b
> [ 7532.768477]  [<ffffffff8101251d>] ? retint_restore_args+0x5/0x6
> [ 7532.768477]  [<ffffffff81012ba0>] ? child_rip+0x0/0x20
> [ 7532.768477] Code: 00 89 d0 5a 5b 5d c3 90 41 55 41 89 d5 65 48 8b
> 04 25 c0 cb 00 00 41 54 53 4c 8b a0 88 03 00 00 48 89 fb 4c 89 e7 e8
> f5 1d f1 ff <48> 8b 43 18 4c 89 e2 44 89 ee 48 8b 78 10 e8 9c 12 ff ff
> 89 c3
> [ 7532.768477] RIP  [<ffffffffa03eebb3>] zpl_fsync+0x23/0x4a [zfs]
> [ 7532.768477]  RSP <ffff88017c583da0>
> [ 7532.768477] CR2: 0000000000000018
> [ 7532.768477] ---[ end trace a7919e7f17c0a728 ]---
> [ 7638.798010] BUG: unable to handle kernel NULL pointer dereference
> at 0000000000000018
> [ 7638.799221] IP: [<ffffffffa03eebb3>] zpl_fsync+0x23/0x4a [zfs]
> [ 7638.800410] PGD 160d12067 PUD 186bef067 PMD 0
> [ 7638.800779] Oops: 0000 [#3] SMP
> [ 7638.800779] last sysfs file: /sys/devices/vbd-10-268439808/uevent
> [ 7638.800779] CPU 0
> [ 7638.800779] Modules linked in: ip6table_filter ip6_tables
> ebtable_nat ebtables nf_conntrack_ipv4 nf_defrag_ipv4 xt_state
> nf_conntrack xt_physdev iptable_filter ip_tables x_tables nfsd lockd
> nfs_acl auth_rpcgss sunrpc exportfs fuse xen_evtchn xenfs ib_iser
> rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp
> libiscsi_tcp libiscsi scsi_transport_iscsi bridge stp zfs(P)
> zcommon(P) znvpair(P) zavl(P) zunicode(P) spl zlib_deflate loop
> firewire_sbp2 nouveau snd_pcm ttm drm_kms_helper drm amd64_edac_mod
> i2c_nforce2 i2c_algo_bit snd_timer edac_core i2c_core k10temp
> edac_mce_amd psmouse snd soundcore snd_page_alloc shpchp pci_hotplug
> serio_raw pcspkr evdev asus_atk0110 video button processor wmi
> acpi_processor output ext4 mbcache jbd2 crc16 dm_mod raid1 md_mod
> usbhid hid sd_mod crc_t10dif ata_generic firewire_ohci ahci
> firewire_core mptsas mptscsih mptbase scsi_transport_sas pata_amd
> e1000e crc_itu_t libata ohci_hcd ehci_hcd forcedeth scsi_mod usbcore
> nls_base thermal thermal_sys [last unloaded: scsi_wait_scan]
> [ 7638.800779] Pid: 5999, comm: nfsd Tainted: P      D W  2.6.32-5-xen-
> amd64 #1 System Product Name
> [ 7638.800779] RIP: e030:[<ffffffffa03eebb3>]  [<ffffffffa03eebb3>]
> zpl_fsync+0x23/0x4a [zfs]
> [ 7638.800779] RSP: e02b:ffff880174097d60  EFLAGS: 00010202
> [ 7638.800779] RAX: ffff8801e8e67f00 RBX: 0000000000000000 RCX:
> ffffffffa03eeb90
> [ 7638.800779] RDX: 0000000000000000 RSI: ffff880186d50480 RDI:
> ffff8801e8e67a80
> [ 7638.800779] RBP: ffff880162c97150 R08: 0000000000000000 R09:
> 0000000000000000
> [ 7638.800779] R10: ffff8801e8e67540 R11: ffffffffa03eeb90 R12:
> ffff8801e8e67a80
> [ 7638.800779] R13: 0000000000000000 R14: 0000000000000000 R15:
> 0000000000000000
> [ 7638.800779] FS:  00007fa26e1b5700(0000) GS:ffff88000ae7b000(0000)
> knlGS:0000000000000000
> [ 7638.800779] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
> [ 7638.800779] CR2: 0000000000000018 CR3: 00000001a6e08000 CR4:
> 0000000000000660
> [ 7638.800779] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
> 0000000000000000
> [ 7638.800779] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
> 0000000000000400
> [ 7638.800779] Process nfsd (pid: 5999, threadinfo ffff880174096000,
> task ffff8801ee850000)
> [ 7638.800779] Stack:
> [ 7638.800779]  0000000000000000 0000000000000000 ffff880177a6d180
> ffffffffa0500b6a
> [ 7638.800779] <0> ffff880185520148 ffff880185520008 ffff8801847f2000
> ffff880186d50480
> [ 7638.800779] <0> ffff8801656fe918 ffff880185520148 ffff880162c97000
> ffff880185520008
> [ 7638.800779] Call Trace:
> [ 7638.800779]  [<ffffffffa0500b6a>] ? nfsd_create_v3+0x259/0x358
> [nfsd]
> [ 7638.800779]  [<ffffffffa0506694>] ? nfsd3_proc_create+0x116/0x127
> [nfsd]
> [ 7638.800779]  [<ffffffffa04fb329>] ? nfsd_dispatch+0xdd/0x1b9 [nfsd]
> [ 7638.800779]  [<ffffffffa04bb4ff>] ? svc_process+0x403/0x627
> [sunrpc]
> [ 7638.800779]  [<ffffffffa04fb772>] ? nfsd+0x0/0x12e [nfsd]
> [ 7638.800779]  [<ffffffffa04fb857>] ? nfsd+0xe5/0x12e [nfsd]
> [ 7638.800779]  [<ffffffff81065be5>] ? kthread+0x79/0x81
> [ 7638.800779]  [<ffffffff81012baa>] ? child_rip+0xa/0x20
> [ 7638.800779]  [<ffffffff81011d61>] ? int_ret_from_sys_call+0x7/0x1b
> [ 7638.800779]  [<ffffffff8101251d>] ? retint_restore_args+0x5/0x6
> [ 7638.800779]  [<ffffffff81012ba0>] ? child_rip+0x0/0x20
> [ 7638.800779] Code: 00 89 d0 5a 5b 5d c3 90 41 55 41 89 d5 65 48 8b
> 04 25 c0 cb 00 00 41 54 53 4c 8b a0 88 03 00 00 48 89 fb 4c 89 e7 e8
> f5 1d f1 ff <48> 8b 43 18 4c 89 e2 44 89 ee 48 8b 78 10 e8 9c 12 ff ff
> 89 c3
> [ 7638.800779] RIP  [<ffffffffa03eebb3>] zpl_fsync+0x23/0x4a [zfs]
> [ 7638.800779]  RSP <ffff880174097d60>
> [ 7638.800779] CR2: 0000000000000018
> [ 7638.800779] ---[ end trace a7919e7f17c0a729 ]---


-- 
Gunnar Beutner
Oberhäuserstrasse 167
91522 Ansbach

E-Mail: gunnar at beutner.name
Mobiltelefon: 0171 95 818 49



More information about the zfs-discuss mailing list