Thread (30 messages) 30 messages, 7 authors, 2014-11-16

Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

From: Maxime Ripard <hidden>
Date: 2014-10-31 08:15:11
Also in: linux-arm-kernel, linux-crypto, lkml

On Fri, Oct 31, 2014 at 03:20:30PM +0800, Herbert Xu wrote:
On Thu, Oct 30, 2014 at 06:19:33PM +0100, Maxime Ripard wrote:
quoted
quoted
With AF_ALG and cryptodev, the SG is in highmem. Verified with some
PageHighMem().
Then fix AF_ALG and cryptodev, because all of the other drivers might
be affected.
No it's the driver that needs to be fixed.  Of course if there
are enough drivers it may be worthwhile adding either copying or
a software fallback for highmem requests.
I don't understand here. Why would other drivers *not* being affected?

If the scatter list passed by AF_ALG can be in highmem, I guess it's
the case for every driver out there. Almost every kernel code I've
seen so far makes the assumption that the memory it has is mapped and
accessible.

Somehow, it's the driver's fault now, and not the part of kernel that
actually does the allocation?

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help