aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/af_unix.c
diff options
context:
space:
mode:
authorHelge Deller <[email protected]>2025-05-31 15:08:22 +0000
committerJohn Johansen <[email protected]>2025-07-20 09:19:27 +0000
commitc68804199dd9d63868497a27b5da3c3cd15356db (patch)
treed5c06b84c0494eb086d870e0766eedf1bbce4f40 /security/apparmor/af_unix.c
parentapparmor: Fix 8-byte alignment for initial dfa blob streams (diff)
downloadkernel-c68804199dd9d63868497a27b5da3c3cd15356db.tar.gz
kernel-c68804199dd9d63868497a27b5da3c3cd15356db.zip
apparmor: Fix unaligned memory accesses in KUnit test
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 <[email protected]> Fixes: 98c0cc48e27e ("apparmor: fix policy_unpack_test on big endian systems") Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'security/apparmor/af_unix.c')
0 files changed, 0 insertions, 0 deletions