About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Sat 09 Apr 2005 - 06:03:54 BST


On Fri, Apr 08, 2005 at 11:53:17PM -0500, ntrs ntrs wrote:
> Hi,
>
> I just wanted to point out that there is some serious bug in
> util-vserver when built against dietlibc on x86_64. It simply does not
> work. Herbert's testme script fails completely. I don't know many
> details but Herbert was trying a few things and he basically said
> this:
>
> the issue is simple ...
> for some reason, util-vserver decides to use the glibc syscall(2)
> this work fine with dietlibc unless you have an x86_64 ;)
> in which case the syscall() compiles to nothing
> imho it's clearly a bug in both
> in dietlibc because syscall(2) is not supported
> and in the tools, because they insist on using it ...
>
> I am sure he can probably give a lot more details about this problem.
> The utils and linux-vserver in their current state are pretty much
> unuseable on the x86_64 platform. Maybe not entirely unuseable, but
> definitely not securely useable, as building them with glibc is not
> secure according to Enrico and Herbert.

here is an example which simply fails on x86_64 when
compiled with dietlibc (0.27, 0.28, cvs, debian, fc3, suse ;)

$ cat sysx.c

#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>

int main(int argc, char *argv[])
{
        int ret;

        ret = syscall(236, 0, 0, NULL);
        printf("ret = %d\n", ret);
        exit(0);
}

$ diet gcc -o sysx sysx.c -lcompat

$ ./sysx
$ echo $?
  236

>
> Thanks.
>
> ntrsboy_at_gmail.com
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 09 Apr 2005 - 06:04:13 BST by hypermail 2.1.3