[PATCH] tests: disable testing msgctl with invalid addresses on s390

Dmitry V. Levin ldv at altlinux.org
Tue Nov 10 21:35:31 UTC 2020


On Tue, Nov 10, 2020 at 09:22:08PM +0100, Sven Schnelle wrote:
> "Dmitry V. Levin" <ldv at altlinux.org> writes:
> 
> > On Tue, Nov 10, 2020 at 11:48:59AM +0100, Sven Schnelle wrote:
> >> On s390, libc segfaults when invalid addresses are passed to
> >> msgctl in the ipc_msg.c test case. Therefore disable that test.
> >
> > Hmm, that's surprising.  What's the libc that behaves this way?  At least
> > glibc doesn't seem to have anything specific to s390 in its implementation
> > of msgctl.
> 
> It's Fedora 32 with glibc-2.31. It's only happening in 31 Bit mode,
> backtrace looks like this:
> 
> gdb) bt
> #0  0x7df28298 in __new_msgctl (msqid=0xfdb97531, cmd=cmd at entry=0x1, buf=buf at entry=0xffffffff) at ../sysdeps/unix/sysv/linux/msgctl.c:57

I see, it's glibc commit glibc-2.31~358, it affects all architectures
where __ASSUME_SYSVIPC_BROKEN_MODE_T is defined: m68k, s390 (not s390x),
and bigendian variants of arm, microblaze, and sh.


-- 
ldv


More information about the Strace-devel mailing list