linux uml segfault
Johannes Berg
johannes at sipsolutions.net
Thu Mar 4 07:43:43 GMT 2021
On Thu, 2021-03-04 at 07:28 +0000, Anton Ivanov wrote:
>
> > Now, I don't know how to fix it (short of changing your nsswitch
> > configuration) - maybe we could somehow rename sem_init()? Or maybe we
> > can somehow give the kernel binary a lower symbol resolution than the
> > libc/libpthread.
>
> I have not looked in depth in how the linking process works, but it
> should have picked up the sem_init from the kernel library, not libc.
Well, no, other way around? libnss/libcom_err should have gotten (should
get) the one from libpthread, not the one from the kernel.
> We are already supposed to do that regarding kernel vs libc string.h
> functions - memcpy, etc.
>
> Though for all of them the libc does the same so invoking the wrong one
> does not kill you so this may have been broken for a while and we were
> simply not noticing it.
Indeed.
johannes
More information about the linux-um
mailing list