Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp554700pja; Thu, 19 Mar 2020 07:25:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtCkrOdwN4SBg4vLbvD6bqI0ab7D//efrgPhdWGY/ey9j7f5MEsHj0GmDuTHiIdepdiveQB X-Received: by 2002:a9d:10d:: with SMTP id 13mr2716729otu.334.1584627938599; Thu, 19 Mar 2020 07:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584627938; cv=none; d=google.com; s=arc-20160816; b=CgVwZpvfLfIphR+xweDUfo++Jg/+4+iqlgA65Bf+9zjH44bQm+9AKBFfVyDrjUrVc1 6EnO7C5L7KqG1maquLMBcq02RVwJ/FDOwM778hRgHJ0w90JSjJ4X6YQ21fPUZNmGYKgX fyzDZ0mrN6cXudcXzhwikrsY8eKdofeqFNupXiAdGUSzdVrgNNsO1SZrBV7aahAHUl+2 pe20cuHzfoDOcXSL+G1afqm/yB5gIW6q2wWlGTZeoVQSQ92obR9zffLAzT/CtvHm+z3i luAO/MGJZ06RophDFBXBHAPc38cmUHqaZv8FkPPLMyOJqPyrc9oU/44p2M/8vaaLWWOJ Lwxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=cNlLau87Np36bKx0iAhDxIHTrK3kAkI265vpDmnypvk=; b=LdxtDa7uzJ65/EgP9x/Jwf2jFsIoLUwL2UqWStoI00MB/OZ6L8m1nlqrB7TktpP3yM KZzdJBqLUC0rdDLfqSs0ebiWy7/dU99WwoJ0mhUoq1X7Cd0wuhRO7HPgwQ9Ii9CqiLX+ HQ6cRzTcfEyINojGQ8rOelHgenbZxr1Ag/hotZy7XhUyY73D5UHj4Kw+/ORWQHIKyKYb dZEpO5NO76iEIw6pXZzV4hK511Byu+nTQBbRBf7nUFs13VAWQyo9nG18yZTJk6+qwLnc TMXJKLkYn5CaoqTSGDoKz1xxQtwHuCFxZFerpWGMl5S5ygTF9KxBJzAgOraHt4hHOffa gSyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si1499395otl.282.2020.03.19.07.25.22; Thu, 19 Mar 2020 07:25:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727232AbgCSOY4 (ORCPT + 99 others); Thu, 19 Mar 2020 10:24:56 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:32935 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgCSOY4 (ORCPT ); Thu, 19 Mar 2020 10:24:56 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jEw6O-0002to-4v; Thu, 19 Mar 2020 15:24:52 +0100 Date: Thu, 19 Mar 2020 15:24:52 +0100 From: Sebastian Andrzej Siewior To: Thomas Graziadei Cc: linux-kernel@vger.kernel.org, rostedt@goodmis.org, tglx@linutronix.de, linux-rt-users@vger.kernel.org Subject: Re: [PATCH] powerpc: Fix lazy preemption for powerpc 32bit Message-ID: <20200319142452.dqmkuruts3i6wjyt@linutronix.de> References: <0c91d808-b077-408c-b120-99e806efaeb5@EXC03-ATKLA.omicron.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0c91d808-b077-408c-b120-99e806efaeb5@EXC03-ATKLA.omicron.at> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-18 21:26:40 [+0100], Thomas Graziadei wrote: > From: Thomas Graziadei > > The 32bit powerpc assembler implementation of the lazy preemption > set the _TIF_PERSYSCALL_MASK on the low word. This could lead to > modprobe segfaults and a kernel panic - not syncing: Attempt to > kill init! issue. > > Fixed by shifting the mask by 16 bit using andis and lis. bah. Thank you for catching this. Still e500 based powerpc I assume? > Signed-off-by: Thomas Graziadei Sebastian