]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Jul 2010 02:59:24 +0000 (19:59 -0700)
commit950ff9820a6b2a9ce3094e78c7f885d243239842
treeb8a44b0ed1560ae3f00f1ff4e342f43b7422bcc3
parent11ab0aee5e43825fb753e8f5ad3efe467d42d496
ecryptfs: Bugfix for error related to ecryptfs_hash_buckets

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>
fs/ecryptfs/messaging.c