linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale"
@ 2024-05-09  6:14 bugzilla-daemon
  2024-05-09  9:05 ` [Bug 218822] " bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2024-05-09  6:14 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

            Bug ID: 218822
           Summary: Delete the file from the upper layer directly, the
                    file will become "Stale"
           Product: File System
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: Squall.Zhou@vecima.com
        Regression: No

The FS mount as following:
/dev/sda7 on / type ext4 (rw,relatime)
/dev/sda5 on /persistent type ext4 (rw,relatime)
overlay on /etc type overlay
(rw,relatime,lowerdir=/sysroot/etc,upperdir=/sysroot/persistent/platform/B/etc/upper,workdir=/sysroot/persistent/platform/B/etc/work)

1. I touched a file named "A" on /etc
2. I remove the file "A" from "/persistent/platform/B/etc/upper"
3. The file "A" in /etc will become "Stale"

root@exs1610ada83b:~ [B]# touch /etc/A
root@exs1610ada83b:~ [B]# rm /persistent/platform/B/etc/upper/A
root@exs1610ada83b:~ [B]# rm /etc/A
rm: can't remove '/etc/A': Stale file handle

Linux version:
root@exs1610ada83b:~ [B]# uname -a
Linux exs1610ada83b 5.10.184-intel-pk-standard #1 SMP PREEMPT Sun Jun 25
06:48:28 UTC 2023 x86_64 GNU/Linux

Thought, the /etc/A will be removed also.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 218822] Delete the file from the upper layer directly, the file will become "Stale"
  2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
@ 2024-05-09  9:05 ` bugzilla-daemon
  2024-05-09 18:57 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2024-05-09  9:05 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

--- Comment #1 from Squall.Zhou@vecima.com ---
1. The issue has also been reproduced on:
29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  4 14:39:20 UTC 2 x86_64 x86_64
x86_64 GNU/Linux 

~:mount -t overlay -o  lowerdir=etc,upperdir=upper,workdir=work overlay etc 
~:~/overlaytest$ touch etc/a 
rm upper/a 
rm etc/a 
rm: cannot remove 'etc/a': Stale file handle 

2. But not reproduced on WSL(Ubuntu 20.04.6)
Squall.Zhou[~/over1]:mkdir etc
mkdir upper
mkdir work
sudo mount -t overlay -o  lowerdir=etc,upperdir=upper,workdir=work overlay etc
sudo touch etc/a
sudo rm upper/a
sudo rm etc/a
rm: cannot remove 'etc/a': No such file or directory
Squall.Zhou[~/over]:uname -a
Linux PC3203 4.4.0-22621-Microsoft #2506-Microsoft Fri Jan 01 08:00:00 PST 2016
x86_64 x86_64 x86_64 GNU/Linux

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 218822] Delete the file from the upper layer directly, the file will become "Stale"
  2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
  2024-05-09  9:05 ` [Bug 218822] " bugzilla-daemon
@ 2024-05-09 18:57 ` bugzilla-daemon
  2024-05-10  1:23 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2024-05-09 18:57 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

--- Comment #2 from Artem S. Tashkinov (aros@gmx.com) ---
Is this reproducible on mainline 6.8.9?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 218822] Delete the file from the upper layer directly, the file will become "Stale"
  2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
  2024-05-09  9:05 ` [Bug 218822] " bugzilla-daemon
  2024-05-09 18:57 ` bugzilla-daemon
@ 2024-05-10  1:23 ` bugzilla-daemon
  2024-05-10  3:04 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2024-05-10  1:23 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

--- Comment #3 from Squall.Zhou@vecima.com ---
(In reply to Artem S. Tashkinov from comment #2)
> Is this reproducible on mainline 6.8.9?

I don't have such a new system.
I have tried it on "Linux allenwei-VirtualBox 6.5.0-28-generic
#29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  4 14:39:20 UTC 2 x86_64 x86_64
x86_64 GNU/Linux"
On this version, I can reproduce this issue.
This is the newest version I can get for test.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 218822] Delete the file from the upper layer directly, the file will become "Stale"
  2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
                   ` (2 preceding siblings ...)
  2024-05-10  1:23 ` bugzilla-daemon
@ 2024-05-10  3:04 ` bugzilla-daemon
  2024-05-10  3:05 ` bugzilla-daemon
  2025-04-23 22:43 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2024-05-10  3:04 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

--- Comment #4 from Squall.Zhou@vecima.com ---
Created attachment 306279
  --> https://bugzilla.kernel.org/attachment.cgi?id=306279&action=edit
Test result for 6.8.0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 218822] Delete the file from the upper layer directly, the file will become "Stale"
  2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
                   ` (3 preceding siblings ...)
  2024-05-10  3:04 ` bugzilla-daemon
@ 2024-05-10  3:05 ` bugzilla-daemon
  2025-04-23 22:43 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2024-05-10  3:05 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

--- Comment #5 from Squall.Zhou@vecima.com ---
Comment on attachment 306279
  --> https://bugzilla.kernel.org/attachment.cgi?id=306279
Test result for 6.8.0

I have also reproduced it on 6.8.0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 218822] Delete the file from the upper layer directly, the file will become "Stale"
  2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
                   ` (4 preceding siblings ...)
  2024-05-10  3:05 ` bugzilla-daemon
@ 2025-04-23 22:43 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2025-04-23 22:43 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=218822

Nicolas Bretz (bretznic@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bretznic@gmail.com

--- Comment #6 from Nicolas Bretz (bretznic@gmail.com) ---
Looking at this I was thinking it might not be strictly related to ext4. Same
issue happens on btrfs.

I was able to replicate it on a few machines running 6.11.0 by simply following
the commands in the .png attachment.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-23 22:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09  6:14 [Bug 218822] New: Delete the file from the upper layer directly, the file will become "Stale" bugzilla-daemon
2024-05-09  9:05 ` [Bug 218822] " bugzilla-daemon
2024-05-09 18:57 ` bugzilla-daemon
2024-05-10  1:23 ` bugzilla-daemon
2024-05-10  3:04 ` bugzilla-daemon
2024-05-10  3:05 ` bugzilla-daemon
2025-04-23 22:43 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).