]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ecryptfs: Bugfix for error related to ecryptfs_hash_buckets
authorAndre Osterhues <aosterhues@escrypt.com>
Tue, 13 Jul 2010 20:59:17 +0000 (15:59 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:26:50 +0000 (10:26 -0700)
commit731ffe0bf1ced2526be3d0e25ca45818cac80ff2
tree014214120e6449c715638501a652197818eae118
parent6401245fec18068b94f557f0ba9bb23a9f8e9eec
ecryptfs: Bugfix for error related to ecryptfs_hash_buckets

commit a6f80fb7b5986fda663d94079d3bba0937a6b6ff upstream.

The function ecryptfs_uid_hash wrongly assumes that the
second parameter to hash_long() is the number of hash
buckets instead of the number of hash bits.
This patch fixes that and renames the variable
ecryptfs_hash_buckets to ecryptfs_hash_bits to make it
clearer.

Fixes: CVE-2010-2492
Signed-off-by: Andre Osterhues <aosterhues@escrypt.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/messaging.c