]> git.karo-electronics.de Git - karo-tx-linux.git/commit
eCryptfs: Fix oops when printing debug info in extent crypto functions
authorTyler Hicks <tyhicks@canonical.com>
Tue, 24 Jan 2012 16:02:22 +0000 (10:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:18:51 +0000 (09:18 -0800)
commitdf29ca6c2b93813c987b35972b215d9b2a0a9159
tree21ce785b8fae037cbb359eb85092059851fff018
parent714ca4ef28276f142b00ff2e1893f472cc30b07b
eCryptfs: Fix oops when printing debug info in extent crypto functions

commit 58ded24f0fcb85bddb665baba75892f6ad0f4b8a upstream.

If pages passed to the eCryptfs extent-based crypto functions are not
mapped and the module parameter ecryptfs_verbosity=1 was specified at
loading time, a NULL pointer dereference will occur.

Note that this wouldn't happen on a production system, as you wouldn't
pass ecryptfs_verbosity=1 on a production system. It leaks private
information to the system logs and is for debugging only.

The debugging info printed in these messages is no longer very useful
and rather than doing a kmap() in these debugging paths, it will be
better to simply remove the debugging paths completely.

https://launchpad.net/bugs/913651

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ecryptfs/crypto.c