systemd-journald crashing on arm/mips/ppc with glibc/trunk

Khem Raj raj.khem@gmail.com
Fri Jul 2 17:02:06 GMT 2021


Hi Adhemerval and Carlos

I am observing a crash in systemd-journald with system running
glibc/trunk in recvmsg and
if I revert  [1] and [2] then SIGSEGV is gone ( this is happening with
systemd-journald on ppc32/mips/arm )

The problem seems to be that code is not checking for case where msg
can be NULL.

below test example also segfaults in libc.so

#include <sys/socket.h>
#include <stddef.h>

int
main(void)
{
    return recvmsg(-1, NULL, 0) != -1;
}

If I set --enable-kernel=5.1 then the segfaults are gone so its
clearly related to 64bit time_t related
changes above.

Thanks
-Khem

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=13c51549e2077f2f3bf84e8fd0b46d8b0c615912
[2]  https://sourceware.org/git/?p=glibc.git;a=commit;h=4a30a71401db8844c548ae16809284f7138df02e


More information about the Libc-alpha mailing list