9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Amos Shapir amos@cs.huji.ac.il
Subject: Bug in sysrendezvous?
Date: Mon,  3 Jun 1996 09:59:36 -0400	[thread overview]
Message-ID: <19960603135936.ZzxYZSowRs5aBKQxt_HPlbWLNZKCqhEjdyKKLc3utlw@z> (raw)

The "tag" operand of rendezvous is defined as ulong; but in the
function sysrendezvous (in sysproc.c), it's copied into an int, which
is used as an index in a table by the REND macro.  If I'm mistaken
correctly, this means that if the tag is negative, the resulting
pointer would point *outside* the table!

I guess this bug was not discovered because the tag is usually an
address in user space, but nothing in the manual suggests it has to be
below 0x80000000 (or that it shouldn't be 0xdeadbeef...)

Did anybody else had any trouble with this?

	Amos Shapir		Net: amos@cs.huji.ac.il
Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
       Givat-Ram, Jerusalem 91904, Israel
GEO: 35 11 46 E / 31 46 21 N






             reply	other threads:[~1996-06-03 13:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-03 13:59 Amos [this message]
1996-06-03 16:56 philw

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=19960603135936.ZzxYZSowRs5aBKQxt_HPlbWLNZKCqhEjdyKKLc3utlw@z \
    --to=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).