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)
commitef0bb5adc1a3cdbf20c77b8ba841d2eca7c7dc5a
treec342db7e4ee8d397cc23ddece5c48d0bfd811539
parentb649813eadbc062d8682f7a20aa025275707dd1f
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