NetBSD-Bugs archive

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

Re: bin/56471: ntpd dies at startup on macppc/current, sshd randomly dies



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

From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
To: Jason Thorpe <thorpej%me.com@localhost>
Cc: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%NetBSD.org@localhost>
Subject: Re: bin/56471: ntpd dies at startup on macppc/current, sshd randomly
 dies
Date: Sat, 30 Oct 2021 23:22:51 +0900

 Probably not directly related to this problem, but there is
 hardcoded value for MSR in libpthread:
 
 https://nxr.netbsd.org/xref/src/lib/libpthread/arch/powerpc/pthread_md.h
 
       53 /*
       54  * Set initial, sane values for registers whose values aren't just
       55  * "don't care".
       56  * 0xd032 is PSL_USERSET from arch/powerpc/include/psl.h
       57  */
       58 #define _INITCONTEXT_U_MD(ucp)						\
       59 	(ucp)->uc_mcontext.__gregs[_REG_MSR] = 0xd032;
       60
 
 "Sane" value for MSR varies between oea/40x/booke. Userland should not
 be bothered, and kernel should not accept any values from userland.
 
 However, IIRC, once I tried to remove this macro, KASSERT fired for oea.
 
 I was going to investigate further, but no progress yet...
 
 Thanks,
 rin
 


Home | Main Index | Thread Index | Old Index