Gentoo Archives: gentoo-user

From: Florian Klink <flokli@××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] nfsd: random nfsd crashes
Date: Wed, 18 Feb 2009 19:07:14
Message-Id: 1234984018.3283.26.camel@localhost
1 hi,
2
3 i'm having here a gentoo ~x86 server running on 2.6.29-rc4. It has a nfs
4 server for booting diskless clients.
5 In dmesg I see random crashes of nfsd, which cause the clients to hang
6 until i reboot the server. Restarting /etc/init.d/nfs hangs at "Starting
7 NFS daemon...".
8
9 using nfs-utils-1.1.4-r1
10
11 kernel config:
12 ---------------snip-----------------
13 cat linux/.config|grep -i nfs
14 CONFIG_NFS_FS=y
15 CONFIG_NFS_V3=y
16 CONFIG_NFS_V3_ACL=y
17 CONFIG_NFS_V4=y
18 CONFIG_ROOT_NFS=y
19 CONFIG_NFSD=m
20 CONFIG_NFSD_V2_ACL=y
21 CONFIG_NFSD_V3=y
22 CONFIG_NFSD_V3_ACL=y
23 # CONFIG_NFSD_V4 is not set
24 CONFIG_NFS_ACL_SUPPORT=y
25 CONFIG_NFS_COMMON=y
26 ---------------snap-----------------
27
28 dmesg output:
29 ---------------snip-----------------
30 [ 23.818334] Installing knfsd (copyright (C) 1996 okir@×××××××××.de).
31 [ 23.893486] rpc.nfsd used greatest stack depth: 5604 bytes left
32 [78016.584819] BUG: unable to handle kernel NULL pointer dereference at
33 00000004
34 [78016.584827] IP: [<c116235b>] inode_has_perm+0x21/0x67
35 [78016.584839] *pde = 00000000
36 [78016.584846] Oops: 0000 [#1] SMP
37 [78016.584904] last sysfs file: /sys/kernel/uevent_seqnum
38 [78016.584956] Modules linked in: nfsd exportfs tun snd_intel8x0
39 snd_ac97_codec ac97_bus snd_pcm snd_timer snd soundcore snd_page_alloc
40 [78016.585080]
41 [78016.585128] Pid: 2151, comm: nfsd Not tainted (2.6.29-rc4 #2)
42 OptiPlex GX270
43 [78016.585225] EIP: 0060:[<c116235b>] EFLAGS: 00010246 CPU: 0
44 [78016.585278] EIP is at inode_has_perm+0x21/0x67
45 [78016.585329] EAX: 00000000 EBX: 00000000 ECX: 00000002 EDX: d9835290
46 [78016.585386] ESI: d55e4880 EDI: f12bbf00 EBP: f107fe30 ESP: f107fddc
47 [78016.585439] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
48 [78016.585492] Process nfsd (pid: 2151, ti=f107e000 task=f6c76880
49 task.ti=f107e000)
50 [78016.585586] Stack:
51 [78016.585632] 00000004 f6774d80 00000002 c115f766 f107fdfc c10889b3
52 00000044 d9835290
53 [78016.585700] f107fe10 f7f3b0d9 f6774d80 f105a200 00000000 f107fe90
54 f7f3a88d f107fe20
55 [78016.585715] c101da2e f107fe28 00000002 d55e4880 d9835290 f107fe4c
56 c1163543 00000000
57 [78016.585715] Call Trace:
58 [78016.585715] [<c115f766>] ? security_inode_permission+0x1a/0x20
59 [78016.585715] [<c10889b3>] ? inode_permission+0x78/0x83
60 [78016.585715] [<f7f3b0d9>] ? nfsd_permission+0x8e/0xda [nfsd]
61 [78016.585715] [<f7f3a88d>] ? fh_verify+0x45f/0x525 [nfsd]
62 [78016.585715] [<c101da2e>] ? need_resched+0x14/0x1e
63 [78016.585715] [<c1163543>] ? selinux_dentry_open+0xb0/0xb8
64 [78016.585715] [<c115eeec>] ? security_dentry_open+0xf/0x11
65 [78016.585715] [<c1080f36>] ? __dentry_open+0xef/0x1e8
66 [78016.585715] [<c1081ed0>] ? dentry_open+0x5c/0x67
67 [78016.585715] [<f7f3bb59>] ? nfsd_open+0x101/0x125 [nfsd]
68 [78016.585715] [<f7f3be98>] ? nfsd_read+0x5f/0x99 [nfsd]
69 [78016.585715] [<f7f39edc>] ? nfsd_proc_read+0xec/0x120 [nfsd]
70 [78016.585715] [<c13dc33d>] ? cache_check+0x55/0x376
71 [78016.585715] [<c106df6b>] ? page_address+0x15/0x7c
72 [78016.585715] [<f7f401f9>] ? nfssvc_decode_readargs+0xa8/0xaf [nfsd]
73 [78016.585715] [<f7f381eb>] ? nfsd_dispatch+0xcf/0x19e [nfsd]
74 [78016.585715] [<c13d7118>] ? svc_process+0x34a/0x558
75 [78016.585715] [<f7f38778>] ? nfsd+0x117/0x167 [nfsd]
76 [78016.585715] [<f7f38661>] ? nfsd+0x0/0x167 [nfsd]
77 [78016.585715] [<c1035f11>] ? kthread+0x3b/0x62
78 [78016.585715] [<c1035ed6>] ? kthread+0x0/0x62
79 [78016.585715] [<c100374b>] ? kernel_thread_helper+0x7/0x10
80 [78016.585715] Code: 04 89 46 68 5b 89 d0 5e 5d c3 55 89 e5 57 89 c7 56
81 31 c0 53 83 ec 48 89 4d b4 8b 5d 08 f6 82 45 01 00 00 02 75 43 8b 47 58
82 85 db <8b> 70 04 8b 82 4c 01 00 00 89 45 b0 75 19 8d 7d bc b9 0e 00 00
83 [78016.585715] EIP: [<c116235b>] inode_has_perm+0x21/0x67 SS:ESP
84 0068:f107fddc
85 [78016.587989] ---[ end trace 9bc36c246382c5e4 ]---
86 [78016.588095] nfsd used greatest stack depth: 5276 bytes left
87 [78016.590769] BUG: unable to handle kernel NULL pointer dereference at
88 00000004
89 [78016.590926] IP: [<c116235b>] inode_has_perm+0x21/0x67
90 [78016.591061] *pde = 00000000
91 [78016.591175] Oops: 0000 [#2] SMP
92 [78016.591320] last sysfs file: /sys/kernel/uevent_seqnum
93 [78016.591404] Modules linked in: nfsd exportfs tun snd_intel8x0
94 snd_ac97_codec ac97_bus snd_pcm snd_timer snd soundcore snd_page_alloc
95 [78016.591933]
96 [78016.592012] Pid: 2155, comm: nfsd Tainted: G D (2.6.29-rc4
97 #2) OptiPlex GX270
98 [78016.592056] EIP: 0060:[<c116235b>] EFLAGS: 00010246 CPU: 0
99 [78016.592056] EIP is at inode_has_perm+0x21/0x67
100 [78016.592056] EAX: 00000000 EBX: 00000000 ECX: 00000002 EDX: d9835290
101 [78016.592056] ESI: d55e4780 EDI: f12bb100 EBP: f1103e30 ESP: f1103ddc
102 [78016.592056] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
103 [78016.592056] Process nfsd (pid: 2155, ti=f1102000 task=f6c73900
104 task.ti=f1102000)
105 [78016.592056] Stack:
106 [78016.592056] 00000004 f6774d80 00000002 c115f766 f1103dfc c10889b3
107 00000044 d9835290
108 [78016.592056] f1103e10 f7f3b0d9 f6774d80 f105ba00 00000000 f1103e90
109 f7f3a88d f1103e20
110 [78016.592056] c101da2e f1103e28 00000002 d55e4780 d9835290 f1103e4c
111 c1163543 00000000
112 [78016.592056] Call Trace:
113 [78016.592056] [<c115f766>] ? security_inode_permission+0x1a/0x20
114 [78016.592056] [<c10889b3>] ? inode_permission+0x78/0x83
115 [78016.592056] [<f7f3b0d9>] ? nfsd_permission+0x8e/0xda [nfsd]
116 [78016.592056] [<f7f3a88d>] ? fh_verify+0x45f/0x525 [nfsd]
117 [78016.592056] [<c101da2e>] ? need_resched+0x14/0x1e
118 [78016.592056] [<c1163543>] ? selinux_dentry_open+0xb0/0xb8
119 [78016.592056] [<c115eeec>] ? security_dentry_open+0xf/0x11
120 [78016.592056] [<c1080f36>] ? __dentry_open+0xef/0x1e8
121 [78016.592056] [<c1081ed0>] ? dentry_open+0x5c/0x67
122 [78016.592056] [<f7f3bb59>] ? nfsd_open+0x101/0x125 [nfsd]
123 [78016.592056] [<f7f3be98>] ? nfsd_read+0x5f/0x99 [nfsd]
124 [78016.592056] [<f7f39edc>] ? nfsd_proc_read+0xec/0x120 [nfsd]
125 [78016.592056] [<c13dc33d>] ? cache_check+0x55/0x376
126 [78016.592056] [<c106df6b>] ? page_address+0x15/0x7c
127 [78016.592056] [<f7f401f9>] ? nfssvc_decode_readargs+0xa8/0xaf [nfsd]
128 [78016.592056] [<f7f381eb>] ? nfsd_dispatch+0xcf/0x19e [nfsd]
129 [78016.592056] [<c13d7118>] ? svc_process+0x34a/0x558
130 [78016.592056] [<f7f38778>] ? nfsd+0x117/0x167 [nfsd]
131 [78016.592056] [<f7f38661>] ? nfsd+0x0/0x167 [nfsd]
132 [78016.592056] [<c1035f11>] ? kthread+0x3b/0x62
133 [78016.592056] [<c1035ed6>] ? kthread+0x0/0x62
134 [78016.592056] [<c100374b>] ? kernel_thread_helper+0x7/0x10
135 [78016.592056] Code: 04 89 46 68 5b 89 d0 5e 5d c3 55 89 e5 57 89 c7 56
136 31 c0 53 83 ec 48 89 4d b4 8b 5d 08 f6 82 45 01 00 00 02 75 43 8b 47 58
137 85 db <8b> 70 04 8b 82 4c 01 00 00 89 45 b0 75 19 8d 7d bc b9 0e 00 00
138 [78016.592056] EIP: [<c116235b>] inode_has_perm+0x21/0x67 SS:ESP
139 0068:f1103ddc
140 [78016.599214] ---[ end trace 9bc36c246382c5e5 ]---
141 ---------------snap-----------------
142
143
144
145 Any ideas?