public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
To: Muchun Song <songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
Cc: hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org,
	mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	vdavydov.dev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] mm: memcontrol: Fix out-of-bounds on the buf returned by memory_stat_format
Date: Sat, 12 Sep 2020 17:42:41 -0700	[thread overview]
Message-ID: <20200912174241.eeaa771755915f27babf9322@linux-foundation.org> (raw)
In-Reply-To: <20200912155100.25578-1-songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>

On Sat, 12 Sep 2020 23:51:00 +0800 Muchun Song <songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org> wrote:

> 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?


  parent reply	other threads:[~2020-09-13  0:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-12 15:51 [PATCH] mm: memcontrol: Fix out-of-bounds on the buf returned by memory_stat_format Muchun Song
     [not found] ` <20200912155100.25578-1-songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2020-09-13  0:42   ` Andrew Morton [this message]
     [not found]     ` <20200912174241.eeaa771755915f27babf9322-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2020-09-14  4:02       ` [External] " Muchun Song
     [not found]         ` <CAMZfGtXNg31+8QLbUMj7f61Yg1Jgt0rPB7VTDE7qoopGCANGjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-14  9:18           ` Michal Hocko
     [not found]             ` <20200914091844.GE16999-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2020-09-14  9:43               ` Muchun Song
     [not found]                 ` <CAMZfGtXd3DNrW5BPjDosHsz-FUYACGZEOAfAYLwyHdRSpOsqhQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-14 10:32                   ` Michal Hocko
     [not found]                     ` <20200914103205.GI16999-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2020-09-14 11:20                       ` Chris Down
2020-09-14 11:46                       ` Muchun Song
2020-09-14 11:57                         ` Michal Hocko
     [not found]                           ` <20200914115724.GO16999-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2020-09-14 12:05                             ` Muchun Song
2020-09-14  9:23   ` Michal Hocko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200912174241.eeaa771755915f27babf9322@linux-foundation.org \
    --to=akpm-de/tnxtf+jlsfhdxvbkv3wd2fqjk+8+b@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
    --cc=mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org \
    --cc=vdavydov.dev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox