Regression: nfs cannot access/list wildcard file unless its cached when there is a symlink in path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Stefan Bader | ||
Focal |
Fix Released
|
Medium
|
Stefan Bader | ||
Impish |
Fix Released
|
Medium
|
Stefan Bader | ||
Jammy |
Fix Released
|
Medium
|
Unassigned | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Some of our build machines have recently started failing builds. It was noted that all the machines that fail the build are running the most recent kernel 5.4.0-109-generic #123~18.
The following command was created to minimally reproduce the issue:
$ while true; do sudo /usr/local/
ls: cannot access '/shared/
ls: cannot access '/shared/
ls: cannot access '/shared/
ls: cannot access '/shared/
Note directly trying to list the file works every time, it seems the bug must be related to the use of the wildcard.
$ while true; do sudo /usr/local/
-rw-r--r-- 1 jenkins engineer 202526 May 2 13:47 /shared/
-rw-r--r-- 1 jenkins engineer 202526 May 2 13:47 /shared/
-rw-r--r-- 1 jenkins engineer 202526 May 2 13:47 /shared/
The drop_cache was needed to force the error everytime, otherwise it would fail only a few times then succeed a bunch in a row before randomly failing again.
$ cat /usr/local/
#!/bin/bash
# Test script to drop filesystem cache
sync
# Clear pagecache, dentries, and inodes
echo 3 > /proc/sys/
Downgrading the kernel to 5.4.0-107-generic on one of the machines caused the problem to go away.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.4.0-107-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.27
Architecture: amd64
Date: Tue May 3 15:04:34 2022
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
PATH=(custom, no user)
SourcePackage: linux-signed-
UpgradeStatus: No upgrade log present (probably fresh install)
CVE References
summary: |
- Regression: nfs cannot access/list wildcard file unless its cached + Regression: nfs cannot access/list wildcard file unless its cached when + there is a symlink in path |
Attaching tcpdump for machine seeing errors
$ sudo tcpdump -w /tmp/data.pcap -i bond0 host 10.0.0.23