2018-11-09 20:34:04 |
Stan Hu |
bug |
|
|
added bug |
2018-11-09 20:34:25 |
Stan Hu |
summary |
Stale data after file is renamed while another process has an open file handle |
NFS: Stale data after file is renamed while another process has an open file handle |
|
2018-11-09 20:35:41 |
Stan Hu |
summary |
NFS: Stale data after file is renamed while another process has an open file handle |
NFS v4.0: Stale data after file is renamed while another process has an open file handle |
|
2018-11-09 20:38:05 |
Stan Hu |
description |
NOTE: This bug has been fixed in the upstream mainline kernel via https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=be189f7e7f03de35887e5a85ddcf39b91b5d7fc1 and merged in the latest NFS client patches in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=c7a2c49ea6c9eebbe44ff2c08b663b2905ee2c13.
The full patchset is here: https://marc.info/?l=linux-nfs&m=153816500525563&w=2
I'm repeating the report I sent to the NFS maintainers on the mailing list:
On both kernels in Ubuntu 16.04 (4.4.0-130) with NFS v4.0, I'm seeing an issue where
stale data is shown if a file remains open on one machine, and the
file is overwritten via a rename() on another. Here's my test:
1. On node A, create two different files on a shared NFS mount:
"test1.txt" and "test2.txt".
2. On node B, continuously show the contents of the first file: "while
true; do cat test1.txt; done"
3. On node B, run a process that keeps "test1.txt" open. For example,
with Python, run:
f = open('/nfs-mount/test1.txt', 'r')
4. Rename test2.txt via "mv -f test2.txt test1.txt"
On node B, I see the contents of the original test1.txt indefinitely,
even after I disabled attribute caching and the lookup cache. I can
make the while loop in step 2 show the new content if I perform one of
these actions:
1. Run "ls /nfs-mount"
2. Close the open file in step 3 |
NOTE: This bug has been fixed in the upstream mainline kernel via https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=be189f7e7f03de35887e5a85ddcf39b91b5d7fc1 and merged in the latest NFS client patches in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=c7a2c49ea6c9eebbe44ff2c08b663b2905ee2c13.
The full patchset is here: https://marc.info/?l=linux-nfs&m=153816500525563&w=2
I'm repeating the report I sent to the NFS maintainers on the mailing list:
On Ubuntu 16.04 (4.4.0-130) with NFS v4.0, I'm seeing an issue where
stale data is shown if a file remains open on one machine, and the
file is overwritten via a rename() on another. Here's my test:
1. On node A, create two different files on a shared NFS mount:
"test1.txt" and "test2.txt".
2. On node B, continuously show the contents of the first file: "while
true; do cat test1.txt; done"
3. On node B, run a process that keeps "test1.txt" open. For example,
with Python, run:
f = open('/nfs-mount/test1.txt', 'r')
4. Rename test2.txt via "mv -f test2.txt test1.txt"
On node B, I see the contents of the original test1.txt indefinitely,
even after I disabled attribute caching and the lookup cache. I can
make the while loop in step 2 show the new content if I perform one of
these actions:
1. Run "ls /nfs-mount"
2. Close the open file in step 3 |
|
2018-11-09 21:00:05 |
Ubuntu Kernel Bot |
linux (Ubuntu): status |
New |
Incomplete |
|
2018-11-09 21:14:45 |
Stan Hu |
attachment added |
|
apport.linux.PkXffd.apport https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1802585/+attachment/5210974/+files/apport.linux.PkXffd.apport |
|
2018-11-09 21:15:29 |
Stan Hu |
linux (Ubuntu): status |
Incomplete |
Confirmed |
|
2018-11-16 19:14:35 |
Joseph Salisbury |
linux (Ubuntu): importance |
Undecided |
Medium |
|
2018-11-16 19:26:55 |
Joseph Salisbury |
linux (Ubuntu): assignee |
|
Joseph Salisbury (jsalisbury) |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
nominated for series |
|
Ubuntu Cosmic |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
bug task added |
|
linux (Ubuntu Cosmic) |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
nominated for series |
|
Ubuntu Xenial |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
bug task added |
|
linux (Ubuntu Xenial) |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
nominated for series |
|
Ubuntu Disco |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
bug task added |
|
linux (Ubuntu Disco) |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
nominated for series |
|
Ubuntu Bionic |
|
2018-11-16 19:27:55 |
Joseph Salisbury |
bug task added |
|
linux (Ubuntu Bionic) |
|
2018-11-16 19:28:43 |
Joseph Salisbury |
linux (Ubuntu Cosmic): assignee |
|
Joseph Salisbury (jsalisbury) |
|
2018-11-16 19:28:46 |
Joseph Salisbury |
linux (Ubuntu Bionic): assignee |
|
Joseph Salisbury (jsalisbury) |
|
2018-11-16 19:28:49 |
Joseph Salisbury |
linux (Ubuntu Xenial): assignee |
|
Joseph Salisbury (jsalisbury) |
|
2018-11-16 19:28:51 |
Joseph Salisbury |
linux (Ubuntu Cosmic): importance |
Undecided |
Medium |
|
2018-11-16 19:28:54 |
Joseph Salisbury |
linux (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2018-11-16 19:28:56 |
Joseph Salisbury |
linux (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2018-11-16 19:29:01 |
Joseph Salisbury |
linux (Ubuntu Cosmic): status |
New |
Triaged |
|
2018-11-16 19:29:04 |
Joseph Salisbury |
linux (Ubuntu Bionic): status |
New |
Triaged |
|
2018-11-16 19:29:06 |
Joseph Salisbury |
linux (Ubuntu Xenial): status |
New |
Triaged |
|
2018-11-16 19:29:09 |
Joseph Salisbury |
linux (Ubuntu Disco): status |
Confirmed |
Triaged |
|
2018-11-16 19:33:42 |
Joseph Salisbury |
linux (Ubuntu Xenial): status |
Triaged |
In Progress |
|
2018-11-16 19:33:44 |
Joseph Salisbury |
linux (Ubuntu Bionic): status |
Triaged |
In Progress |
|
2018-11-16 19:33:47 |
Joseph Salisbury |
linux (Ubuntu Cosmic): status |
Triaged |
In Progress |
|
2018-11-16 19:33:53 |
Joseph Salisbury |
linux (Ubuntu Disco): status |
Triaged |
In Progress |
|
2018-11-19 07:46:06 |
Joel Low |
bug |
|
|
added subscriber Joel Low |
2018-11-29 05:54:17 |
Simon Déziel |
bug |
|
|
added subscriber Simon Déziel |
2019-01-15 22:33:57 |
Joseph Salisbury |
linux (Ubuntu Xenial): status |
In Progress |
Confirmed |
|
2019-01-15 22:33:59 |
Joseph Salisbury |
linux (Ubuntu Bionic): status |
In Progress |
Confirmed |
|
2019-01-15 22:34:01 |
Joseph Salisbury |
linux (Ubuntu Cosmic): status |
In Progress |
Confirmed |
|
2019-01-15 22:34:03 |
Joseph Salisbury |
linux (Ubuntu Disco): status |
In Progress |
Confirmed |
|
2019-01-15 22:34:05 |
Joseph Salisbury |
linux (Ubuntu Xenial): assignee |
Joseph Salisbury (jsalisbury) |
|
|
2019-01-15 22:34:07 |
Joseph Salisbury |
linux (Ubuntu Bionic): assignee |
Joseph Salisbury (jsalisbury) |
|
|
2019-01-15 22:34:09 |
Joseph Salisbury |
linux (Ubuntu Cosmic): assignee |
Joseph Salisbury (jsalisbury) |
|
|
2019-01-15 22:34:11 |
Joseph Salisbury |
linux (Ubuntu Disco): assignee |
Joseph Salisbury (jsalisbury) |
|
|
2019-07-24 21:17:27 |
Brad Figg |
tags |
client nfs |
client cscc nfs |
|
2019-08-26 20:48:10 |
Bryan Quigley |
bug |
|
|
added subscriber Bryan Quigley |
2019-08-26 23:31:25 |
Bryan Quigley |
linux (Ubuntu Cosmic): status |
Confirmed |
Won't Fix |
|
2019-08-27 17:14:52 |
Bryan Quigley |
bug task added |
|
linux-hwe (Ubuntu) |
|
2019-08-27 17:15:46 |
Bryan Quigley |
linux-hwe (Ubuntu Cosmic): status |
New |
Won't Fix |
|
2019-08-27 17:16:00 |
Bryan Quigley |
linux-hwe (Ubuntu Disco): status |
New |
Won't Fix |
|
2019-08-27 17:47:29 |
Bryan Quigley |
linux (Ubuntu Disco): status |
Confirmed |
Fix Released |
|
2019-08-27 17:47:43 |
Bryan Quigley |
linux (Ubuntu): status |
Confirmed |
Fix Released |
|
2019-09-04 20:19:19 |
Bryan Quigley |
linux (Ubuntu Bionic): status |
Confirmed |
Fix Released |
|
2019-09-04 20:19:38 |
Bryan Quigley |
linux-hwe (Ubuntu): status |
New |
Fix Released |
|
2019-09-04 20:20:00 |
Bryan Quigley |
linux-hwe (Ubuntu Bionic): status |
New |
Invalid |
|
2019-09-04 20:20:11 |
Bryan Quigley |
linux-hwe (Ubuntu Xenial): status |
New |
Fix Released |
|