Skip to content

erofs-utils: fix issues found by LLMs

Yifan Zhao linux-erofs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v18 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9erofs-utils: lib: free inline data on rebuild failurelib/compress.c+2 -00 replies
2/9erofs-utils: lib: fix fragment buffer leak on realloc failurelib/fragments.c+0 -10 replies
3/9erofs-utils: lib: fix erofs_io_read() caller error handlinglib/backends/nbd.c lib/compress.c lib/inode.c+4 -20 replies
4/9erofs-utils: lib: fix erofs_io_pread() caller error handlinglib/backends/fanotify.c lib/fragments.c lib/inode.c +2 more+14 -140 replies
5/9erofs-utils: lib: fix erofs_io_pwrite() caller error handlinglib/io.c+9 -70 replies
6/9erofs-utils: lib: fix __erofs_io_pwrite() caller error handlinglib/fragments.c+1 -20 replies
7/9erofs-utils: lib: return negative errno from erofs_io_{fstat,ftruncate}lib/io.c+6 -20 replies
8/9erofs-utils: ublk: report the handler's real I/O resultlib/backends/ublk.c+1 -10 replies
9/9erofs-utils: lib: bound OCI blob reads to the requested lengthlib/remotes/oci.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/9] erofs-utils: fix issues found by LLMs

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/[email protected]/

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

Signature · 1 line
2.56.0