From: Yifan Zhao <stopire@gmail.com>
To: linux-erofs@lists.ozlabs.org
Cc: xiang@kernel.org, Yifan Zhao <stopire@gmail.com>
Subject: [PATCH v2 0/9] erofs-utils: fix issues found by LLMs
Date: Tue, 17 Nov 2026 15:26:20 +0800 [thread overview]
Message-ID: <cover.1794899782.git.stopire@gmail.com> (raw)
In-Reply-To: <20261112124725.2774244-1-stopire@gmail.com>
This patchset revises patches 4 and 8 of v1. The other six patches
have already been applied. The nine patches are organized as follows:
1. From v1 patch 4: fix the inline data buffer leak on rebuild failure.
2. From v1 patch 4: fix the fragment buffer leak on realloc() failure.
3. From v1 patch 8: fix erofs_io_read() caller error handling.
4. From v1 patch 8: fix erofs_io_pread() caller error handling.
5. New in v2: fix erofs_io_pwrite() caller error handling.
6. New in v2: fix __erofs_io_pwrite() caller error handling.
7. New in v2: fix erofs_io_fstat() and erofs_io_ftruncate() error returns.
8. From v1 patch 8: report the ublk handler's actual I/O result.
9. From v1 patch 8: limit OCI blob copies to the requested length.
v1: https://lore.kernel.org/linux-erofs/20261112124725.2774244-1-stopire@gmail.com/
Yifan Zhao (9):
erofs-utils: lib: free inline data on rebuild failure
erofs-utils: lib: fix fragment buffer leak on realloc failure
erofs-utils: lib: fix erofs_io_read() caller error handling
erofs-utils: lib: fix erofs_io_pread() caller error handling
erofs-utils: lib: fix erofs_io_pwrite() caller error handling
erofs-utils: lib: fix __erofs_io_pwrite() caller error handling
erofs-utils: lib: return negative errno from
erofs_io_{fstat,ftruncate}
erofs-utils: ublk: report the handler's real I/O result
erofs-utils: lib: bound OCI blob reads to the requested length
lib/backends/fanotify.c | 3 ++-
lib/backends/nbd.c | 2 ++
lib/backends/ublk.c | 2 +-
lib/compress.c | 4 +++-
lib/fragments.c | 6 ++----
lib/inode.c | 13 ++++++-------
lib/io.c | 24 +++++++++++++++---------
lib/remotes/oci.c | 1 +
lib/super.c | 2 +-
mount/main.c | 10 +++++-----
10 files changed, 38 insertions(+), 29 deletions(-)
base-commit: b9dd73fb478ac88fc142e6430ed71be43dc65cab
--
2.56.0
next prev parent reply other threads:[~2026-11-17 7:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 12:47 [PATCH 0/8] erofs-utils: fix issues found by LLMs Yifan Zhao
2026-11-12 12:47 ` [PATCH 1/8] erofs-utils: lib: fix arithmetic overflow in large file handling Yifan Zhao
2026-11-12 12:47 ` [PATCH 2/8] erofs-utils: mkfs: fix incremental superblock stack overread Yifan Zhao
2026-11-12 12:47 ` [PATCH 3/8] erofs-utils: tar: fix out-of-bounds access when trimming PAX paths Yifan Zhao
2026-11-12 12:47 ` [PATCH 4/8] erofs-utils: lib: fix buffer leaks in error paths Yifan Zhao
2026-11-12 23:20 ` Gao Xiang
2026-11-12 12:47 ` [PATCH 5/8] erofs-utils: exclude: fix stack overflow when checking long paths Yifan Zhao
2026-11-12 12:47 ` [PATCH 6/8] erofs-utils: lib: fix gzran EOF handling and state leaks Yifan Zhao
2026-11-12 12:47 ` [PATCH 7/8] erofs-utils: lib: fix metabox inline data reads Yifan Zhao
2026-11-12 12:47 ` [PATCH 8/8] erofs-utils: fix read error and short read handling Yifan Zhao
2026-11-12 23:41 ` Gao Xiang
2026-11-17 7:26 ` Yifan Zhao [this message]
2026-11-17 7:26 ` [PATCH v2 1/9] erofs-utils: lib: free inline data on rebuild failure Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 2/9] erofs-utils: lib: fix fragment buffer leak on realloc failure Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 3/9] erofs-utils: lib: fix erofs_io_read() caller error handling Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 4/9] erofs-utils: lib: fix erofs_io_pread() " Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 5/9] erofs-utils: lib: fix erofs_io_pwrite() " Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 6/9] erofs-utils: lib: fix __erofs_io_pwrite() " Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 7/9] erofs-utils: lib: return negative errno from erofs_io_{fstat,ftruncate} Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 8/9] erofs-utils: ublk: report the handler's real I/O result Yifan Zhao
2026-11-17 7:26 ` [PATCH v2 9/9] erofs-utils: lib: bound OCI blob reads to the requested length Yifan Zhao
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=cover.1794899782.git.stopire@gmail.com \
--to=stopire@gmail.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=xiang@kernel.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.