public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Derek Lesho <dlesho@codeweavers.com>
To: linux-kernel@vger.kernel.org
Cc: Derek Lesho <dlesho@codeweavers.com>
Subject: Re: [RFC] mm: Allow 64-bit mmap syscalls to access higher addresses.
Date: Fri, 25 Sep 2020 11:53:44 -0500	[thread overview]
Message-ID: <20200925165343.292885-1-dlesho@codeweavers.com> (raw)
In-Reply-To: <20200925153703.288236-1-dlesho@codeweavers.com>

For some reason, git send-email cut off the first paragprah in my first email, so I'm resending it now:

Hello everyone, I am sending this mostly as a discussion starter/curiosity.  I would like to be able to use the 48-bit address range while in long mode on an IA32 process.  However,
these two checks prevent mmap and munmap from dealing with addresses in that range.  My question, is there any will to support something like this in the kernel, and if so, how
would it be accomplished, generally.  Maybe the TASK_SIZE macro could check for whether we are currently in the context of a x86-64 syscall?

For those curious about my usecase, I'm working on running some windows 64-bit driver code in context of any given process.  I accomplish this by mapping some of the fake kernel
bits in the target process, and running the code in a dedicated thread.
---

      reply	other threads:[~2020-09-25 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25 15:37 [RFC] mm: Allow 64-bit mmap syscalls to access higher addresses Derek Lesho
2020-09-25 16:53 ` Derek Lesho [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=20200925165343.292885-1-dlesho@codeweavers.com \
    --to=dlesho@codeweavers.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox