Bug 4311 - [Anck 4.19]NFSv4.1: RECLAIM_COMPLETE must handle EACCES
Summary: [Anck 4.19]NFSv4.1: RECLAIM_COMPLETE must handle EACCES
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: fs (show other bugs) fs
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shineway
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-02 17:25 UTC by shineway
Modified: 2023-03-03 10:56 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shineway 2023-03-02 17:25:01 UTC
Description of problem:

A client should be able to handle getting an EACCES error while doing
a mount operation to reclaim state due to NFS4CLNT_RECLAIM_REBOOT
being set. If the server returns RPC_AUTH_BADCRED because authentication
failed when we execute "exportfs -au", then RECLAIM_COMPLETE will go a
wrong way. After mount succeeds, all OPEN call will fail due to an
NFS4ERR_GRACE error being returned.

Additional info:

See upstream:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e35a5e782f67ed76a65ad0f23a484444a95f000f
Comment 1 Joseph Qi alibaba_cloud_group 2023-03-03 10:56:27 UTC
https://gitee.com/anolis/cloud-kernel/pulls/1324
merged