]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: Fix & Optimize table creation from possibly unaligned memory
authorHelge Deller <deller@kernel.org>
Wed, 26 Nov 2025 20:15:04 +0000 (21:15 +0100)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 22 Jan 2026 12:52:25 +0000 (04:52 -0800)
commit6fc367bfd4c8886e6b1742aabbd1c0bdc310db3a
tree8eac27a63553f4d610a6efdf1f35c72856ddddd0
parent64802f731214a51dfe3c6c27636b3ddafd003eb0
apparmor: Fix & Optimize table creation from possibly unaligned memory

Source blob may come from userspace and might be unaligned.
Try to optize the copying process by avoiding unaligned memory accesses.

- Added Fixes tag
- Added "Fix &" to description as this doesn't just optimize but fixes
        a potential unaligned memory access
Fixes: e6e8bf418850d ("apparmor: fix restricted endian type warnings for dfa unpack")
Signed-off-by: Helge Deller <deller@gmx.de>
[jj: remove duplicate word "convert" in comment trigger checkpatch warning]
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/match.h
security/apparmor/match.c