From: Dimitri Torfs <dimitri@sonycom.com>
To: linux-mips@linux-mips.org
Subject: access_ok and CONFIG_MIPS32 for 2.6
Date: Fri, 2 Jan 2004 15:59:41 +0100 [thread overview]
Message-ID: <20040102145941.GA13426@sonycom.com> (raw)
Hi,
the mask used in access_ok to check the validity of an address range
evaluates to -TASK_SIZE for user processes. In case of
CONFIG_MIPS32, TASK_SIZE is defined as 0x7fff8000UL, so -TASK_SIZE
evaluates to 0x80008000, making access_ok return false for all
addresses with bit 15 and 31 set. Surely the mask should be 0x80000000.
Does anybody know why TASK_SIZE is set to 0x7fff8000 and not
0x80000000 ?
Dimitri
--
Dimitri Torfs | NSCE
dimitri.torfs@sonycom.com | Sint Stevens Woluwestraat 55
tel: +32 2 2908451 | 1130 Brussel
fax: +32 2 7262686 | Belgium
next reply other threads:[~2004-01-02 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-02 14:59 Dimitri Torfs [this message]
2004-01-02 19:44 ` access_ok and CONFIG_MIPS32 for 2.6 Ralf Baechle
2004-01-04 12:05 ` Atsushi Nemoto
2004-01-04 21:03 ` Dimitri Torfs
2004-01-22 10:32 ` Atsushi Nemoto
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=20040102145941.GA13426@sonycom.com \
--to=dimitri@sonycom.com \
--cc=linux-mips@linux-mips.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 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.