lkml.org 
[lkml]   [2020]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args
From
Date
On 5/14/20 12:19 PM, Christian Brauner wrote:
> Scratch that. It's even worse. On ia64 it is _invalid_ to pass a NULL
> stack. That's at least what the glibc assembly assumes:
>
> cmp.eq p6,p0=0,in0
> cmp.eq p7,p0=0,in1
> mov r8=EINVAL
> mov out0=in3 /* Flags are first syscall argument. */
> mov out1=in1 /* Stack address. */
> (p6) br.cond.spnt.many __syscall_error /* no NULL function pointers */
> (p7) br.cond.spnt.many __syscall_error /* no NULL stack pointers */
> ;;
> mov out2=in2 /* Stack size. */
>
> so newer systemd just works by accident on ia64 if at all correctly
> afaict.

Hmm, interesting. I really wasn't aware of that. Thanks for the heads-up.

I'll ask Michael whether he can come up for a solution for that problem.

Maybe that's also why systemd crashes.

Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

\
 
 \ /
  Last update: 2020-05-14 12:21    [W:0.057 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site