Messages in this thread | | | Date | Wed, 28 Oct 2015 07:43:39 +0900 | Subject | Re: 4.3-rc7: kmemleak BUG: Redzone overwritten | From | Linus Torvalds <> |
| |
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
| |