]> git.karo-electronics.de Git - karo-tx-linux.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)
commit4d3c4e5b8cae3bb45ba933a22670504239958aa1
tree810780fe18d77d514578323183221ebbc1ced2c3
parent82d0d3e7e69ab509b5c91b61f12bd3593a7c6dcb
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