Patch "ext4: fix memory leak when symlink decryption fails" has been added to the 4.8-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ext4: fix memory leak when symlink decryption fails
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ext4-fix-memory-leak-when-symlink-decryption-fails.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
dcce7a46c6f28f41447272fb44348ead8f584573Mon Sep 17 00:00:00 2001
From: Eric Biggers <[email protected]>
Date: Thu, 15 Sep 2016 13:13:13 -0400
Subject: ext4: fix memory leak when symlink decryption fails
From: Eric Biggers <[email protected]>
commit dcce7a46c6f28f41447272fb44348ead8f584573 upstream.
This bug was introduced in v4.8-rc1.
--- fs/ext4/symlink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/ext4/symlink.c +1 -2
@@ -65,13 +65,12 @@ static const char *ext4_encrypted_get_li res =fscrypt_fname_alloc_buffer (inode, cstr.len, &pstr);if (res) goto errout; + paddr = pstr.name; res =fscrypt_fname_disk_to_usr (inode,0 ,0 , &cstr, &pstr);if (res <0 ) goto errout; - paddr = pstr.name; -/* Null-terminate the name */ if (res <= pstr.len) paddr[res] ='\0' ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/ext4-fix-memory-leak-when-symlink-decryption-fails.patch