RE: [PATCH] keys/encrypted: Fix two crypto-on-the-stack bugs

From: David Laight
Date: Tue Dec 13 2016 - 07:41:11 EST


From: Andy Lutomirski
> Sent: 12 December 2016 20:53
> The driver put a constant buffer of all zeros on the stack and
> pointed a scatterlist entry at it in two places. This doesn't work
> with virtual stacks. Use a static 16-byte buffer of zeros instead.
...

I didn't think you could dma from static data either.

David