Re: 4.3-rc7: kmemleak BUG: Redzone overwritten
From: Linus Torvalds
Date: Tue Oct 27 2015 - 18:43:50 EST
On Wed, Oct 28, 2015 at 7:39 AM, Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/