Re: [External] Re: [PATCH] mm: memcontrol: Fix out-of-bounds on the buf returned by memory_stat_format
From: Muchun Song <hidden>
Date: 2020-09-14 04:03:14
Also in:
linux-mm, lkml
From: Muchun Song <hidden>
Date: 2020-09-14 04:03:14
Also in:
linux-mm, lkml
On Sun, Sep 13, 2020 at 8:42 AM Andrew Morton [off-list ref] wrote:
On Sat, 12 Sep 2020 23:51:00 +0800 Muchun Song [off-list ref] wrote:quoted
The memory_stat_format() returns a format string, but the return buf may not including the trailing '\0'. So the users may read the buf out of bounds.That sounds serious. Is a cc:stable appropriate?
Yeah, I think we should cc:stable. -- Yours, Muchun