]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop queue-5.10/apparmor-fix-unaligned-memory-accesses-in-kunit-test.patch master
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Aug 2025 11:49:51 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Aug 2025 11:49:51 +0000 (13:49 +0200)
Breaks the build

queue-5.10/apparmor-fix-unaligned-memory-accesses-in-kunit-test.patch [deleted file]
queue-5.10/series

diff --git a/queue-5.10/apparmor-fix-unaligned-memory-accesses-in-kunit-test.patch b/queue-5.10/apparmor-fix-unaligned-memory-accesses-in-kunit-test.patch
deleted file mode 100644 (file)
index 6721dd9..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-From 3350c88dfd872d04adab010f745366950d75e48c Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Sat, 31 May 2025 17:08:22 +0200
-Subject: apparmor: Fix unaligned memory accesses in KUnit test
-
-From: Helge Deller <deller@gmx.de>
-
-[ Upstream commit c68804199dd9d63868497a27b5da3c3cd15356db ]
-
-The testcase triggers some unnecessary unaligned memory accesses on the
-parisc architecture:
-  Kernel: unaligned access to 0x12f28e27 in policy_unpack_test_init+0x180/0x374 (iir 0x0cdc1280)
-  Kernel: unaligned access to 0x12f28e67 in policy_unpack_test_init+0x270/0x374 (iir 0x64dc00ce)
-
-Use the existing helper functions put_unaligned_le32() and
-put_unaligned_le16() to avoid such warnings on architectures which
-prefer aligned memory accesses.
-
-Signed-off-by: Helge Deller <deller@gmx.de>
-Fixes: 98c0cc48e27e ("apparmor: fix policy_unpack_test on big endian systems")
-Signed-off-by: John Johansen <john.johansen@canonical.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- security/apparmor/policy_unpack_test.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/security/apparmor/policy_unpack_test.c b/security/apparmor/policy_unpack_test.c
-index 128baa08a989..50fdc390ad2d 100644
---- a/security/apparmor/policy_unpack_test.c
-+++ b/security/apparmor/policy_unpack_test.c
-@@ -8,6 +8,8 @@
- #include "include/policy.h"
- #include "include/policy_unpack.h"
-+#include <linux/unaligned.h>
-+
- #define TEST_STRING_NAME "TEST_STRING"
- #define TEST_STRING_DATA "testing"
- #define TEST_STRING_BUF_OFFSET \
-@@ -78,7 +80,7 @@ struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf,
-       *(buf + 1) = strlen(TEST_U32_NAME) + 1;
-       strcpy(buf + 3, TEST_U32_NAME);
-       *(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32;
--      *((__le32 *)(buf + 3 + strlen(TEST_U32_NAME) + 2)) = cpu_to_le32(TEST_U32_DATA);
-+      put_unaligned_le32(TEST_U32_DATA, buf + 3 + strlen(TEST_U32_NAME) + 2);
-       buf = e->start + TEST_NAMED_U64_BUF_OFFSET;
-       *buf = AA_NAME;
-@@ -101,7 +103,7 @@ struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf,
-       *(buf + 1) = strlen(TEST_ARRAY_NAME) + 1;
-       strcpy(buf + 3, TEST_ARRAY_NAME);
-       *(buf + 3 + strlen(TEST_ARRAY_NAME) + 1) = AA_ARRAY;
--      *((__le16 *)(buf + 3 + strlen(TEST_ARRAY_NAME) + 2)) = cpu_to_le16(TEST_ARRAY_SIZE);
-+      put_unaligned_le16(TEST_ARRAY_SIZE, buf + 3 + strlen(TEST_ARRAY_NAME) + 2);
-       return e;
- }
--- 
-2.39.5
-
index bb545c708bb5c3a65c4a03767291901675232c18..d260a6a7af7200cc2fa39b7f92832917a6add3fc 100644 (file)
@@ -146,7 +146,6 @@ mtd-rawnand-atmel-set-pmecc-data-setup-time.patch
 vhost-scsi-fix-log-flooding-with-target-does-not-exi.patch
 bpf-check-flow_dissector-ctx-accesses-are-aligned.patch
 apparmor-ensure-wb_history_size-value-is-a-power-of-.patch
 vhost-scsi-fix-log-flooding-with-target-does-not-exi.patch
 bpf-check-flow_dissector-ctx-accesses-are-aligned.patch
 apparmor-ensure-wb_history_size-value-is-a-power-of-.patch
-apparmor-fix-unaligned-memory-accesses-in-kunit-test.patch
 module-restore-the-moduleparam-prefix-length-check.patch
 rtc-ds1307-fix-incorrect-maximum-clock-rate-handling.patch
 rtc-hym8563-fix-incorrect-maximum-clock-rate-handlin.patch
 module-restore-the-moduleparam-prefix-length-check.patch
 rtc-ds1307-fix-incorrect-maximum-clock-rate-handling.patch
 rtc-hym8563-fix-incorrect-maximum-clock-rate-handlin.patch