* Is SKAS still required for UML
@ 2008-08-27 16:57 Jan Engelhardt
2008-08-27 19:06 ` Jeff Dike
0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2008-08-27 16:57 UTC (permalink / raw)
To: jdike; +Cc: Linux Kernel Mailing List
Hi,
the UML page at http://user-mode-linux.sourceforge.net/old/skas.html
mentions that "The UML kernel is present in the address space of each of
its processes, and, by default, is writeable".
I tried to put this to a test, and actually failed to modify the
UML kernel/memory image from within it. I had a simple kernel module
with 'int val = 2;' and upon loading this, done printk("Val is at %p\n",
&val); to get to know the address. A userspace program inside the UML
then tried to dereference that address and read the value, but that
ended in a segfault. /proc/xxx/maps also does not show the UML kernel
being mapped in any process inside the UML. Note that I was running in
SKAS0 mode, both host and guest are all 64-bit. Is the NX bit of the
64-bit platform securing things off, or has SKAS3 become sort of
obsolete?
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is SKAS still required for UML
2008-08-27 16:57 Is SKAS still required for UML Jan Engelhardt
@ 2008-08-27 19:06 ` Jeff Dike
2008-08-27 20:00 ` Jan Engelhardt
2008-08-30 11:46 ` Nix
0 siblings, 2 replies; 6+ messages in thread
From: Jeff Dike @ 2008-08-27 19:06 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Linux Kernel Mailing List
On Wed, Aug 27, 2008 at 12:57:53PM -0400, Jan Engelhardt wrote:
> the UML page at http://user-mode-linux.sourceforge.net/old/skas.html
> mentions that "The UML kernel is present in the address space of each of
> its processes, and, by default, is writeable".
That stuff, as you can see by the "old" in the URL, is old.
Since skas0 became the default, that statement is no longer true.
>
> I tried to put this to a test, and actually failed to modify the
> UML kernel/memory image from within it. I had a simple kernel module
> with 'int val = 2;' and upon loading this, done printk("Val is at %p\n",
> &val); to get to know the address. A userspace program inside the UML
> then tried to dereference that address and read the value, but that
> ended in a segfault. /proc/xxx/maps also does not show the UML kernel
> being mapped in any process inside the UML. Note that I was running in
> SKAS0 mode, both host and guest are all 64-bit. Is the NX bit of the
> 64-bit platform securing things off, or has SKAS3 become sort of
> obsolete?
SKAS3 is still a significant performance boost.
Jeff
--
Work email - jdike at linux dot intel dot com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is SKAS still required for UML
2008-08-27 19:06 ` Jeff Dike
@ 2008-08-27 20:00 ` Jan Engelhardt
2008-08-27 21:03 ` Jeff Dike
2008-08-30 11:46 ` Nix
1 sibling, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2008-08-27 20:00 UTC (permalink / raw)
To: Jeff Dike; +Cc: Linux Kernel Mailing List
On Wednesday 2008-08-27 15:06, Jeff Dike wrote:
>On Wed, Aug 27, 2008 at 12:57:53PM -0400, Jan Engelhardt wrote:
>>
>> I tried to put this to a test, and actually failed to modify the
>> UML kernel/memory image from within it. I had a simple kernel module
>> with 'int val = 2;' and upon loading this, done printk("Val is at %p\n",
>> &val); to get to know the address. A userspace program inside the UML
>> then tried to dereference that address and read the value, but that
>> ended in a segfault. /proc/xxx/maps also does not show the UML kernel
>> being mapped in any process inside the UML. Note that I was running in
>> SKAS0 mode, both host and guest are all 64-bit. Is the NX bit of the
>> 64-bit platform securing things off, or has SKAS3 become sort of
>> obsolete?
>
>SKAS3 is still a significant performance boost.
In tests of mine, oggenc in SKAS0 mode ran at 95% of native speed, which
is pretty good.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is SKAS still required for UML
2008-08-27 20:00 ` Jan Engelhardt
@ 2008-08-27 21:03 ` Jeff Dike
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Dike @ 2008-08-27 21:03 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Linux Kernel Mailing List
On Wed, Aug 27, 2008 at 04:00:24PM -0400, Jan Engelhardt wrote:
> In tests of mine, oggenc in SKAS0 mode ran at 95% of native speed, which
> is pretty good.
Different workloads give different results. Yours sounds
CPU-intensive. Kernel builds here run at 50-60% of native with skas0,
low 80's with skas3, and ~86% with skas4.
Jeff
--
Work email - jdike at linux dot intel dot com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is SKAS still required for UML
2008-08-27 19:06 ` Jeff Dike
2008-08-27 20:00 ` Jan Engelhardt
@ 2008-08-30 11:46 ` Nix
1 sibling, 0 replies; 6+ messages in thread
From: Nix @ 2008-08-30 11:46 UTC (permalink / raw)
To: Jeff Dike; +Cc: Jan Engelhardt, Linux Kernel Mailing List
On 27 Aug 2008, Jeff Dike stated:
> SKAS3 is still a significant performance boost.
Nobody's forward-ported it to recent kernels that I can see, though :/
--
`Not even vi uses vi key bindings for its command line.' --- PdS
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is SKAS still required for UML
@ 2008-09-05 13:36 greg
0 siblings, 0 replies; 6+ messages in thread
From: greg @ 2008-09-05 13:36 UTC (permalink / raw)
To: Jeff Dike, Jan Engelhardt; +Cc: Linux Kernel Mailing List
On Aug 27, 3:06pm, Jeff Dike wrote:
} Subject: Re: Is SKAS still required for UML
Hi Jeff, hope the week is ending well for you.
> > I tried to put this to a test, and actually failed to modify the
> > UML kernel/memory image from within it. I had a simple kernel module
> > with 'int val = 2;' and upon loading this, done printk("Val is at %p\n",
> > &val); to get to know the address. A userspace program inside the UML
> > then tried to dereference that address and read the value, but that
> > ended in a segfault. /proc/xxx/maps also does not show the UML kernel
> > being mapped in any process inside the UML. Note that I was running in
> > SKAS0 mode, both host and guest are all 64-bit. Is the NX bit of the
> > 64-bit platform securing things off, or has SKAS3 become sort of
> > obsolete?
> SKAS3 is still a significant performance boost.
Any thoughts or timetable on SKAS4 going mainline? I suspect the
SKAS3 patches are even remotely compatible with current mainline
kernels.
We've had good success with SKAS4 on 2.6.24.x but thats even getting
awful long in the tooth at this point. I've been meaning to try the
last copy of the SKAS4 patch against 2.6.26.x but haven't found the
time yet to wade through the flock of rejects which I would expect.
With all the renames in the impending 2.6.27 tree I'm afraid the
prospects are even worse. The time seems ripe to push it towards
mainline.
> Jeff
Thanks again for all your efforts on UML.
Have a good weekend.
}-- End of excerpt from Jeff Dike
As always,
Dr. G.W. Wettstein, Ph.D. Enjellic Systems Development, LLC.
4206 N. 19th Ave. Specializing in information infra-structure
Fargo, ND 58102 development.
PH: 701-281-1686
FAX: 701-281-3949 EMAIL: greg@enjellic.com
------------------------------------------------------------------------------
"Atilla The Hun's Maxim: If you're going to rape, pillage and burn, be sure
to do things in that order."
-- P.J. Plauger
Programming On Purpose
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-09-05 14:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 16:57 Is SKAS still required for UML Jan Engelhardt
2008-08-27 19:06 ` Jeff Dike
2008-08-27 20:00 ` Jan Engelhardt
2008-08-27 21:03 ` Jeff Dike
2008-08-30 11:46 ` Nix
-- strict thread matches above, loose matches on Subject: below --
2008-09-05 13:36 greg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox