Re: [PATCH 1/2] arm64 aes: fix encryption of unaligned data

2014-07-28 Thread Herbert Xu
On Fri, Jul 25, 2014 at 07:40:20PM -0400, Mikulas Patocka wrote: > cryptsetup fails on arm64 when using kernel encryption via AF_ALG socket. > See https://bugzilla.redhat.com/show_bug.cgi?id=1122937 > > The bug is caused by incorrect handling of unaligned data in > arch/arm64/crypto/aes-glue.c. Cr

Re: [PATCH 1/2] arm64 aes: fix encryption of unaligned data

2014-07-26 Thread Ard Biesheuvel
On 26 July 2014 17:31, Mikulas Patocka wrote: > > > On Sat, 26 Jul 2014, Ard Biesheuvel wrote: > >> On 26 July 2014 15:13, Ard Biesheuvel wrote: >> > On 26 July 2014 01:40, Mikulas Patocka wrote: >> >> cryptsetup fails on arm64 when using kernel encryption via AF_ALG socket. >> >> See https://bu

Re: [PATCH 1/2] arm64 aes: fix encryption of unaligned data

2014-07-26 Thread Mikulas Patocka
On Sat, 26 Jul 2014, Ard Biesheuvel wrote: > On 26 July 2014 15:13, Ard Biesheuvel wrote: > > On 26 July 2014 01:40, Mikulas Patocka wrote: > >> cryptsetup fails on arm64 when using kernel encryption via AF_ALG socket. > >> See https://bugzilla.redhat.com/show_bug.cgi?id=1122937 > >> > >> The

Re: [PATCH 1/2] arm64 aes: fix encryption of unaligned data

2014-07-26 Thread Ard Biesheuvel
On 26 July 2014 15:13, Ard Biesheuvel wrote: > On 26 July 2014 01:40, Mikulas Patocka wrote: >> cryptsetup fails on arm64 when using kernel encryption via AF_ALG socket. >> See https://bugzilla.redhat.com/show_bug.cgi?id=1122937 >> >> The bug is caused by incorrect handling of unaligned data in >

Re: [PATCH 1/2] arm64 aes: fix encryption of unaligned data

2014-07-26 Thread Ard Biesheuvel
On 26 July 2014 01:40, Mikulas Patocka wrote: > cryptsetup fails on arm64 when using kernel encryption via AF_ALG socket. > See https://bugzilla.redhat.com/show_bug.cgi?id=1122937 > > The bug is caused by incorrect handling of unaligned data in > arch/arm64/crypto/aes-glue.c. Cryptsetup creates a

[PATCH 1/2] arm64 aes: fix encryption of unaligned data

2014-07-25 Thread Mikulas Patocka
cryptsetup fails on arm64 when using kernel encryption via AF_ALG socket. See https://bugzilla.redhat.com/show_bug.cgi?id=1122937 The bug is caused by incorrect handling of unaligned data in arch/arm64/crypto/aes-glue.c. Cryptsetup creates a buffer that is aligned on 8 bytes, but not on 16 bytes.