Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 54868

Summary: NFS sever file lock is broken in 2.4.9-6
Product: [Retired] Red Hat Linux Reporter: hjl
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: high    
Version: 7.1CC: alan, aleksey, anvil, bbrock, dennis.brylow, gt, len, rdieter, ronan.waide
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-25 08:48:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
a testcase
none
The Connectathon Testsuite
none
Client lockd kernel traceback
none
nlm_debug output of client lockd
none
server lockd kernel traceback
none
server lockd nlm_debug output
none
A patch none

Description hjl 2001-10-22 05:46:07 UTC
In a NFS mounted directory against the NFS
sever running kernel 2.4.9-6:

# gcc test.c
# a.out
Opening 'testlock' for writing.
Success!

Trying to get a read lock for 'testlock'


It fails to get a read lock from the NFS
server running 2.4.9-6.

Comment 1 hjl 2001-10-22 05:46:44 UTC
Created attachment 34561 [details]
a testcase

Comment 2 hjl 2001-10-22 05:50:01 UTC
Red Hat should run the Connectathon testsuite
before making any new kernels. I can provide
the patched source.

Comment 3 hjl 2001-10-22 06:18:05 UTC
It looks like both NFS server and client in
kernel 2.4.9-6 failed the Connectathon testsuite.
I am enclosing it here.

Comment 4 hjl 2001-10-22 06:19:26 UTC
Created attachment 34562 [details]
The Connectathon Testsuite

Comment 5 Gerald Teschl 2001-10-22 09:03:19 UTC
We have the same problem here on all our nfs servers. This brakes our
entire site;-(


Comment 6 Seth Vidal 2001-10-22 11:29:12 UTC
This will probably affect 7.2 as well - I think the kernels are relatively the same.



Comment 7 Bob Matthews 2001-10-22 18:58:36 UTC
I have been able to verify this with a client/server setup running 2.4.9-6smp on
two minimal 7.2 systems.

The client appears to be hanging in the first fcntl64 syscall generated by the
fcntl library call.  Strace shows that this syscall never returns.

Attached are relevant trace files including kernel tracebacks for lockd and the
test program on the client, nlm_debug output on the client, kernel traceback of
lockd on the server, and nlm_debug out on the server.

Comment 8 Bob Matthews 2001-10-22 19:01:40 UTC
Created attachment 34583 [details]
Client lockd kernel traceback

Comment 9 hjl 2001-10-22 19:02:44 UTC
NFS file locking is broken. I am working on it now.
It may take me a few days to fix it.

Comment 10 Bob Matthews 2001-10-22 19:03:09 UTC
Created attachment 34584 [details]
nlm_debug output of client lockd

Comment 11 Bob Matthews 2001-10-22 19:04:12 UTC
Created attachment 34585 [details]
server lockd kernel traceback

Comment 12 Bob Matthews 2001-10-22 19:05:31 UTC
Created attachment 34586 [details]
server lockd nlm_debug output

Comment 13 Bob Matthews 2001-10-22 19:23:27 UTC
*** Bug 54891 has been marked as a duplicate of this bug. ***

Comment 14 hjl 2001-10-22 21:56:07 UTC
Created attachment 34621 [details]
A patch

Comment 15 hjl 2001-10-22 21:57:04 UTC
I posted a patch which seems to work for me.

Comment 16 Leonard Evens 2001-10-24 03:25:12 UTC
We have applied the patch to make a custom kernel, and it appears to work
for us also.

Comment 17 Seth Vidal 2001-10-24 12:13:53 UTC
I built some new rpms of the 2.4.9-6 and 2.4.9-7(for 7.2) kernels that include
this patch.

I can put them some place public if its helpful to anyone


Comment 18 Arjan van de Ven 2001-10-24 12:16:15 UTC
I'll put up a kernel with the proposed patch up for testing soon; I'm just
trying to see if it's remotely seen (eg it boots etc)

Comment 19 Arjan van de Ven 2001-10-24 13:56:36 UTC
Please try the kernel at

http://people.redhat.com/arjanv/testkernels 

to see if it indeed works

Comment 20 Seth Vidal 2001-10-24 16:10:22 UTC
This will also need to be fixed on the alpha 2.4.9 kernel on 7.1

will the same patch work?


Comment 21 Anvil 2001-10-25 07:22:48 UTC
Hello gentlemen,
I got 2 little questions :
1/ Has enigma kernel the same problem ? If yes, will the 2.4.9-7.4 work on enigma ?
2/ May we have the kernel-header and kernel-source i386.rpm please ?

Comment 22 Gerald Teschl 2001-10-25 08:48:54 UTC
I had a look at the 7.2 kernel and found out that the svc code is correct,
however, the nfs patch from redhat undoes this. I removed the these lines
from the nfs patch and rebuild the rpms. The kernel now works fine under both
7.1 and 7.2.

Comment 23 Arjan van de Ven 2001-11-03 17:56:13 UTC
This is fixed in yesterdays kernel erratum.
Thanks for reporting this!