aesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.
authorSascha Wildner <saw@online.de>
Sat, 23 Apr 2011 08:56:05 +0000 (10:56 +0200)
committerSascha Wildner <saw@online.de>
Sat, 23 Apr 2011 08:56:05 +0000 (10:56 +0200)
commit21bf6268304cfb3defd147b2fb9e3252696f629e
treef3619275769d3487120ace60325a49147c057cf6
parent66ddb4d5f476712d5e4d34266a58106bfbe361d9
aesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.

Instead, align it ourselves and keep the original address for kfree().
This is a bit hacky but not too hacky (and it is done the same way in
padlock(4)).

In the middle run, we probably need some kmalloc() flavor that can do
alignment.

In-discussion-with: alexh
sys/crypto/aesni/aesni.c
sys/crypto/aesni/aesni.h