WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Compiling xenlinux 2.4.29 with grsec.. help needed

To: Brad Spengler <spender@xxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Compiling xenlinux 2.4.29 with grsec.. help needed
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Thu, 27 Jan 2005 22:18:28 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 28 Jan 2005 14:10:00 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <20050126041111.GA24811@xxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <20050126000653.GY16286@xxxxxxxxxxxxxxx> <20050126041111.GA24811@xxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i
On Tue, Jan 25, 2005 at 11:11:11PM -0500, Brad Spengler wrote:
> > -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> > -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
> > -march=i686    -nostdinc -iwithprefix include -DKBUILD_BASENAME=fault  -c -o
> > fault.o fault.c
> > fault.c: In function o_page_fault':
> > fault.c:135: warning: passing arg 1 of xpand_stack' from incompatible
> > pointer type
> > fault.c:135: warning: passing arg 2 of xpand_stack' makes pointer from
> > integer without a cast
> > fault.c:135: error: too few arguments to function xpand_stack'
> > make[5]: *** [fault.o] Error 1
> > make[5]: Leaving directory
> > /root/stuff/xen/xen-2.0-grsec/linux-2.4.29-xenU/arch/xen/mm'
> > make[4]: *** [first_rule] Error 2
> > make[4]: Leaving directory
> > /root/stuff/xen/xen-2.0-grsec/linux-2.4.29-xenU/arch/xen/mm'
> > make[3]: *** [_dir_arch/xen/mm] Error 2
> > make[3]: Leaving directory /root/stuff/xen/xen-2.0-grsec/linux-2.4.29-xenU'
> > make[2]: *** [build] Error 2
> > make[2]: Leaving directory /root/stuff/xen/xen-2.0-grsec'
> > make[1]: *** [linux-2.4-xenU-build] Error 2
> > make[1]: Leaving directory /root/stuff/xen/xen-2.0-grsec'
> > make: *** [kernels] Error 2
> > 
> > So it seems that some hacking is required in arch/xen/mm/fault.c .. I don't
> > have enough knowledge about linux memory management and/or grsec stuff so I
> > can't do this.. If somebody is willing to take a look at this, it would be
> > nice!
> 
> Most likely the change that has to be made is to add another argument to 
> the expand_stack calls in the file.  Change it so it looks like:
> expand_stack(current, <previous args here>);
> 
> Unless the function in which expand_stack is called has a task_struct * 
> argument passed to it.  In that case, use whatever variable name that is 
> instead of current.
> 

Thanks!

With this change, grsec patched xenlinux 2.4.29 compiles OK.
But.. the resulting kernel doesn't work. it crashes during boot. 

Well, it seems this needs more work & debugging..

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


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>