Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp179413lqe; Wed, 27 Mar 2024 02:32:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8NsPzU/Pe8y1QsEDCUnF1EbRvP3MDuD8nddOBYH6a7IHZkBH6w1uMX3uQPjgoK1PIMDTfgeQ8nzOBvsyZ/xLWPFAOdvmBMRQby6RQSw== X-Google-Smtp-Source: AGHT+IE0r1EkM1sVSvHqSAnJ4s6XfWIqFBW+515AQsHO1ZOEqTZgUaQPAtG9wd7RgJR5je0JYSql X-Received: by 2002:a05:620a:8218:b0:789:e72b:1249 with SMTP id ow24-20020a05620a821800b00789e72b1249mr729724qkn.19.1711531971584; Wed, 27 Mar 2024 02:32:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711531971; cv=pass; d=google.com; s=arc-20160816; b=txQFwKiXu1AzSnpT6WXZ05rLwu3qe+PFUDqou7cuzLDSOXIEdZFSqJVOEZaq1icpeT 6jU10SYiwxkDT5xFVvX+UDBPan6gPxkhy/eCv7UeAMkwFTvLlNo4pQUBp6yiqr+0c4F0 uFeaWD6CwGamjpF9FLqL8xuX3vtSvsNhJZ/29lKwRGA6XKgqTjU9QxpKTkO0j56XlzXP +9a1P+XngpW+0gdSjf3mQuFyPphy4h1NRVPux/nAqo88jdXHHcCBBs46X2xr2yP4rout S/yIpQn9af/nbc4YvlNT5NMJUxeYSdJN6Ci3lnkAG3SGDwBv6FJg2wpD/dF5iNqunovO YX9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :auto-submitted:content-transfer-encoding:message-id:date:subject:to :from:dkim-signature; bh=Jv7GOU+JEJq177w7HpPYVD4VS/A00L5i6DIciMQ1UDs=; fh=lfmAJNlsrgVlLfgmf+xa0zOkAKc6VKVRczifYgkRnAY=; b=pjEgZ4NzAihbgT3pAbG4eZdfJLM/5Vk11cMZRgkQXDc1RgybjdRIDvMarZTKYWz5sh 5korkyuoy02gVWNsRJWDuYF8Zw0sSVOSJOPlgMwoRUgJp/ijNQa+G8NymakkFGfUE/xe qls/5fVCp6E/AlMAo+z4ON4jaPAJnjLvFzQAt5QxeweOFsoQaEqLLuxkVzNfwIYd1b68 LckybCZIdUoksNgq3DlML74mjHZZGbTRbr/NsC3PtLquxg1pwGdWepGaLzvpYeGxmoNT Wxk2J0yNdVCKepk3rm5Vy8oMeduezbf7Od5YKawORZA1pcjl1sVZwUi14NiczaDe+b1K DrOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H9CmZ3ql; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-1758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y2-20020a05620a0e0200b0078a457da031si9020520qkm.640.2024.03.27.02.32.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 02:32:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H9CmZ3ql; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-1758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 528FE1C25BBF for ; Wed, 27 Mar 2024 09:32:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2514236AEE; Wed, 27 Mar 2024 09:31:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H9CmZ3ql" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97C99376EE for ; Wed, 27 Mar 2024 09:31:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711531918; cv=none; b=Rel+NystCEpR6TH8npckU4CENdp6yQGSOOVKIw50c8d/7NX/PK/5BQRISAIHWKIFX3luLKsV6tmUzZoM3SlVFiU9GqGesK3pO5fLwXukpa4BShRUaW3cp4rrbAAYuQzc0yjZ38GewsTRAW/bqM7MpX2nVH7P1yUkg4PHJr6YvVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711531918; c=relaxed/simple; bh=eglPKeNvb1PLgs64//T0GeaqYy8YRe4qjQweHR9cOI4=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=HtnhBVM2q20ZaScWKcPq1v+ZbjLKHVZgADTzqrerUTehgQydZbP3kJgKidkOJutvTuFWg3p8iYum33iHv85vJby3r297TLEOiWhC8xG+i7i4oYXk2gnWhZDbkfuN11RkVdEUS9erQP6f0OcKNvgOrMsnCAL0Bddz+y+eABJyVKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H9CmZ3ql; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 22DB5C433F1 for ; Wed, 27 Mar 2024 09:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711531918; bh=eglPKeNvb1PLgs64//T0GeaqYy8YRe4qjQweHR9cOI4=; h=From:To:Subject:Date:From; b=H9CmZ3qlso4Zj9kU2H9FZvNqf69m5CJaDKPNHqowgxswjfl2pMXxKDymzskSydxm3 g9R4+OhbUHZ71Ta9CAW50lrb6W6KraIWLoUAP7xQWMM5xB90mDivPrRIQkePPQtiIN bUNHFORHzijWgpM7PDPw3+Ddqawl6+Z1IUSqe6n2kZPVLB9ypFQ2ArgUizga/JXquf kItrxJCV37oHV4JKunxPww3NNREp4lq7iVpB1Y7XoNdeKyvy093iucQ5lYyoh0rC2I qRMr5Oj8/sCkUcg+IHj6tDhV18UO808D/5Wsf9vhBzDl7mw9XDOgAuurhl5YHYdrc5 DHYWMnYeK65bQ== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 13D51C53BD0; Wed, 27 Mar 2024 09:31:58 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-ext4@vger.kernel.org Subject: [Bug 218648] New: ext4: previously opened file remains writeable on readonly ext4 filesystem; Data loss. Date: Wed, 27 Mar 2024 09:31:57 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: AssignedTo fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Product: File System X-Bugzilla-Component: ext4 X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsolt@integrity.hu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version cf_kernel_version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cf_regression Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 https://bugzilla.kernel.org/show_bug.cgi?id=3D218648 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 filesyste= m. 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 readon= ly ext4. Of course, this changes will be lost on reboot. So the readonly filesystem blocked the new open for writing, but the prevou= sly opened file can I write, but the data will be lost. Are these cases normal on readonly filesystem or a bug? --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=