All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gao Xiang <xiang@kernel.org>
To: Kel Modderman <kelvmod@gmail.com>
Cc: linux-erofs@lists.ozlabs.org, xiang@kernel.org, chao@kernel.org
Subject: Re: erofs: file-backed mount logs "read error -5" when the reader is killed
Date: Fri, 4 Dec 2026 07:11:15 +0100	[thread overview]
Message-ID: <axJZg2D-9RBXMUbY@MacBookPro.fritz.box> (raw)
In-Reply-To: <CAFcu4SZs_7DMHUj1_LxBwWv57TyQo-KVa6_Hy9-1cvRW1M0JEQ@mail.gmail.com>

Hi,

On Thu, Dec 03, 2026 at 04:47:32PM -0800, Kel Modderman wrote:
> Hi,
> 
> On file-backed erofs mounts I see occasional lines like
> 
> erofs (device 0:36): read error -5 @ 0 of nid 3909409
> 
> That's on the live images of a Debian derivative (aptosid) with a custom
> kernel: 7.3.0 plus upstream stable updates, and no erofs patches of its
> own:
> 
> https://www.google.com/url?q=https://github.com/fullstory/linux-aptosid/tree/master/debian/patches&source=gmail&ust=1796431652282000&sa=E
> 
> The root is mounted straight from the image file on an iso9660 cdrom.
> 
> In my nightly install tests the four I checked were all
> /usr/bin/systemd-tty-ask-password-agent, while apt ran in the live
> session, so it looked like a short-lived process being killed while it
> paged in.
> 
> I can reproduce it with a second file-backed mount and a loop mount of
> the same image (zstd, level 3): drop caches, start the agent with its
> loader and libraries taken from the mount, SIGTERM it after 0 to 3.9 ms,
> 300 times each. The file-backed mount logged 80 read errors (one of them
> the agent at index 0), the loop mount none. fsck.erofs is clean on the
> images.
> 
> >From the source, a fatal signal makes filemap_read() on the backing file
> return a short count (or -EINTR), and erofs_fileio_ki_complete() turns
> any short read into -EIO. z_erofs_read_folio() already skips logging
> -EINTR, but by then it is -EIO, so it gets logged. The reader that logs
> it is being killed anyway, but the message reads like a real I/O error.
> The code looks the same in linux-next 20261030.
> 
> Is this worth quieting?

Maybe it's worth quieting, but on the other hand some other people
also needs this to troubleshoot an issue (at least for bdev-backed
mounts, I think it won't cause -EIOdue to SIGTERM.)

I think it's worth to differentiate EINTR from EIO for file-back
mounts, but I need to find other time to work on this later.

Thanks,
Gao Xiang


  reply	other threads:[~2026-12-04  6:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  0:47 erofs: file-backed mount logs "read error -5" when the reader is killed Kel Modderman
2026-12-04  6:11 ` Gao Xiang [this message]
2026-12-04  6:44   ` Kel Modderman

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=axJZg2D-9RBXMUbY@MacBookPro.fritz.box \
    --to=xiang@kernel.org \
    --cc=chao@kernel.org \
    --cc=kelvmod@gmail.com \
    --cc=linux-erofs@lists.ozlabs.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.