Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 921079 Details for
Bug 1122937
aarch64 AES crypto: block misalignment causes crash or data corruption and cryptsetup fails to activate partitions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
A patch for a similar bug in arm32 code
arm-aes-fix.patch (text/plain), 2.07 KB, created by
Mikuláš Patočka
on 2014-07-25 23:18:17 UTC
(
hide
)
Description:
A patch for a similar bug in arm32 code
Filename:
MIME Type:
Creator:
Mikuláš Patočka
Created:
2014-07-25 23:18:17 UTC
Size:
2.07 KB
patch
obsolete
>arm aes: fix encryption of unaligned data > >Fix the same alignment bug as in arm64 - we need to pass residue >unprocessed bytes as the last argument to blkcipher_walk_done. > >Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> >Cc: stable@vger.kernel.org # 3.13+ > >Index: linux-3.16.0-0.rc6.git1.1.fc21.aarch64/arch/arm/crypto/aesbs-glue.c >=================================================================== >--- linux-3.16.0-0.rc6.git1.1.fc21.aarch64.orig/arch/arm/crypto/aesbs-glue.c >+++ linux-3.16.0-0.rc6.git1.1.fc21.aarch64/arch/arm/crypto/aesbs-glue.c >@@ -137,7 +137,7 @@ static int aesbs_cbc_encrypt(struct blkc > dst += AES_BLOCK_SIZE; > } while (--blocks); > } >- err = blkcipher_walk_done(desc, &walk, 0); >+ err = blkcipher_walk_done(desc, &walk, walk.nbytes % AES_BLOCK_SIZE); > } > return err; > } >@@ -158,7 +158,7 @@ static int aesbs_cbc_decrypt(struct blkc > bsaes_cbc_encrypt(walk.src.virt.addr, walk.dst.virt.addr, > walk.nbytes, &ctx->dec, walk.iv); > kernel_neon_end(); >- err = blkcipher_walk_done(desc, &walk, 0); >+ err = blkcipher_walk_done(desc, &walk, walk.nbytes % AES_BLOCK_SIZE); > } > while (walk.nbytes) { > u32 blocks = walk.nbytes / AES_BLOCK_SIZE; >@@ -182,7 +182,7 @@ static int aesbs_cbc_decrypt(struct blkc > dst += AES_BLOCK_SIZE; > src += AES_BLOCK_SIZE; > } while (--blocks); >- err = blkcipher_walk_done(desc, &walk, 0); >+ err = blkcipher_walk_done(desc, &walk, walk.nbytes % AES_BLOCK_SIZE); > } > return err; > } >@@ -268,7 +268,7 @@ static int aesbs_xts_encrypt(struct blkc > bsaes_xts_encrypt(walk.src.virt.addr, walk.dst.virt.addr, > walk.nbytes, &ctx->enc, walk.iv); > kernel_neon_end(); >- err = blkcipher_walk_done(desc, &walk, 0); >+ err = blkcipher_walk_done(desc, &walk, walk.nbytes % AES_BLOCK_SIZE); > } > return err; > } >@@ -292,7 +292,7 @@ static int aesbs_xts_decrypt(struct blkc > bsaes_xts_decrypt(walk.src.virt.addr, walk.dst.virt.addr, > walk.nbytes, &ctx->dec, walk.iv); > kernel_neon_end(); >- err = blkcipher_walk_done(desc, &walk, 0); >+ err = blkcipher_walk_done(desc, &walk, walk.nbytes % AES_BLOCK_SIZE); > } > return err; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1122937
:
920928
|
920929
|
921078
| 921079