Patch "FS-Cache: Add missing initialization of ret in cachefiles_write_page()" has been added to the 4.3-stable tree
This is a note to let you know that I've just added the patch titled
FS-Cache: Add missing initialization of ret in cachefiles_write_page()
to the 4.3-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:
fs-cache-add-missing-initialization-of-ret-in-cachefiles_write_page.patch
and it can be found in the queue-4.3 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
cf89752645e47d86ba8a4157f4b121fcb33434c5Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <[email protected]>
Date: Thu, 12 Nov 2015 11:46:23 +0000
Subject: FS-Cache: Add missing initialization of ret in cachefiles_write_page()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Geert Uytterhoeven <[email protected]>
commit cf89752645e47d86ba8a4157f4b121fcb33434c5 upstream.
fs/cachefiles/rdwr.c: In function ‘cachefiles_write_page’:fs/cachefiles/rdwr.c:882: warning: ‘ret’ may be used uninitialized in this function
If the jump to label "error" is taken, "ret" will indeed be uninitialized, and random stack data may be printed by the debug code.
--- fs/cachefiles/rdwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cachefiles/rdwr.c +1 -1
@@ -885,7 +885,7 @@ int cachefiles_write_page(struct fscacheloff_t pos, eof;size_t len;void *data; -int ret; +int ret = -ENOBUFS ;ASSERT (op !=NULL );ASSERT (page !=NULL );
Patches currently in stable-queue which might be from [email protected] are
queue-4.3/fs-cache-add-missing-initialization-of-ret-in-cachefiles_write_page.patch queue-4.3/mm-slab-only-move-management-objects-off-slab-for-sizes-larger-than-kmalloc_min_size.patch