Bug 208999

Summary: NFS server occasionally spontaneously reboots when client mounts exported directory
Product: File System Reporter: Robert Dinse (nanook)
Component: NFSAssignee: bfields
Status: RESOLVED DUPLICATE    
Severity: high CC: minayang44
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.8 Subsystem:
Regression: No Bisected commit-id:

Description Robert Dinse 2020-08-23 07:27:59 UTC
There is a duplicate but it seems to have been deleted from Bugzilla.
I was provided with this patch:

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 30818b006530..f0a607c795ef 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4597,6 +4597,8 @@ static bool nfsd_breaker_owns_lease(struct file_lock
*fl)
       if (!i_am_nfsd())
               return NULL;
       rqst = kthread_data(current);
+       if (!rqst->rq_lease_breaker)
+               return NULL;
       clp = *(rqst->rq_lease_breaker);
       return dl->dl_stid.sc_client == clp;
}

     And it resolved the problem BUT as of 5.8.3 it is STILL not in the kernel.
This problem only gets triggered with a mix of NFSv3 and NFSv4 clients.
Comment 1 bfields 2020-08-25 19:37:53 UTC
Chuck has the patch; it will get there, don't worry.

*** This bug has been marked as a duplicate of bug 208807 ***