DragonFly commits List (threaded) for 2011-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: aesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.
commit 21bf6268304cfb3defd147b2fb9e3252696f629e
Author: Sascha Wildner <saw@online.de>
Date: Sat Apr 23 10:56:05 2011 +0200
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
Summary of changes:
sys/crypto/aesni/aesni.c | 19 ++++++++++++++-----
sys/crypto/aesni/aesni.h | 3 +++
2 files changed, 17 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/21bf6268304cfb3defd147b2fb9e3252696f629e
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]