public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Rock Gordon <rockgordon@yahoo.com>
Cc: Terje Eggestad <terje.eggestad@scali.no>, linux-kernel@vger.kernel.org
Subject: Re: Executing binaries on new filesystem
Date: 19 Nov 2001 20:39:33 -0700	[thread overview]
Message-ID: <m18zd26rgq.fsf@frodo.biederman.org> (raw)
In-Reply-To: <20011119163455.11507.qmail@web14804.mail.yahoo.com>
In-Reply-To: <20011119163455.11507.qmail@web14804.mail.yahoo.com>

Rock Gordon <rockgordon@yahoo.com> writes:

> All said and done, the file is with correct
> permissions (for that matter any binary that I execute
> on my filesystem has correct permissions). The only
> thing strace tells me is "bad file format". The same
> binary works perfectly elsewhere.
> 
> I don't think mmap is the problem; you don't need it
> in order to run binaries ...

Yes you do.   Look at all of the calls to do_mmap in binfmt_elf,
binfmt_aout and others.  The only case that doesn't use mmap
is old a.out binaries that are not properly aligned so cannot be
mmaped.

Linux implements demand paging in the loading of binaries and
for that you need mmap.

Eric



  parent reply	other threads:[~2001-11-20  3:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-17 22:18 Executing binaries on new filesystem Rock Gordon
2001-11-17 22:24 ` Mike Fedyk
2001-11-18  0:08 ` Eric W. Biederman
2001-11-18  0:54 ` Jeff Dike
2001-11-18 15:13 ` Terje Eggestad
2001-11-19 16:34   ` Rock Gordon
2001-11-19 23:45     ` Ryan Cumming
2001-11-20  3:39     ` Eric W. Biederman [this message]
2001-11-20  9:34     ` Terje Eggestad
2001-11-28  1:43       ` Rock Gordon

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=m18zd26rgq.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rockgordon@yahoo.com \
    --cc=terje.eggestad@scali.no \
    /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