Bug 1612914
| Summary: | [autofs]Removed entries still can be accessed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Kun Wang <kunwan> | ||||
| Component: | autofs | Assignee: | Ian Kent <ikent> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Kun Wang <kunwan> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.6 | CC: | rhandlin, xzhou | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | autofs-5.0.7-95.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1613621 (view as bug list) | Environment: | |||||
| Last Closed: | 2018-10-30 11:41:29 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: | 1613621 | ||||||
| Attachments: |
|
||||||
|
Description
Kun Wang
2018-08-06 14:04:54 UTC
Requesting blocker flag as this has been reported as a result of QE testing and the fix is simpler than I expected, so it looks to be low risk to me. I'll post the patch once I've done a little more testing. Created attachment 1473944 [details]
Patch - mark removed cache entry negative
I tested on autofs-5.0.7-95.el7 for this bug. The result shows that the removed entry won't be accessed after auto-umount. So this patch fixed this bug. Now putting this BZ to verified state based on below test result: ####################################################################### # on old version (autofs-5.0.7-94.el7), it failed # ####################################################################### [22:42:19 root@ ~~]# service autofs reload Redirecting to /bin/systemctl reload autofs.service :: [ 22:42:19 ] :: [ PASS ] :: Running 'service autofs reload' (Expected 0, got 0) -------------------------------------------------------------------------------- [22:42:35 root@ ~~]# ls $nfsmp/$submp2 :: [ 22:42:35 ] :: [ FAIL ] :: After reload removed entry shouldn't be accessable (Expected 2, got 0) ####################################################################### # on fixed version (autofs-5.0.7-95.el7), it passed # ####################################################################### [22:46:43 root@ ~~]# service autofs reload Redirecting to /bin/systemctl reload autofs.service :: [ 22:46:43 ] :: [ PASS ] :: Running 'service autofs reload' (Expected 0, got 0) -------------------------------------------------------------------------------- [22:47:03 root@ ~~]# ls $nfsmp/$submp2 ls: cannot access /mnt/nfsmp-bz1612914/NFS2: No such file or directory :: [ 22:47:03 ] :: [ PASS ] :: After reload removed entry shouldn't be accessable (Expected 2, got 2) 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/RHBA-2018:3283 |