mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: dd  <zhongling0719@126.com>
To: "Namjae Jeon" <linkinjeon@kernel.org>
Cc: "Hongling Zeng" <zenghongling@kylinos.cn>,
	hyc.lee@gmail.com, ntfs@lists.linux.dev,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re:Re: [PATCH] ntfs: mount hibernated volumes read-only regardless of errors=
Date: Tue, 15 Sep 2026 09:05:41 +0800 (CST)	[thread overview]
Message-ID: <5d8908a0.a55.1a0a29927aa.Coremail.zhongling0719@126.com> (raw)
In-Reply-To: <CAKYAXd9EFNkofkj1tEg1vs5+1ohs1exYx6mys78X8852x8w6Yg@mail.gmail.com>



在 2026-09-14 21:59:10,"Namjae Jeon" <linkinjeon@kernel.org> 写道:
>On Mon, Sep 14, 2026 at 12:42 PM Hongling Zeng <zenghongling@kylinos.cn> wrote:
>>
>> The hibernation check in load_system_files() only converts the
>> superblock to read-only under errors=remount-ro.  With the default
>> errors=continue (and with errors=panic), a hibernated volume is
>> mounted read-write and the mount-time $LogFile emptying writes to it,
>> although a hibernated volume must not be written to at all.
>>
>> Drop the on_errors term so that a hibernated volume, or a volume whose
>> hibernation state cannot be determined, always mounts read-only.
>> NVolErrors() is still recorded, so ntfs_reconfigure() keeps refusing
>> remounts to read-write, and the $LogFile emptying is skipped by its
>> !sb_rdonly() check.
>check_windows_hibernation_status() calls ntfs_error() before SB_RDONLY
>is set. With errors=panic, this panics before reaching the new
>read-only fallback...
  Thanks for catching this. Right -- those error paths call ntfs_error()
  before SB_RDONLY is set, so errors=panic can fire inside
  check_windows_hibernation_status().

  I will remove the internal ntfs_error() calls in v2; the caller already
  reports "Failed to determine if Windows is hibernated." for every
  err < 0 case. NVolErrors() is still recorded, so ntfs_reconfigure()
  keeps rejecting remounts to read-write.

  Thanks,
  Hongling


      reply	other threads:[~2026-09-15  1:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-14  3:42 Hongling Zeng
2026-09-14  4:16 ` liubaolin
2026-09-14 13:59 ` Namjae Jeon
2026-09-15  1:05   ` dd [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d8908a0.a55.1a0a29927aa.Coremail.zhongling0719@126.com \
    --to=zhongling0719@126.com \
    --cc=hyc.lee@gmail.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ntfs@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=zenghongling@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®