<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 11:04 AM, Yann Droneaud <span dir="ltr"><<a href="mailto:ydroneaud@opteya.com" target="_blank">ydroneaud@opteya.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
Le mardi 06 octobre 2015 à 10:46 -0400, Kenneth Adam Miller a écrit :<br>
> Let me be more precise in general to the overall original question:<br>
><br>
> I want a userland process that I designate to only use a specific<br>
> hard coded region physical of memory for it's heap. A UIO driver is<br>
> the means by which I've gone about seeking to achieve this.<br>
><br>
<br>
</span>You want brk() and mmap(..., MAP_ANONYMOUS, ...) to allocate pages<br>
from a contigous physical memory region.<br>
<br>
You don't give the reason for such requirement. Without a proper reason<br>
it's difficult to understand what's your trying to achieve.<br>
<br>
I can only propose you to use something like CONFIG_MMU=n, but as it's<br>
a system wide choice with multiple drawbacks, I don't think it's<br>
something you want to investigate into.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>At our workplace, we are using separation kernel and software fault isolation technologies to trap process capabilities down to specific limitations. With these technologies, we can basically trigger the failure of a process if it tries to violate the sandbox. A process subverting the kernel doesn't make a difference because our enforcement mechanisms preside beneath even that. I can't say much else about why, but using a UIO approach is very attractive to us because we can then develop our IRM in userland, and have actual writes and operations mapped to the address they need to be. Right now that is not the case for our legacy software.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
Regards.<br>
<br>
--<br>
Yann Droneaud<br>
OPTEYA<br>
<br>
</div></div></blockquote></div><br></div></div>