NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56487 (binary compat broken for COMPAT_NETBSD32)



The following reply was made to PR kern/56487; it has been noted by GNATS.

From: Jason Thorpe <thorpej%me.com@localhost>
To: Martin Husemann <martin%duskware.de@localhost>
Cc: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%NetBSD.org@localhost>
Subject: Re: kern/56487 (binary compat broken for COMPAT_NETBSD32)
Date: Fri, 5 Nov 2021 07:02:13 -0700

 > On Nov 4, 2021, at 11:44 AM, Martin Husemann <martin%duskware.de@localhost> =
 wrote:
 >=20
 > On Thu, Nov 04, 2021 at 04:09:33PM +0100, Martin Husemann wrote:
 >> On Thu, Nov 04, 2021 at 02:52:26PM +0000, thorpej%NetBSD.org@localhost wrote:
 >>> Synopsis: binary compat broken for COMPAT_NETBSD32
 >>>=20
 >>> Responsible-Changed-From-To: kern-bug-people->thorpej
 >>> Responsible-Changed-By: thorpej%NetBSD.org@localhost
 >>> Responsible-Changed-When: Thu, 04 Nov 2021 14:52:25 +0000
 >>> Responsible-Changed-Why:
 >>> TAke.
 >>=20
 >> This might be ARM specific, there is libc asm code=20
 >> calling compat_16___sigreturn14.
 >=20
 > No, also happens for i386 binaries on amd64.
 
 This is because syscalls.master for COMPAT_NETBSD32 is wrong for =
 sigreturn14:
 
         {
                 ns(struct compat_16_netbsd32___sigreturn14_args),
                 .sy_call =3D (sy_call_t *)sys_nomodule
         },              /* 295 =3D compat_16_netbsd32___sigreturn14 */
 
 (Those functions do exist on aarch64 and amd64.). This was all masked =
 before because sigcontext wasn=E2=80=99t being used by libc.
 
 -- thorpej
 


Home | Main Index | Thread Index | Old Index