Re: [RFC] mm: Allow 64-bit mmap syscalls to access higher addresses.

From: Derek Lesho
Date: Fri Sep 25 2020 - 12:54:18 EST


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