Bug 4304 - NFSv4.1: RECLAIM_COMPLETE must handle EACCES
Summary: NFSv4.1: RECLAIM_COMPLETE must handle EACCES
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 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 15:40 UTC by shineway
Modified: 2023-03-03 11:41 UTC (History)
4 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 15:40:23 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-02 16:31:41 UTC
Hi Ferry, please post a PR to port this into ANCK 5.10, thanks.
Comment 3 shineway 2023-03-02 17:09:31 UTC
Add this PR for devel-4.19:
https://gitee.com/anolis/cloud-kernel/pulls/1324
Comment 4 Joseph Qi alibaba_cloud_group 2023-03-02 17:19:43 UTC
(In reply to shineway from comment #3)
> Add this PR for devel-4.19:
> https://gitee.com/anolis/cloud-kernel/pulls/1324

I see. I've commented on PR and suggested we'd better post another bugzilla for ANCK-4.19.
Comment 5 Joseph Qi alibaba_cloud_group 2023-03-03 11:41:24 UTC
(In reply to josephqi from comment #2)
> https://gitee.com/anolis/cloud-kernel/pulls/1325

merged