* [PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page()
[not found] ` <20151112114344.22379.19320.stgit-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org>
@ 2015-11-12 11:43 ` David Howells
0 siblings, 0 replies; 4+ messages in thread
From: David Howells @ 2015-11-12 11:43 UTC (permalink / raw)
To: viro-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn
Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA,
linux-cachefs-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dhowells-H+wXaHxf7aLQT0dZR+AlfA, Geert Uytterhoeven,
linux-fsdevel-u79uwXL29TY76Z2rM5mHXA
From: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
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.
Fixes: 102f4d900c9c8f5e ("FS-Cache: Handle a write to the page immediately beyond the EOF marker")
Signed-off-by: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
Signed-off-by: David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
fs/cachefiles/rdwr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c
index 7a6b02f72787..c0f3da3926a0 100644
--- a/fs/cachefiles/rdwr.c
+++ b/fs/cachefiles/rdwr.c
@@ -879,7 +879,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
loff_t pos, eof;
size_t len;
void *data;
- int ret;
+ int ret = -ENOBUFS;
ASSERT(op != NULL);
ASSERT(page != NULL);
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 0/2] FS-Cache: More miscellany
@ 2015-11-12 11:46 David Howells
2015-11-12 11:46 ` [PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page() David Howells
2015-11-12 11:46 ` [PATCH 2/2] MAINTAINERS: linux-cachefs@redhat.com is moderated for non-subscribers David Howells
0 siblings, 2 replies; 4+ messages in thread
From: David Howells @ 2015-11-12 11:46 UTC (permalink / raw)
To: viro; +Cc: dhowells, linux-fsdevel, linux-nfs, linux-cachefs, linux-kernel
Attached are another couple of miscellaneous bits in FS-Cache and
CacheFiles:
(1) Fix an uninitialised error value.
(2) In MAINTAINERS, mark the mailing list as being moderated for
non-subscribers.
These can also be found here:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache-fixes
David
---
Geert Uytterhoeven (2):
FS-Cache: Add missing initialization of ret in cachefiles_write_page()
MAINTAINERS: linux-cachefs@redhat.com is moderated for non-subscribers
MAINTAINERS | 4 ++--
fs/cachefiles/rdwr.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page()
2015-11-12 11:46 [PATCH 0/2] FS-Cache: More miscellany David Howells
@ 2015-11-12 11:46 ` David Howells
2015-11-12 11:46 ` [PATCH 2/2] MAINTAINERS: linux-cachefs@redhat.com is moderated for non-subscribers David Howells
1 sibling, 0 replies; 4+ messages in thread
From: David Howells @ 2015-11-12 11:46 UTC (permalink / raw)
To: viro
Cc: linux-nfs, linux-kernel, linux-cachefs, Geert Uytterhoeven,
linux-fsdevel
From: Geert Uytterhoeven <geert@linux-m68k.org>
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.
Fixes: 102f4d900c9c8f5e ("FS-Cache: Handle a write to the page immediately beyond the EOF marker")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Howells <dhowells@redhat.com>
---
fs/cachefiles/rdwr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c
index 7a6b02f72787..c0f3da3926a0 100644
--- a/fs/cachefiles/rdwr.c
+++ b/fs/cachefiles/rdwr.c
@@ -879,7 +879,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
loff_t pos, eof;
size_t len;
void *data;
- int ret;
+ int ret = -ENOBUFS;
ASSERT(op != NULL);
ASSERT(page != NULL);
--
Linux-cachefs mailing list
Linux-cachefs@redhat.com
https://www.redhat.com/mailman/listinfo/linux-cachefs
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] MAINTAINERS: linux-cachefs@redhat.com is moderated for non-subscribers
2015-11-12 11:46 [PATCH 0/2] FS-Cache: More miscellany David Howells
2015-11-12 11:46 ` [PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page() David Howells
@ 2015-11-12 11:46 ` David Howells
1 sibling, 0 replies; 4+ messages in thread
From: David Howells @ 2015-11-12 11:46 UTC (permalink / raw)
To: viro
Cc: linux-nfs, linux-kernel, dhowells, linux-cachefs,
Geert Uytterhoeven, linux-fsdevel
From: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Howells <dhowells@redhat.com>
---
MAINTAINERS | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 35fe7ae0492e..470605885f01 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2545,7 +2545,7 @@ F: arch/c6x/
CACHEFILES: FS-CACHE BACKEND FOR CACHING ON MOUNTED FILESYSTEMS
M: David Howells <dhowells@redhat.com>
-L: linux-cachefs@redhat.com
+L: linux-cachefs@redhat.com (moderated for non-subscribers)
S: Supported
F: Documentation/filesystems/caching/cachefiles.txt
F: fs/cachefiles/
@@ -4558,7 +4558,7 @@ F: include/linux/frontswap.h
FS-CACHE: LOCAL CACHING FOR NETWORK FILESYSTEMS
M: David Howells <dhowells@redhat.com>
-L: linux-cachefs@redhat.com
+L: linux-cachefs@redhat.com (moderated for non-subscribers)
S: Supported
F: Documentation/filesystems/caching/
F: fs/fscache/
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-12 11:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12 11:46 [PATCH 0/2] FS-Cache: More miscellany David Howells
2015-11-12 11:46 ` [PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page() David Howells
2015-11-12 11:46 ` [PATCH 2/2] MAINTAINERS: linux-cachefs@redhat.com is moderated for non-subscribers David Howells
-- strict thread matches above, loose matches on Subject: below --
2015-11-12 11:43 [PATCH 0/2] FS-Cache: More miscellany David Howells
[not found] ` <20151112114344.22379.19320.stgit-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org>
2015-11-12 11:43 ` [PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page() David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).