NetBSD-Bugs archive

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

Re: port-arm/59351: compat_setjmp is busted



The following reply was made to PR port-arm/59351; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-arm/59351: compat_setjmp is busted
Date: Mon, 28 Apr 2025 01:53:19 +0300

 Looks like gimpy accidentally deleted the register restore instruction
 after the call to sigblock in 1.3 of
 
   lib/libc/compat/arch/arm/gen/compat_setjmp.S
 
 so it tries to store the sigmask into the sigmask (taken as the
 jumpbuf address):
 
 	push	{r0, lr}
 	movs	r0, #0x00000000
 
 	bl	PLT_SYM(_C_LABEL(sigblock))
 	mov	r1, r0
 
 -->     // register restore here lost in rev 1.3
 	// r0 below should be the original jb argument
 
 	/* Store signal mask */
 	str	 r1, [r0, #(_JB_SIGMASK * 4)]
 
 -uwe
 


Home | Main Index | Thread Index | Old Index