mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kees Cook <kees@outflux.net>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org
Subject: Re: useless kernel.maps_protect and more
Date: Wed, 16 Jul 2008 07:20:22 -0700	[thread overview]
Message-ID: <20080716142022.GU5794@outflux.net> (raw)
In-Reply-To: <20080716021135.GA5973@martell.zuzino.mipt.ru>

Hi,

On Wed, Jul 16, 2008 at 06:11:35AM +0400, Alexey Dobriyan wrote:
> commit 5096add84b9e96e2e0a9c72675c442fe5433388a
> "proc: maps protection"
> 
> commit 831830b5a2b5d413407adf380ef62fe17d6fcbf2
> "restrict reading from /proc/<pid>/maps to those who share ->mm or can ptrace pid"
> 
> After Al added mm_for_maps(), maps_protect stopped controlling anything,
> because they're run at ->show time, but mm_for_maps() checks are done at
> ->start time.
> 
> Unless anyone objects, I'll remove maps_protect.

As long as this provides the same protections as maps_protect, I'm fine
with it.  I am a bit confused, though, since the reason I had to create
the sysctl entry in the first place was because akpm objected to the
maps file disappearing without a tunable.  Has this objection gone away?

> Also, logic behind second commit applies to /proc/*/pagemap , don't you
> think?

If that file shows memory location, yes.  What about the numa maps that
the first commit protects?

Thanks,

-Kees

-- 
Kees Cook                                            @outflux.net

      reply	other threads:[~2008-07-16 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16  2:11 Alexey Dobriyan
2008-07-16 14:20 ` Kees Cook [this message]

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=20080716142022.GU5794@outflux.net \
    --to=kees@outflux.net \
    --cc=adobriyan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®