From: Justin M. Forbes jforbes@fedoraproject.org
random: replace import_single_range() with import_ubuf()
Upstream commit 6ac805d138709 dropped the iov arg from import_single_range() and upstream commit 9fd7874c0e5c8 replaced import_single_range() with import_ubuff(). As our patch 7c0b728ae37e7 still called import_single_range() in drivers/char/random, this needs to be brought up to date to continue working.
Reported-by: Scott Weaver scweaver@redhat.com Signed-off-by: Justin M. Forbes jforbes@fedoraproject.org
diff --git a/drivers/char/random.c b/drivers/char/random.c index blahblah..blahblah 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -1406,7 +1406,7 @@ SYSCALL_DEFINE3(getrandom, char __user *, ubuf, size_t, len, unsigned int, flags rcu_read_unlock();
if (rng) { - ret = import_single_range(ITER_DEST, ubuf, len, &iov, &iter); + ret = import_ubuf(ITER_DEST, ubuf, len, &iter); if (unlikely(ret)) return ret; ret = rng->extrng_read_iter(&iter, !!(flags & GRND_RANDOM));
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2856
kernel@lists.fedoraproject.org