Re: [PATCH 0/2] lib: scatterlist: fix sg_split() partial-coverage geometry + add KUnit tests
From: Andrew Morton
Date: Mon Jun 01 2026 - 20:55:57 EST
On Sun, 31 May 2026 16:42:20 -0700 (PDT) Charles Pellegrini <c4ffein.work@xxxxxxxxx> wrote:
> sg_calculate_split() can decrement its nb_splits counter once too often
> and miss the loop-termination check, corrupting the last output split's
> geometry. This series fixes that and adds a KUnit suite.
Thanks. Has this been observed in real life, or was the patch motivated by
code review?
AI review
(https://sashiko.dev/#/patchset/178027099087.72481.1976843064458686851@xxxxxxxxx)
might have found a pre-existing issue, which you may choose to reject,
fix, add to todo list or ignore. Also a possible issue in the kunit
test changes.
Please take a look, let us know?