From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3F79606A322 for ; Fri, 4 Dec 2026 06:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CWXQEZD/ Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jgh2h1jjZz2yD3; Fri, 04 Dec 2026 17:11:24 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796364684; cv=none; b=LMnc3iTYHXe1DalzGYwOVKYUqR+Wy8R7pgPwh68CmgHaSZvQdNQ+EmRzpsT7nKVOIe1njhfTVRlJvR7Dmk/6u6nJ27aa7LLK/NO22KlxQW8WgusnZzpDbX/Cp8LKE0RAwEciyp4eLHcTx4STT3OPTAVP3J0Hyr/ISgr3JOhesv6F4zwxf1ipLlRklCNgdfxhEj7zT0c01Rw+D+07417elQrFEsyZ5CuS0FTmv6ZJUh8KLuCc2tvfcFaKzV0fhyUxmWq3fb0nvoaIYFPaDcnEVf+Wxk0ucU70JXNKaRVSjYTUX6xQBk4KhXIf4eboJyb2SbmsgQHART8V9vEYcJbexg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796364684; c=relaxed/relaxed; bh=BLnjeL3tS2c0vm9oHw6umXgJ04qhTI0WgJGvQ+fG8M8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S0pcbid4VJ7dbmyDaSzta4FXoeGT4RkluOqFe5Vos41dSSBbaIg09XGtxJ9lulauAsqyjzzrl36vFaCfR7mkcSWfss1ya6yGK9600WcJevZtJxsmlbNt3EnxjvyO+HuxyWbQKb7qG//laKMYLomBZoihAR2rrkilyDNMnDUr4V63gS8nMg8KMKJ+/6hhrR99Zq0Bd1uAS6M8t+I0FDVJjL1U1jRlWzTC8HiGIkN54KDi7IbwFNf0qdl9ScreVVC7FihCohau6COPOhwegcEIW+GthuZd02P3+xRnFsiCOPn1iS9nC/ii9+xZDBXGfWeX1cmfbFVFXIBzeWriweiXmw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CWXQEZD/; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=xiang@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CWXQEZD/; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=xiang@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jgh2g45Zfz2xns for ; Fri, 04 Dec 2026 17:11:23 +1100 (AEDT) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 1A04C41AEB; Fri, 4 Dec 2026 06:11:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D75F51F000C2; Fri, 4 Dec 2026 06:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796364681; bh=BLnjeL3tS2c0vm9oHw6umXgJ04qhTI0WgJGvQ+fG8M8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=CWXQEZD/0fVUk3nRpRhjwAPgURlvsC6/kTAjNCBOfTvooVoYufe/M33y4BmfQTnDk 9pqrrQ0LL97QjWuAdUvWvMaQbbnPlsdDTtxnOmYY1J3UG1pmmaj6+AaS2DEO2L3SCn G6S/acvSlXEZOS+8TBv1etvSNwWbNeq146NuJD9s5uFg7LJw7EVq5w6v6sW876QOue V+cMgJZiHz2QzxhOZxyfGbvJrg0qZaK0EkFDYQRxpgr0g+xfxA5VJGSX76yCph91k8 cTzdxJ+yxsgF+Rx+Ykrs1lEt4JtlfGBq01dvihRk/h1LNLQ+dIkbJyPPm9coa0fHAq EE1G3CdaCq0/g== Date: Fri, 4 Dec 2026 07:11:15 +0100 From: Gao Xiang To: Kel Modderman 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 Message-ID: Mail-Followup-To: Kel Modderman , linux-erofs@lists.ozlabs.org, xiang@kernel.org, chao@kernel.org References: X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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