summaryrefslogtreecommitdiffstats
path: root/Documentation/preempt-locking.txt
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@canonical.com>2012-01-12 11:30:44 +0100
committerTyler Hicks <tyhicks@canonical.com>2012-01-25 14:43:39 -0600
commitdb10e556518eb9d21ee92ff944530d84349684f4 (patch)
tree84a82f496a4fe4ee90812b5d7f2cd358f9730911 /Documentation/preempt-locking.txt
parentbb4503615d95d6826b7907986ad574e3157877e8 (diff)
downloadlinux-db10e556518eb9d21ee92ff944530d84349684f4.tar.gz
linux-db10e556518eb9d21ee92ff944530d84349684f4.tar.bz2
linux-db10e556518eb9d21ee92ff944530d84349684f4.zip
eCryptfs: Sanitize write counts of /dev/ecryptfs
A malicious count value specified when writing to /dev/ecryptfs may result in a a very large kernel memory allocation. This patch peeks at the specified packet payload size, adds that to the size of the packet headers and compares the result with the write count value. The resulting maximum memory allocation size is approximately 532 bytes. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Reported-by: Sasha Levin <levinsasha928@gmail.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'Documentation/preempt-locking.txt')
0 files changed, 0 insertions, 0 deletions