commit | 717f4b1c52135f279112df82583e0c77e80f90de | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Wed Jan 10 09:32:47 2018 -0500 |
committer | Mike Snitzer <snitzer@redhat.com> | Wed Jan 17 09:08:57 2018 -0500 |
tree | cac65d1d4f60325acad7923a218f051dec9e3bb6 | |
parent | 27c7003697fc2c78f965984aa224ef26cd6b2949 [diff] |
dm integrity: don't store cipher request on the stack Some asynchronous cipher implementations may use DMA. The stack may be mapped in the vmalloc area that doesn't support DMA. Therefore, the cipher request and initialization vector shouldn't be on the stack. Fix this by allocating the request and iv with kmalloc. Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>