]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.1-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 May 2023 07:43:05 +0000 (08:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 May 2023 07:43:05 +0000 (08:43 +0100)
added patches:
selftests-memfd-fix-unknown-type-name-build-failure.patch

queue-6.1/selftests-memfd-fix-unknown-type-name-build-failure.patch [new file with mode: 0644]
queue-6.1/series

diff --git a/queue-6.1/selftests-memfd-fix-unknown-type-name-build-failure.patch b/queue-6.1/selftests-memfd-fix-unknown-type-name-build-failure.patch
new file mode 100644 (file)
index 0000000..6891edc
--- /dev/null
@@ -0,0 +1,38 @@
+From hargar@linux.microsoft.com  Sun May 28 08:40:32 2023
+From: Hardik Garg <hargar@linux.microsoft.com>
+Date: Fri, 26 May 2023 16:21:36 -0700
+Subject: selftests/memfd: Fix unknown type name build failure
+To: stable@vger.kernel.org
+Cc: shuah@kernel.org, jeffxu@google.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, code@tyhicks.com, niyelchu@linux.microsoft.com
+Message-ID: <20230526232136.255244-1-hargar@linux.microsoft.com>
+
+From: Hardik Garg <hargar@linux.microsoft.com>
+
+Partially backport v6.3 commit 11f75a01448f ("selftests/memfd: add tests
+for MFD_NOEXEC_SEAL MFD_EXEC") to fix an unknown type name build error.
+In some systems, the __u64 typedef is not present due to differences in
+system headers, causing compilation errors like this one:
+
+fuse_test.c:64:8: error: unknown type name '__u64'
+   64 | static __u64 mfd_assert_get_seals(int fd)
+
+This header includes the  __u64 typedef which increases the likelihood
+of successful compilation on a wider variety of systems.
+
+Signed-off-by: Hardik Garg <hargar@linux.microsoft.com>
+Reviewed-by: Tyler Hicks (Microsoft) <code@tyhicks.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ tools/testing/selftests/memfd/fuse_test.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/tools/testing/selftests/memfd/fuse_test.c
++++ b/tools/testing/selftests/memfd/fuse_test.c
+@@ -22,6 +22,7 @@
+ #include <linux/falloc.h>
+ #include <fcntl.h>
+ #include <linux/memfd.h>
++#include <linux/types.h>
+ #include <sched.h>
+ #include <stdio.h>
+ #include <stdlib.h>
index 3a44129c3cb00eeb15b2da93551f3bfacfcbd1e6..528a3266516cc71284a7f3bbd1dcfed79296cdbd 100644 (file)
@@ -47,3 +47,4 @@ revert-android-binder-stop-saving-a-pointer-to-the-vma.patch
 binder-add-lockless-binder_alloc_-set-get-_vma.patch
 binder-fix-uaf-caused-by-faulty-buffer-cleanup.patch
 binder-fix-uaf-of-alloc-vma-in-race-with-munmap.patch
+selftests-memfd-fix-unknown-type-name-build-failure.patch