]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: NULL pointer dereference in ecryptfs_send_miscdev()
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Sun, 15 Mar 2009 19:17:01 +0000 (14:17 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 22 Apr 2009 08:54:13 +0000 (03:54 -0500)
commit583369f3690b861fbcdacb252eb7fe2d8c08261f
tree5a912a7515234eb73147c32197ecbc7ca429bde8
parent98dd17607a2ed147a488a21ac90944f6ea4c42df
eCryptfs: NULL pointer dereference in ecryptfs_send_miscdev()

If data is NULL, msg_ctx->msg is set to NULL and then dereferenced
afterwards.  ecryptfs_send_raw_message() is the only place that
ecryptfs_send_miscdev() is called with data being NULL, but the only
caller of that function (ecryptfs_process_helo()) is never called.  In
short, there is currently no way to trigger the NULL pointer
dereference.

This patch removes the two unused functions and modifies
ecryptfs_send_miscdev() to remove the NULL dereferences.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/messaging.c
fs/ecryptfs/miscdev.c