]> git.baikalelectronics.ru Git - kernel.git/commit
ext4 crypto: allocate the right amount of memory for the on-disk symlink
authorTheodore Ts'o <tytso@mit.edu>
Sun, 31 May 2015 17:35:32 +0000 (13:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 31 May 2015 17:35:32 +0000 (13:35 -0400)
commit6fd12aa1e14e93d3b1442de95d0e569a25853ed4
tree810780fe18d77d514578323183221ebbc1ced2c3
parentbc29c8d9ee57f9f43e028e9eded7b446b0e4bdc8
ext4 crypto: allocate the right amount of memory for the on-disk symlink

Previously we were taking the required padding when allocating space
for the on-disk symlink.  This caused a buffer overrun which could
trigger a krenel crash when running fsstress.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto_fname.c
fs/ext4/ext4.h
fs/ext4/namei.c