mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chuck Ebbert <76306.1226@compuserve.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [BUG?][2.5.66] was: Re: How to fix the ptrace flaw without rebooting
Date: Fri, 4 Apr 2003 11:46:02 -0500	[thread overview]
Message-ID: <200304041148_MC3-1-32FC-A9A9@compuserve.com> (raw)

Alan wrote:

.>>    # echo 'x'>/proc/sys/kernel/modprobe
.>>    bash: /proc/sys/kernel/modprobe: No such file or directory

.>Thats not a sufficient fix except for people blindly running the
.>example exploit

I know that -- it's why I wrote pt_fix after seeing the problems
people were having coming up with a stopgap.

BTW putting a "ud2a" instruction at the
entry point to sys_ptrace causes problems on SMP 2.5.66.
On uniprocessor, all attempts to use strace fail with SIGSEGV as
expected, but on SMP only the first time does.  Further
attempts to use strace result in a zombie strace child process hung
up at the end of do_exit() (hand copied from sysrq-t):

        do_exit+0x2f7/0x310
        die+0x7f/0x90
        do_invalid_op+0x0/0xa0
        do_invalid_op+0x87/0xa0
        sys_ptrace+0x0/0x6c0
        do_page_fault+0x120/0x426
        error_code+0x2d/0x38
        sys_ptrace+0x0/0x6c0
        syscall_call+0x7/0xb

2.4.21pre6 handles this OK.

--
 Chuck

                 reply	other threads:[~2003-04-04 16:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200304041148_MC3-1-32FC-A9A9@compuserve.com \
    --to=76306.1226@compuserve.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®