Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package liburing for openSUSE:Factory checked in at 2023-04-22 21:56:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/liburing (Old) and /work/SRC/openSUSE:Factory/.liburing.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "liburing" Sat Apr 22 21:56:42 2023 rev:15 rq:1080969 version:2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/liburing/liburing.changes 2023-02-28 12:48:02.784248224 +0100 +++ /work/SRC/openSUSE:Factory/.liburing.new.1533/liburing.changes 2023-04-22 21:56:43.543876746 +0200 @@ -1,0 +2,6 @@ +Thu Apr 20 20:26:32 UTC 2023 - Gabriel Krisman Bertazi <gabriel.bert...@suse.com> + +- Add 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch + fixes test with kernel <= 5.16 (bsc#1209723) + +------------------------------------------------------------------- New: ---- 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ liburing.spec ++++++ --- /var/tmp/diff_new_pack.as8EFw/_old 2023-04-22 21:56:44.835884470 +0200 +++ /var/tmp/diff_new_pack.as8EFw/_new 2023-04-22 21:56:44.891884805 +0200 @@ -28,6 +28,7 @@ # PATCH-FIX-UPSTREAM: fix tests on big endian Patch1: 0001-test-helpers-fix-socket-length-type.patch Patch2: 0001-Do-not-always-expect-multishot-recv-to-stop-posting-.patch +Patch3: 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: procps ++++++ 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch ++++++ >From 87943e896268efbe85e15f7e59f45a042d2ba8f7 Mon Sep 17 00:00:00 2001 From: Gabriel Krisman Bertazi <kris...@suse.de> Date: Thu, 20 Apr 2023 14:23:55 -0400 Subject: [PATCH] test/file-verify.t: Don't run over mlock limit when run as non-root test/file-verify tries to get 2MB of pinned memory at once, which is higher than the default allowed for non-root users in older kernels (64kb before v5.16, nowadays 8mb). Skip the test for non-root users if the registration fails instead of failing the test. Signed-off-by: Gabriel Krisman Bertazi <kris...@suse.de> --- test/file-verify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/file-verify.c b/test/file-verify.c index f33b24a..89cbb02 100644 --- a/test/file-verify.c +++ b/test/file-verify.c @@ -381,9 +381,12 @@ static int test(struct io_uring *ring, const char *fname, int buffered, v[i].iov_base = buf[i]; v[i].iov_len = CHUNK_SIZE; } - ret = io_uring_register_buffers(ring, v, READ_BATCH); + ret = t_register_buffers(ring, v, READ_BATCH); if (ret) { - fprintf(stderr, "Error buffer reg %d\n", ret); + if (ret == T_SETUP_SKIP) { + ret = 0; + goto free_bufs; + } goto err; } } @@ -477,6 +480,7 @@ static int test(struct io_uring *ring, const char *fname, int buffered, done: if (registered) io_uring_unregister_buffers(ring); +free_bufs: if (vectored) { for (j = 0; j < READ_BATCH; j++) for (i = 0; i < nr_vecs; i++) -- 2.40.0