public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 218648] New: ext4: previously opened file remains writeable on readonly ext4 filesystem; Data loss.
@ 2024-03-27  9:31 bugzilla-daemon
  2024-03-28 14:55 ` [Bug 218648] " bugzilla-daemon
  2024-03-29  9:06 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2024-03-27  9:31 UTC (permalink / raw)
  To: linux-ext4

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

            Bug ID: 218648
           Summary: ext4: previously opened file remains writeable on
                    readonly ext4 filesystem; Data loss.
           Product: File System
           Version: 2.5
    Kernel Version: 6.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: zsolt@integrity.hu
        Regression: No

I have a VM on KVM. The KVM image is on GlusterFS and for the test I stopped
the gluster server. If this backend goes offline, the ext4 filesystem will be
readonly in the VM. It's OK.

But if I have a previously opened file (for writing) in this ext4 filesystem. I
can continue to write. The "ls -l" command shows, the file is growing (but the
modification time isn't changes anymore).
Second test: previously mmap-ed file. I can rewrite the 4k blocks on readonly
ext4. Of course, this changes will be lost on reboot.

So the readonly filesystem blocked the new open for writing, but the prevously
opened file can I write, but the data will be lost.

Are these cases normal on readonly filesystem or a bug?

-- 
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] 3+ messages in thread

end of thread, other threads:[~2024-03-29  9:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27  9:31 [Bug 218648] New: ext4: previously opened file remains writeable on readonly ext4 filesystem; Data loss bugzilla-daemon
2024-03-28 14:55 ` [Bug 218648] " bugzilla-daemon
2024-03-29  9:06 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox