lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200514103947.w4segr3rvwy4mjnh@wittgenstein>
Date:   Thu, 14 May 2020 12:39:47 +0200
From:   Christian Brauner <christian.brauner@...ntu.com>
To:     John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>
Cc:     "Luck, Tony" <tony.luck@...el.com>,
        "Yu, Fenghua" <fenghua.yu@...el.com>,
        "linux-ia64@...r.kernel.org" <linux-ia64@...r.kernel.org>,
        Al Viro <viro@...iv.linux.org.uk>,
        Arnd Bergmann <arnd@...db.de>,
        Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...nel.org>,
        Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
        "Peter Zijlstra (Intel)" <peterz@...radead.org>,
        Qais Yousef <qais.yousef@....com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to
 kernel_clone_args

On Thu, May 14, 2020 at 12:35:49PM +0200, John Paul Adrian Glaubitz wrote:
> On 5/14/20 12:32 PM, Christian Brauner wrote:
> > Do you have a very minimalistic ia64 userspace preferably without systemd where
> > you could simply test. That should give us an idea whether things work:
> > 
> > #define _GNU_SOURCE
> > #include <sys/wait.h>
> > #include <sys/utsname.h>
> > #include <sched.h>
> > #include <string.h>
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <unistd.h>
> > #include <sys/mman.h>
> > 
> > #define STACK_SIZE (8 * 1024 * 1024) /* standard stack size for threads in glibc */
> > 
> > int main(int argc, char *argv[])
> > {
> > 	char *stack;
> >         pid_t pid;
> > 
> > 	stack = mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE,
> > 		     MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0);
> > 	if (stack == MAP_FAILED)
> > 		exit(EXIT_FAILURE);
> > 
> >         /* 
> > 	 * Note that legacy clone() has different argument ordering on
> >          * different architectures so this won't work everywhere.
> >          */
> >         pid = syscall(189 /* __NR_clone2 */, SIGCHLD, stack, STACK_SIZE, NULL, NULL);
> >         if (pid < 0)
> >                 exit(EXIT_FAILURE);
> >         if (pid == 0)
> >                 exit(EXIT_SUCCESS);
> >         if (wait(NULL) != pid)
> >                 exit(EXIT_FAILURE);
> > 
> >         exit(EXIT_SUCCESS);
> > }
> 
> root@...anium:~# gcc systemd_test.c -o systemd_test
> root@...anium:~# ./systemd_test
> root@...anium:~# echo $?
> 1
> root@...anium:~#
> 
> I can also give you access to this machine.

Yes please! :)
My ssh key should be on
https://launchpad.net/~cbrauner

Christian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ