mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Warn users about machines with non-working WP bit
Date: Wed, 03 Apr 2002 17:24:51 -0500	[thread overview]
Message-ID: <3CAB8133.1AAF5338@didntduck.org> (raw)
In-Reply-To: <20020403215457.GA1050@elf.ucw.cz>

Pavel Machek wrote:
> 
> Hi!
> 
> This might be good idea, as those machines are not safe for multiuser
> systems.
> 
> --- clean.2.5/arch/i386/mm/init.c       Sun Mar 10 20:06:31 2002
> +++ linux/arch/i386/mm/init.c   Mon Mar 11 21:49:14 2002
> @@ -383,7 +383,7 @@
>         local_flush_tlb();
> 
>         if (!boot_cpu_data.wp_works_ok) {
> -               printk("No.\n");
> +               printk("No (that's security hole).\n");
>  #ifdef CONFIG_X86_WP_WORKS_OK
>                 panic("This kernel doesn't support CPU's with broken WP. Recompile it for a 386!");
>  #endif
> 
>                                                                         Pavel

The "bug" is really the lack of a feature present on 486+ cpus.  A 386
will allow the kernel to write to a write-protected user page (but not a
write-protected kernel page).  In user mode, write protect works as it
should.  The kernel works around this by doing extra checks when writing
to user pages (check the *_user() functions).  It is not a security
hole, because if the kernel wasn't compiled with the workaround, it
refuses to boot on those cpus.

--

				Brian Gerst

  reply	other threads:[~2002-04-03 22:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 21:54 Pavel Machek
2002-04-03 22:24 ` Brian Gerst [this message]
2002-04-03 22:27   ` Pavel Machek

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=3CAB8133.1AAF5338@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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®