]> Pileus Git - ~andy/linux/commit
eCryptfs: fix 32 bit corruption issue
authorColin Ian King <colin.king@canonical.com>
Thu, 24 Oct 2013 14:08:07 +0000 (14:08 +0000)
committerTyler Hicks <tyhicks@canonical.com>
Thu, 24 Oct 2013 19:36:30 +0000 (12:36 -0700)
commit43b7c6c6a4e3916edd186ceb61be0c67d1e0969e
tree422f444513a00a3f6d336ec448af816e1e45180a
parent3edc8376c06133e3386265a824869cad03a4efd4
eCryptfs: fix 32 bit corruption issue

Shifting page->index on 32 bit systems was overflowing, causing
data corruption of > 4GB files. Fix this by casting it first.

https://launchpad.net/bugs/1243636

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reported-by: Lars Duesing <lars.duesing@camelotsweb.de>
Cc: stable@vger.kernel.org # v3.11+
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/crypto.c