From: Ralf Baechle <ralf@oss.sgi.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Ian Chilton <ian@ichilton.co.uk>,
linux-mips@oss.sgi.com, lfs-discuss@linuxfromscratch.org,
Andreas Jaeger <aj@suse.de>
Subject: Re: User/Group Problem
Date: Wed, 15 Nov 2000 08:52:45 +0100 [thread overview]
Message-ID: <20001115085244.A5153@bacchus.dhis.org> (raw)
In-Reply-To: <Pine.GSO.3.96.1001114150916.17140A-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Tue, Nov 14, 2000 at 03:19:11PM +0100
On Tue, Nov 14, 2000 at 03:19:11PM +0100, Maciej W. Rozycki wrote:
> > There is second interpretation of this problem - the address passed to
> > mmap is bogus, so this computation needs to be fixed.
>
> Where is it written mmap() is allowed to fail when a bogus VM address is
> passed but MAP_FIXED is not set? I believe mmap() should choose a
> different VM address in this case, as long as much enough contiguous VM
> space is available anywhere to satisfy the requested length.
No argument about that, I do agree.
> Surely, map_segment() (see dl-load.c) might call mmap(0, ...) after
> mmap(<some_address>, ...) fails when MAP_FIXED is not set but wouldn't
> that be a dirty hack? We'd better fix the kernel.
Ld.so isn't linked to the same base address as all other libraries for
obscure reasons. Right now dl-machine.h use the constant value of 0x5ffe0000
as the base address which it assumes all libraries to be linked to - and that
makes us calculate the wrong base address which we're passing to mmap.
So we've got two bugs, not just one. I knew about the ld.so part since
Linux/MIPS has shared libs. It's just that this is the first time this bug
bites us.
Ralf
next prev parent reply other threads:[~2000-11-16 0:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-07 11:06 User/Group Problem Ian Chilton
2000-11-08 4:01 ` Ralf Baechle
2000-11-13 19:02 ` Maciej W. Rozycki
2000-11-13 20:02 ` Ian Chilton
2000-11-13 20:02 ` Ian Chilton
2000-11-13 22:19 ` Ralf Baechle
2000-11-14 14:19 ` Maciej W. Rozycki
2000-11-15 7:52 ` Ralf Baechle [this message]
2000-11-16 12:13 ` Maciej W. Rozycki
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=20001115085244.A5153@bacchus.dhis.org \
--to=ralf@oss.sgi.com \
--cc=aj@suse.de \
--cc=ian@ichilton.co.uk \
--cc=lfs-discuss@linuxfromscratch.org \
--cc=linux-mips@oss.sgi.com \
--cc=macro@ds2.pg.gda.pl \
/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