lkml.org 
[lkml]   [2015]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: 4.3-rc7: kmemleak BUG: Redzone overwritten
From
On Wed, Oct 28, 2015 at 7:39 AM, Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
>
> I don't think it should be fixed like this.

Right. The seqfile code really doesn't care about the terminating NUL
character, and just cares that the buffer isn't overwritten past the
end. But other users of the hex dump code may need the final NUL for
the overflow case, and would want the text itself to be truncated
rather than dropping the NUL.

So I'm certainly fine with your approach too. Aaro, can you check
Andy's version instead of mine?

Linus


\
 
 \ /
  Last update: 2015-10-28 00:01    [W:0.031 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site