---
Subject: [PATCH] eCryptfs: NULL crypt_stat dereference during lookup
If ecryptfs_encrypted_view or ecryptfs_xattr_metadata were being
specified as mount options, a NULL pointer dereference was possible
during lookup.
This patch moves the crypt_stat assignment into
ecryptfs_lookup_and_interpose_lower(), ensuring that crypt_stat
will not be NULL before we attempt to dereference it.
Thanks to Dan Carpenter and his static analysis tool, smatch, for
finding this bug.
---
Subject: [PATCH] eCryptfs: NULL crypt_stat dereference during lookup
If ecryptfs_ encrypted_ view or ecryptfs_ xattr_metadata were being
specified as mount options, a NULL pointer dereference was possible
during lookup.
This patch moves the crypt_stat assignment into lookup_ and_interpose_ lower() , ensuring that crypt_stat
ecryptfs_
will not be NULL before we attempt to dereference it.
Thanks to Dan Carpenter and his static analysis tool, smatch, for
finding this bug.
Signed-off-by: Tyler Hicks <email address hidden>
---
Sent upstream: http:// thread. gmane.org/ gmane.linux. kernel/ 809706