Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1340798ybz; Sat, 25 Apr 2020 16:53:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLnx/qUu0udTgU80QS3IOY5BMhzazZSieF2BVV2ebUyT47Sj6kuI04ZJ6rBQdH9qYiZG3n0 X-Received: by 2002:a17:906:a418:: with SMTP id l24mr13323028ejz.362.1587858787091; Sat, 25 Apr 2020 16:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587858787; cv=none; d=google.com; s=arc-20160816; b=Gi3a/92R2ZLIwb3EjOyNUFqCSi2Bl3/9lDgXqh11xzdWqRrb+x7xhUrkHm1w6mAjgp +x1eZFrw6NxSmj5EdqdRvRxyFZEH3D1C1OKki9yxf4Qrjl/OHGGgMAzA873C/DGshYQu Vsfx3QVs25AuJBO2UeuB4zUFaoXU6GVQLIznFEwSZeteGOqM/6wpvtMC+nYRddHi0jLa 4R4RqLTJkEwJyPP4J9VJ53JTT9lZ3Z/h+eDEF0PQ/BvNhhpMueb90DRn8AySx2dqylYk pZRDA/FFceBZuQEtZb6D79kIyGSQhXP12kXCKsxbrDBgqbprp8bK8g+5FZcZNTKD4R5G QFBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=LCvaELeLQd+N/Bu5Msb7AjgK0IA7AXwoqSfIzhgaykI=; b=wrkqnUGVfyxro15gevj7psCA5AIWy45Dk+5F0VDS9dfo6VWPQ8473Mj0/M5Byz75oW Wv+/QtuhTiWPzHyQBYVzn/mJ8KfLnUhGLCEt6qF0QrWpRzVTJUXKvqGLt3Yq8WWsV+16 s8rsGhNsTe7yU95JguGpEbZL1QXp3CIH2UUgpd3idKhBCv/woE0miPoP4YNucX2RpWjN PPy86m4H5viZx5uYhZc+p4N8/4N8FznxAn0JagjxvSGyoF141fkePhEKNXn1BHFEGrxS AOleBv/dk3yADvuY62f1TsYFc4F7ZIvvtXjcARyD+giL+qp0/Plh3Q1r1WuWF17KSrJg y4BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si5585059edb.37.2020.04.25.16.52.44; Sat, 25 Apr 2020 16:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbgDYXvU (ORCPT + 99 others); Sat, 25 Apr 2020 19:51:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbgDYXvT (ORCPT ); Sat, 25 Apr 2020 19:51:19 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9ECC061A0C for ; Sat, 25 Apr 2020 16:51:18 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 498nqm63yRz9sSg; Sun, 26 Apr 2020 09:51:16 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: feb8e960d780e170e992a70491eec9dd68f4dbf2 In-Reply-To: <540242f7d4573f7cdf1b3bf46bb35f743b2cd68f.1587124651.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/mm: Fix CONFIG_PPC_KUAP_DEBUG on PPC32 Message-Id: <498nqm63yRz9sSg@ozlabs.org> Date: Sun, 26 Apr 2020 09:51:16 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-04-17 at 11:58:36 UTC, Christophe Leroy wrote: > CONFIG_PPC_KUAP_DEBUG is not selectable because it depends on PPC_32 > which doesn't exists. > > Fixing it leads to a deadlock due to a vital register getting > clobbered in _switch(). > > Change dependency to PPC32 and use r0 instead of r4 in _switch() > > Fixes: e2fb9f544431 ("powerpc/32: Prepare for Kernel Userspace Access Protection") > Cc: stable@vger.kernel.org > Signed-off-by: Christophe Leroy Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/feb8e960d780e170e992a70491eec9dd68f4dbf2 cheers