eCryptfs: parse_tag_3_packet check tag 3 packet encrypted key size
authorRamon de Carvalho Valle <ramon@risesecurity.org>
Tue, 28 Jul 2009 18:58:22 +0000 (13:58 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Jul 2009 21:26:06 +0000 (14:26 -0700)
commitf151cd2c54ddc7714e2f740681350476cda03a28
tree81591bb25357c0d02a0549efadb62b67ba166434
parent6352a29305373ae6196491e6d4669f301e26492e
eCryptfs: parse_tag_3_packet check tag 3 packet encrypted key size

The parse_tag_3_packet function does not check if the tag 3 packet contains a
encrypted key size larger than ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES.

Signed-off-by: Ramon de Carvalho Valle <ramon@risesecurity.org>
[tyhicks@linux.vnet.ibm.com: Added printk newline and changed goto to out_free]
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Cc: stable@kernel.org (2.6.27 and 30)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/keystore.c