mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Stefan O'Rear" <sorear@fastmail.com>
To: musl@lists.openwall.com
Subject: Re: [musl] Bug in mmap_fixed()
Date: Sat, 05 Sep 2020 04:39:57 -0400	[thread overview]
Message-ID: <f8744611-a3b1-4f98-aa83-6a78f8a7ea61@www.fastmail.com> (raw)
In-Reply-To: <20200904195251.GA2139@voyager>

On Fri, Sep 4, 2020, at 3:52 PM, Markus Wichmann wrote:
> touch (one byte in front of the buffer). I don't know, can this crash on
> NOMMU systems? I am aware there were systems in the past lacking an MMU,
> but having a memory protection unit. I just don't know if Linux runs on
> any of them.

To answer the other question here, Linux runs on Cortex-M systems and has
code to program the memory protection unit; I was under the impression it could
do so on a per-process basis but I just checked arch/arm/mm/pmsa-v[78].c and it's
configured once at boot time.  There is an ARM FDPIC ABI but it is not implemented
in musl at this time.

Although even without precise bounds you could get a crash later if it overwrites
something important.

-s

      parent reply	other threads:[~2020-09-05  8:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 19:52 Markus Wichmann
2020-09-05  3:41 ` Rich Felker
2020-09-05  6:44   ` Markus Wichmann
2020-09-16  5:15     ` Rob Landley
2020-09-16 12:04       ` Rich Felker
2020-09-16 14:20       ` Markus Wichmann
2020-09-05  8:39 ` Stefan O'Rear [this message]

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=f8744611-a3b1-4f98-aa83-6a78f8a7ea61@www.fastmail.com \
    --to=sorear@fastmail.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).