linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	Denis Efremov <efremov@linux.com>,
	Julia Lawall <Julia.Lawall@inria.fr>,
	Michal Hocko <mhocko@suse.com>, Kees Cook <kees@kernel.org>,
	Vlastimil Babka <vbabka@suse.cz>
Subject: Re: [PATCH] mm/util: make memdup_user_nul() similar to memdup_user()
Date: Tue, 31 Dec 2024 13:13:06 +0900	[thread overview]
Message-ID: <a3e1b5a8-285b-4ed1-bbb4-7096e9efc838@I-love.SAKURA.ne.jp> (raw)
In-Reply-To: <6ac4cb00-4841-4deb-a3f9-7948a1ba5389@I-love.SAKURA.ne.jp>

Would you prefer updating the description to something like below?



The only difference between memdup_user_nul() and memdup_user() should be
that the former appends trailing nul byte. Apply three changes in the
latter to the former.

  commit 6c2c97a24f09 ("memdup_user(): switch to GFP_USER")
  commit 6c8fcc096be9 ("mm: don't let userspace spam allocations warnings")
  commit d73778e4b867 ("mm/util: Use dedicated slab buckets for
                        memdup_user()")



  reply	other threads:[~2024-12-31  4:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-21  7:47 Tetsuo Handa
2024-12-24  1:25 ` Andrew Morton
2024-12-30  2:55   ` Tetsuo Handa
2024-12-31  4:13     ` Tetsuo Handa [this message]
2025-01-09 17:38 ` Kees Cook

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=a3e1b5a8-285b-4ed1-bbb4-7096e9efc838@I-love.SAKURA.ne.jp \
    --to=penguin-kernel@i-love.sakura.ne.jp \
    --cc=Julia.Lawall@inria.fr \
    --cc=akpm@linux-foundation.org \
    --cc=efremov@linux.com \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=vbabka@suse.cz \
    --cc=viro@zeniv.linux.org.uk \
    /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