]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib: kunit_iov_iter: improve error detection
authorChristian A. Ehrhardt <lk@c--e.de>
Thu, 26 Mar 2026 21:49:04 +0000 (22:49 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Apr 2026 06:36:23 +0000 (23:36 -0700)
commit7278aa840b69e5a31826329ef893230d67cae811
tree02d4f820e93e49159c20ffa5b321fa8228e0463b
parent0b49c7d0ae697fcecd7377cb7dda220f7cd096ff
lib: kunit_iov_iter: improve error detection

In the kunit_iov_iter test prevent the kernel buffer from being a single
physically contiguous region.

Additionally, make sure that the test pattern written to a page in the
buffer depends on the offset of the page within the buffer.

Link: https://lkml.kernel.org/r/20260326214905.818170-5-lk@c--e.de
Signed-off-by: Christian A. Ehrhardt <lk@c--e.de>
Cc: David Howells <dhowells@redhat.com>
Cc: David Gow <davidgow@google.com>
Cc: Kees Cook <kees@kernel.org>
Cc: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/tests/kunit_iov_iter.c