All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen with grsec?
@ 2004-11-23  9:27 Pasi Kärkkäinen
  2004-11-23 10:42 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Pasi Kärkkäinen @ 2004-11-23  9:27 UTC (permalink / raw)
  To: xen-devel

Has anyone tried running grsec with xen (2.4) ?

Are there any expected problems, or should it be ok "out-of-the-box"? 
I have not yet tried patching xen-patched kernel with grsec.. Just wanted to
ask if somebody has already tried this.

-- Pasi Kärkkäinen
       
                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Xen with grsec?
  2004-11-23  9:27 Xen with grsec? Pasi Kärkkäinen
@ 2004-11-23 10:42 ` Jacob Gorm Hansen
  2004-11-23 19:26   ` Milan Holzäpfel
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Gorm Hansen @ 2004-11-23 10:42 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel

Pasi Kärkkäinen wrote:
> Has anyone tried running grsec with xen (2.4) ?
> 
> Are there any expected problems, or should it be ok "out-of-the-box"? 
> I have not yet tried patching xen-patched kernel with grsec.. Just wanted to
> ask if somebody has already tried this.

I am fairly sure you will run into infinite page-fault loops if you are 
trying to use the PaX 'software NX' implementation, because the call to 
Xen to update the page tables will frequently exhaust the associativity 
of the data-TLB.

You could find a way of implementing this part inside Xen though, by 
using an AVL or reserved bit to signify 'no execute', but this may be 
too much hassle.

The rest of grsec looks (from the description on the website) like it 
can be applied without problems.

Jacob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Xen with grsec?
  2004-11-23 10:42 ` Jacob Gorm Hansen
@ 2004-11-23 19:26   ` Milan Holzäpfel
  2004-11-25 11:12     ` Jacob Gorm Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Milan Holzäpfel @ 2004-11-23 19:26 UTC (permalink / raw)
  To: xen-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 23 Nov 2004 11:42:46 +0100
Jacob Gorm Hansen <jacobg@diku.dk> wrote:

> Pasi Kärkkäinen wrote:
> > Has anyone tried running grsec with xen (2.4) ?
> > 
> > Are there any expected problems, or should it be ok "out-of-the-box"? 
> > I have not yet tried patching xen-patched kernel with grsec.. Just wanted to
> > ask if somebody has already tried this.
> 
> I am fairly sure you will run into infinite page-fault loops if you are 
> trying to use the PaX 'software NX' implementation, [...]

What about hardware implementations? IIRC, the Athlon64 processors
(amongst others) implement such feature in hardware?  While I know that
there's usable version of Xen for AMD64 so far, can this feature also be
used in 32-Bit-mode?  (On the other hand, I'm not aware whether PaX will
use this feature or not...) 
...just jumping in because I'm interested in this too...

Regards,
Milan

- -- 

                   Milan Holzäpfel alias jagdfalke alias jag

Antworten direkt an mich                             Answers directly to me
gehen bitte an eine Addresse,                        go to an address one
die man hier finden kann:                            can find here, please:

Kontaktinfos sowie                                   Contact infos as well as
Öff GnuPG-Schlüssel    <URL:http://con.mjh.name/>    GnuPG Public Key
GnuPG Fingerabdruck     4C8A 5FAF 5D32 6125 89D1     GnuPG Fingerprint
                        0CE5 DB0C AF4F 6583 7966



                    http://www.deppenleerzeichen.de/                        


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBo47Y2wyvT2WDeWYRAi3NAKDG+cjJZHY0RcRT46O4pNMA0h0rOwCgqnUK
a+BIZn7JTL/Nx6ExQI9XPBk=
=86hT
-----END PGP SIGNATURE-----



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Xen with grsec?
  2004-11-23 19:26   ` Milan Holzäpfel
@ 2004-11-25 11:12     ` Jacob Gorm Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Jacob Gorm Hansen @ 2004-11-25 11:12 UTC (permalink / raw)
  To: Milan Holzäpfel; +Cc: xen-devel

Milan Holzäpfel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> What about hardware implementations? IIRC, the Athlon64 processors
> (amongst others) implement such feature in hardware?  While I know that
> there's usable version of Xen for AMD64 so far, can this feature also be
> used in 32-Bit-mode?  (On the other hand, I'm not aware whether PaX will
> use this feature or not...) 
> ...just jumping in because I'm interested in this too...

I suppose that would just work, though I think it requires PAE mode (64 
bit page table entries), does Xen support PAE now, I guess it does?

There was another similar patch from Redhat using segments instead of 
playing with the TLB, that will probably work with few or no modifications.

Jacob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-25 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-23  9:27 Xen with grsec? Pasi Kärkkäinen
2004-11-23 10:42 ` Jacob Gorm Hansen
2004-11-23 19:26   ` Milan Holzäpfel
2004-11-25 11:12     ` Jacob Gorm Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.