From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26202 invoked from network); 24 Jul 2020 13:43:48 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 24 Jul 2020 13:43:48 -0000 Received: (qmail 11682 invoked by uid 550); 24 Jul 2020 13:43:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 1261 invoked from network); 24 Jul 2020 13:25:23 -0000 From: Michael Ellerman To: linuxppc-dev@lists.ozlabs.org, Nicholas Piggin Cc: musl@lists.openwall.com, linux-api@vger.kernel.org, libc-dev@lists.llvm.org In-Reply-To: <20200611081203.995112-2-npiggin@gmail.com> References: <20200611081203.995112-1-npiggin@gmail.com> <20200611081203.995112-2-npiggin@gmail.com> Message-Id: <159559697416.1657499.13017258329138347266.b4-ty@ellerman.id.au> Date: Fri, 24 Jul 2020 23:25:08 +1000 (AEST) Subject: [musl] Re: [PATCH 1/2] powerpc/64s/exception: treat NIA below __end_interrupts as soft-masked On Thu, 11 Jun 2020 18:12:02 +1000, Nicholas Piggin wrote: > The scv instruction causes an interrupt which can enter the kernel with > MSR[EE]=1, thus allowing interrupts to hit at any time. These must not > be taken as normal interrupts, because they come from MSR[PR]=0 context, > and yet the kernel stack is not yet set up and r13 is not set to the > PACA). > > Treat this as a soft-masked interrupt regardless of the soft masked > state. This does not affect behaviour yet, because currently all > interrupts are taken with MSR[EE]=0. Applied to powerpc/next. [1/2] powerpc/64s/exception: treat NIA below __end_interrupts as soft-masked https://git.kernel.org/powerpc/c/b2dc2977cba48990df45e0a96150663d4f342700 [2/2] powerpc/64s: system call support for scv/rfscv instructions https://git.kernel.org/powerpc/c/7fa95f9adaee7e5cbb195d3359741120829e488b cheers