HomeFreeBSD

opencrypto: Respect alignment constraints in xor_and_encrypt()

Description

opencrypto: Respect alignment constraints in xor_and_encrypt()

Copy operands to an aligned buffer before performing operations which
require alignment. Otherwise it's possible for this code to trigger an
alignment fault on armv7.

Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D41211

Details

Provenance
markjAuthored on Jul 27 2023, 7:44 PM
Reviewer
jhb
Differential Revision
D41211: opencrypto: Respect alignment constraints in xor_and_encrypt()
Parents
rG1be56e0bb1e8: arm/unwind: Check stack pointer boundaries before dereferencing
Branches
Unknown
Tags
Unknown