Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp809964pxb; Fri, 13 Aug 2021 06:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbT3h1K99rDtmUGq9ZzVx8poMd76VpL1E/797JJ5/4PpoAqMLBBhUeIVgMo38wcP545AkG X-Received: by 2002:a05:6402:898:: with SMTP id e24mr3279620edy.197.1628862809333; Fri, 13 Aug 2021 06:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628862809; cv=none; d=google.com; s=arc-20160816; b=O7tDOTEGbamWffrZiSiJ4CrMjOcbOlDOojgP1h/998f+rvubbgMBGdL8RTki0c0gWS Xuq4UnpYGD2JFPiFvRxJ+LtpCy8QO5HpJTkN/VpIfIPoseNbCgoxo6zLU2B573QaS7ZK Qd+QL6EG6wTKgSBeeCWnXaWacQYDCe4oduRxwHxc7vywBCK2MonXsI3CVXDcIHdbbUYj 9O9Ka8GQ+qBpasFVSTf+nEW+Yyvqdixt5tnfgJjrPtHcT4fY00jZdIH19DZvg0qCkzxL YQ+3HOEdVUY2B0CrWr5dLulrdhrUPhk87S8iwK6QNLp0bUWzCXscxMHvebPsGZqlcdmm feUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=g9hdEZWlicEkYL9BckwoIffvJIx54ev6xGsJdW3VtCA=; b=oNUCf4K+CLnq4Szue4P8Y8ihskf8nx8HmJodP8FgpoKvlPV7gw7Uju7ikXcPtZzb/S DF4rMK69q9nGJjSOwOhngFelx6MQYR02rDZJI6fFzVqXciEwCkmKNoeVFxPKvihXgeXY xQwen4VaTxI5jJwbeM9KXYtynXdQlhsUoAHjlFCXiY5B8si/oMw0MmDmMzKxyM4qRNdR ARerxss4E4DB3X9xsPSEp/z+FcnWt+9OA+4AgXqrPiR38N5t5VFgGDcRxg2DqAk11Atm B78E6+vZwpUBEQ04jCx7r5p2XElPFZq6eJaFOo8kt4Dwjbug0TM3ClqBV+dLIy4xnqiI D8AA== 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 v22si1891233edb.60.2021.08.13.06.53.05; Fri, 13 Aug 2021 06:53:29 -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 S239199AbhHML7h (ORCPT + 99 others); Fri, 13 Aug 2021 07:59:37 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:39457 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239847AbhHML73 (ORCPT ); Fri, 13 Aug 2021 07:59:29 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 4GmMXj3h4bz9t5K; Fri, 13 Aug 2021 21:59:01 +1000 (AEST) From: Michael Ellerman To: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, Laurent Dufour Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org In-Reply-To: <20210805152308.33988-1-ldufour@linux.ibm.com> References: <20210805152308.33988-1-ldufour@linux.ibm.com> Subject: Re: [PATCH] powerpc/pseries: Fix update of LPAR security flavor after LPM Message-Id: <162885586748.2317031.9018391947607622770.b4-ty@ellerman.id.au> Date: Fri, 13 Aug 2021 21:57:47 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Aug 2021 17:23:08 +0200, Laurent Dufour wrote: > After LPM, when migrating from a system with security mitigation enabled to > a system with mitigation disabled, the security flavor exposed in /proc is > not correctly set back to 0. > > Do not assume the value of the security flavor is set to 0 when entering > init_cpu_char_feature_flags(), so when called after a LPM, the value is set > correctly even if the mitigation are not turned off. > > [...] Applied to powerpc/fixes. [1/1] powerpc/pseries: Fix update of LPAR security flavor after LPM https://git.kernel.org/powerpc/c/c18956e6e0b95f78dad2773ecc8c61a9e41f6405 cheers