]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: avoid u128_xor() on potentially misaligned inputs
authorArd Biesheuvel <ardb@kernel.org>
Tue, 5 Jan 2021 16:10:53 +0000 (17:10 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 6 Jan 2021 07:41:48 +0000 (08:41 +0100)
commitfeca03942a733cded7fcd4daa3b131e766b22085
treec342db7e4ee8d397cc23ddece5c48d0bfd811539
parent8adc40eea83c9d9b312e887fef5067ac8d0371c5
Bluetooth: avoid u128_xor() on potentially misaligned inputs

u128_xor() takes pointers to quantities that are assumed to be at least
64-bit aligned, which is not guaranteed to be the case in the smp_c1()
routine. So switch to crypto_xor() instead.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c