Thread (15 messages) 15 messages, 4 authors, 2014-07-10

Re: [PATCH v3 1/3] ima: use ahash API for file hash calculation

From: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Date: 2014-07-09 23:05:45
Also in: lkml

On 10 July 2014 00:00, Marek Vasut [off-list ref] wrote:
On Tuesday, July 08, 2014 at 10:07:16 AM, Dmitry Kasatkin wrote:
[...]
quoted
quoted
Right, but my concern is not about unloading the kernel module, but
about the IMA module parameters left initialized.  The existing code
will continue using ahash (software version), even though the kernel
module was unloaded, not shash.  My question is about the software
implementations of ahash vs. shash performance.

Mimi
If HW driver will not be available, ahash loads generic driver which is
using shash.
Performance of that will be the same as for using shash directly.
Hi Dmitry, I think Mimi is concerned about the crypto accelerator dying mid-
flight.

Imagine a situation where you have a hardware crypto accelerator connected via
USB. You happily use IMA with this setup for days and then someone comes around
and pulls the USB cable out. Will this be able to cope with such situation, for
example by switching to software operations or such in some sane way ?

I presume that's the concern here.

Best regards,
Marek Vasut
Hi Marek,

Nice to here from you. How was your rest stay at Japan?

I have not seen any expression of such concern.
But as we fallback to early allocated shash, which is not USB yet,
then there is no problem.
ahash itself does not bring any other additional problem than shash itself.
They are compiled builtin together.

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