[llvmlinux] Patch: vlais-dm-crypt.patch

Vinícius Tinti viniciustinti at gmail.com
Wed Aug 13 02:51:49 UTC 2014


Hi,

I have updated the patch because an issue on buildbot and I think that
there is another vlais on it. Could you please confirm? Since I am not
so sure I marked the patch as "Not upstreamable" to avoid any further
errors.

Vlais suspect:

  struct iv_tcw_private *tcw = &cc->iv_gen_private.tcw;
  u64 sector = cpu_to_le64((u64)dmreq->iv_sector);
  u8 buf[TCW_WHITENING_SIZE];
- struct {
- struct shash_desc desc;
- char ctx[crypto_shash_descsize(tcw->crc32_tfm)];
- } sdesc;
+ char sdesc[sizeof(struct shash_desc)
+ + crypto_shash_descsize(tcw->crc32_tfm)] CRYPTO_MINALIGN_ATTR;
+ struct shash_desc *desc = (struct shash_desc *)sdesc;

Regards,
Tinti

-- 
Simplicity is the ultimate sophistication


More information about the LLVMLinux mailing list