]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 11:54:01 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 11:54:01 +0000 (13:54 +0200)
added patches:
selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch

queue-4.14/selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch [new file with mode: 0644]
queue-4.14/series [new file with mode: 0644]
queue-4.19/series [new file with mode: 0644]
queue-5.4/series [new file with mode: 0644]

diff --git a/queue-4.14/selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch b/queue-4.14/selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch
new file mode 100644 (file)
index 0000000..56b8e3e
--- /dev/null
@@ -0,0 +1,27 @@
+From a328a9deaa6d57cedbc05ba47c0b1e4a8f346b6a Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Wed, 28 Jul 2021 13:51:58 +0200
+Subject: selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+When backporting 0db282ba2c12 ("selftest: use mmap instead of
+posix_memalign to allocate memory") to this stable branch, I forgot a {
+breaking the build.
+
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ tools/testing/selftests/vm/userfaultfd.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/tools/testing/selftests/vm/userfaultfd.c
++++ b/tools/testing/selftests/vm/userfaultfd.c
+@@ -131,7 +131,7 @@ static void anon_allocate_area(void **al
+ {
+       *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE,
+                          MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
+-      if (*alloc_area == MAP_FAILED)
++      if (*alloc_area == MAP_FAILED) {
+               fprintf(stderr, "mmap of anonymous memory failed");
+               *alloc_area = NULL;
+       }
diff --git a/queue-4.14/series b/queue-4.14/series
new file mode 100644 (file)
index 0000000..f342edf
--- /dev/null
@@ -0,0 +1 @@
+selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch
diff --git a/queue-4.19/series b/queue-4.19/series
new file mode 100644 (file)
index 0000000..f342edf
--- /dev/null
@@ -0,0 +1 @@
+selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch
diff --git a/queue-5.4/series b/queue-5.4/series
new file mode 100644 (file)
index 0000000..f342edf
--- /dev/null
@@ -0,0 +1 @@
+selftest-fix-build-error-in-tools-testing-selftests-vm-userfaultfd.c.patch