Bluetooth: allocate data for kpp on heap
authorSalvatore Benedetto <salvatore.benedetto@intel.com>
Tue, 25 Apr 2017 15:59:47 +0000 (16:59 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Apr 2017 10:22:05 +0000 (12:22 +0200)
commit763d9a302ab18da0a0078c9788ed6566d0c974e3
treeccc0213c60b3d08a9292493b27f6ad4a5cb25c1a
parent58771c1cb0023fdd744e76d6cad7716dc4f579ee
Bluetooth: allocate data for kpp on heap

Bluetooth would crash when computing ECDH keys with kpp
if VMAP_STACK is enabled. Fix by allocating data passed
to kpp on heap.

Fixes: 58771c1c ("Bluetooth: convert smp and selftest to crypto kpp
API")
Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/ecdh_helper.c
net/bluetooth/selftest.c