ecryptfs: Bugfix for error related to ecryptfs_hash_buckets
commitae78a9ae2391bebf1b0ad0ff38b5a9cff3130a3e
authorAndre Osterhues <aosterhues@escrypt.com>
Tue, 13 Jul 2010 20:59:17 +0000 (13 15:59 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:18:51 +0000 (2 10:18 -0700)
tree533255fc9a5984beb7d265b5bb15fe74a8cca832
parent4baaa88700f665504702646b908fd7240425bdb5
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