All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com
Subject: Re: [S390] mm: add devmem_is_allowed() for STRICT_DEVMEM checking
Date: Wed, 17 Nov 2010 13:03:21 -0500	[thread overview]
Message-ID: <20101117180320.GA13441@redhat.com> (raw)
In-Reply-To: <201011162359.oAGNx3UN011130@hera.kernel.org>

On Tue, Nov 16, 2010 at 11:59:03PM +0000, Linux Kernel wrote:
 > Gitweb:     http://git.kernel.org/linus/ec6743bb06510c7b629603ce35713d6ae9273579
 > Commit:     ec6743bb06510c7b629603ce35713d6ae9273579
 > Parent:     ca768b663131ca644689fcadc9ca092dcc96a758
 > Author:     Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
 > AuthorDate: Wed Nov 10 10:05:55 2010 +0100
 > Committer:  Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
 > CommitDate: Wed Nov 10 10:05:54 2010 +0100
 > 
 >     [S390] mm: add devmem_is_allowed() for STRICT_DEVMEM checking
 >     
 >     Provide the devmem_is_allowed() routine to restrict access to
 >     kernel memory from userspace.
 >     Set the CONFIG_STRICT_DEVMEM config option to switch on checking.
 >     
 >     Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
 >     Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

[snip add kconfig]

...

 > +static inline int devmem_is_allowed(unsigned long pfn)
 > +{
 > +	return 0;
 > +}

So you add the config option that promises security, but then you always
allow the access.  This seems pointless ?  Why bother having the option at all?

	Dave


       reply	other threads:[~2010-11-17 18:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201011162359.oAGNx3UN011130@hera.kernel.org>
2010-11-17 18:03 ` Dave Jones [this message]
2010-11-18  8:58   ` [S390] mm: add devmem_is_allowed() for STRICT_DEVMEM checking Martin Schwidefsky

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=20101117180320.GA13441@redhat.com \
    --to=davej@redhat.com \
    --cc=brueckner@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.