Bug 1416532
Summary: | Symlinks removed and replaced on an nfs mount from another system receive STALE nfs error and EIO from readlink() | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Frank Sorenson <fsorenso> | ||||||||
Component: | kernel | Assignee: | Benjamin Coddington <bcodding> | ||||||||
kernel sub component: | NFS | QA Contact: | JianHong Yin <jiyin> | ||||||||
Status: | CLOSED ERRATA | Docs Contact: | |||||||||
Severity: | medium | ||||||||||
Priority: | urgent | CC: | bcodding, dhoward, dwysocha, eguan, jiyin, knweiss, mjtrangoni, nfs-maint, tspeetje, yoyang | ||||||||
Version: | 7.3 | Keywords: | Regression, ZStream | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | kernel-3.10.0-562.el7 | Doc Type: | If docs needed, set a value | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 1429514 (view as bug list) | Environment: | |||||||||
Last Closed: | 2017-08-02 05:10:53 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 1429514 | ||||||||||
Attachments: |
|
Description
Frank Sorenson
2017-01-25 18:03:28 UTC
Created attachment 1244328 [details]
test script
the test script replaces symlinks, files, and directories, to see which result in EIO or other errors. Only symlinks to files and symlinks to directories seem to be affected.
Created attachment 1244355 [details]
packet capture from 3.10.0-514 kernel
Created attachment 1244359 [details]
packet capture from 3.10.0-327 kernel
RedHat's backport of upstream commit fa9233699cc1 NFS: Don't require a filehandle to refresh the inode in nfs_prime_dcache() needs fixing up. It changes nfs_same_file() to return true if (entry->fattr->fileid == nfsi->fileid) without comparing filehandles, in which case the existing dentry is updated instead of dropped in a READDIR. The fix should be to take upstream 7dc72d5f7a0e NFS: Fix inode corruption in nfs_prime_dcache() and I'd like to additionally take upstream d8fdb47fae5f NFS: Don't let readdirplus revalidate an inode that was marked as stale Patch(es) committed on kernel repository and an interim kernel build is undergoing testing Patch(es) available on kernel-3.10.0-562.el7 I found the reproducing steps somewhat unreliable, for what it's worth, this is how I did: mount nfs filesystem on 2 nodes, inside commonly mounted dir on node1 (which demonstrates the issue, later): // setup # touch test_file # for i in $(seq 3); do ln -s test_file test_link_$i; done // check # ls -li on node 2 # for i in $(seq 3); do rm -f test_link_$i; ln -s test_file test_link_$i; done back on node1 # ln -s test_file test_here; rm -f test_here; ls -li ls: cannot read symbolic link test_link_1: Input/output error ls: cannot read symbolic link test_link_2: Input/output error ls: cannot read symbolic link test_link_3: Input/output error total 0 83861514 -rw-r--r--. 1 root root 0 Feb 15 14:08 test_file 83861515 lrwxrwxrwx. 1 root root 9 Feb 15 14:08 test_link_1 83861516 lrwxrwxrwx. 1 root root 9 Feb 15 14:08 test_link_2 83861517 lrwxrwxrwx. 1 root root 9 Feb 15 14:08 test_link_3 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:1842 |