On Thu, Nov 12, 2015 at 11:42 AM, David Howells wrote:
> Geert Uytterhoeven wrote:
>
>> > This isn't quite the right solution. The uninitialised error path needs to
>> > set -ENOBUFS.
>>
>> That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a write to the
>> page immediately beyond the
Geert Uytterhoeven wrote:
> > This isn't quite the right solution. The uninitialised error path needs to
> > set -ENOBUFS.
>
> That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a write to the
> page immediately beyond the EOF marker") does, and is also in its commit
> description:
>
Hi David,
On Thu, Nov 12, 2015 at 11:15 AM, David Howells wrote:
> Geert Uytterhoeven wrote:
>
>> - int ret;
>> + int ret = 0;
>
> This isn't quite the right solution. The uninitialised error path needs to
> set -ENOBUFS.
That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a
Geert Uytterhoeven wrote:
> - int ret;
> + int ret = 0;
This isn't quite the right solution. The uninitialised error path needs to
set -ENOBUFS. Unfortunately, my compiler doesn't show a warning:-/
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
On Thu, Nov 12, 2015 at 11:42 AM, David Howells wrote:
> Geert Uytterhoeven wrote:
>
>> > This isn't quite the right solution. The uninitialised error path needs to
>> > set -ENOBUFS.
>>
>> That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a
Geert Uytterhoeven wrote:
> - int ret;
> + int ret = 0;
This isn't quite the right solution. The uninitialised error path needs to
set -ENOBUFS. Unfortunately, my compiler doesn't show a warning:-/
David
--
To unsubscribe from this list: send the line
Hi David,
On Thu, Nov 12, 2015 at 11:15 AM, David Howells wrote:
> Geert Uytterhoeven wrote:
>
>> - int ret;
>> + int ret = 0;
>
> This isn't quite the right solution. The uninitialised error path needs to
> set -ENOBUFS.
That's what your
Geert Uytterhoeven wrote:
> > This isn't quite the right solution. The uninitialised error path needs to
> > set -ENOBUFS.
>
> That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a write to the
> page immediately beyond the EOF marker") does, and is also in its
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:
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:
10 matches
Mail list logo