Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4278804pxb; Tue, 17 Nov 2020 16:48:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+4g5xqei6DBg7Q4RfnPR1v4P6lV3dmcli2IMf55l5tytzsnrr6vM/FgJ1B4xcO0Znfcdj X-Received: by 2002:a17:906:fc4:: with SMTP id c4mr13322278ejk.490.1605660486218; Tue, 17 Nov 2020 16:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605660486; cv=none; d=google.com; s=arc-20160816; b=Sjm2oNtvxbIsLFwqcw2pflBgE56FdNpPYDL69baBnZoCklqgrcYmN2mU0X1Va2YFYL VlBpZIRBa5Lc5PhxlEXayehkxeBLC5dv/I1a0gMSjF4MgsdEPM3Be0y8PfFOdzhci0SG gKhYMtasyXn3iFMereg395ScoNcNdx7zZmLBijdMdw/5aE1i8roRA1aGXORsKr0gRPys d18Hhj91D5Fc/9DHWysoJhdrAeH/IstcpSki8qUPOiqDifLH8KlJKdQW4voDCGU9eCfA y2gbTJrvgtGJto0iLL8+CZZwpUKBWad2JWoxydh1QwNdM/D4bo7mGwWw8XjIZaVhz2oe 4PSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9M2xqKyOpRp9LpyMJnOnd2l41fYOPTa5qnC/IExGUe0=; b=0Ut2TQKcVTCFfCJ4OimDE5bzPtqmk+k1UiZmI7wbjX1uCN+XEjaGaeHy5pguIvEhx2 ePwUaa9rvgPSX3kDqSU813G+PRDhuVoEu9Zsu8yrYMJ8nodk7FqjzGvyh/+Ex1ud14lZ 30qBHxsBzF/zuWlxG2HMGU6fAZa1geZEnLkpksmFDfXT8AlEEtrad6QHsvxZFHHmXXzI xhm3WYY3dg/AweRtA4xVCmNexq7AvyLOXRNZrBOBBuf+byeYoPiZZPnpMlK7ciJL3cUx tg9f1ayPxn3/LEQKdJGyL88LYlqhLlD5bgELropeasejHEyjRIKJ7qFLGXCS7+suqN/A wJDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LRWj38G+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si15205816edy.389.2020.11.17.16.47.43; Tue, 17 Nov 2020 16:48:06 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=LRWj38G+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727429AbgKRApb (ORCPT + 99 others); Tue, 17 Nov 2020 19:45:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:35792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgKRApa (ORCPT ); Tue, 17 Nov 2020 19:45:30 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E94324181; Wed, 18 Nov 2020 00:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605660329; bh=WQtSwGawLcx5cNeiXXUE0xzq9xL1NO7N+lP3KuaOZck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LRWj38G++Gq39Byx9+ahpj6HYYOiiqlHK/cjkQcThMQuKvT3gDUOLAS3DFMvyFilt c7pg4ZmmfqQ+YNHbYd1ibSNCS0Vkc8aVj1aYZGfi3fbSPvRdQc0M2HLs7igyBr0K7N +KezrqksYdcU0xVCnc66s86vfiHoWW5I2HJMMlsI= Date: Tue, 17 Nov 2020 19:45:28 -0500 From: Sasha Levin To: Kamal Mostafa Cc: Michael Ellerman , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Nicholas Piggin , "Peter Zijlstra (Intel)" Subject: Re: Same problem for 4.14.y and a concern: Re: [PATCH 4.19 056/191] powerpc: select ARCH_WANT_IRQS_OFF_ACTIVATE_MM Message-ID: <20201118004528.GA629656@sasha-vm> References: <20201103203232.656475008@linuxfoundation.org> <20201103203239.940977599@linuxfoundation.org> <87361qug5a.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 10:51:16AM -0800, Kamal Mostafa wrote: >On Tue, Nov 3, 2020 at 4:22 PM Michael Ellerman wrote: > >> Greg Kroah-Hartman writes: >> > From: Nicholas Piggin >> > >> > [ Upstream commit 66acd46080bd9e5ad2be4b0eb1d498d5145d058e ] >> > >> > powerpc uses IPIs in some situations to switch a kernel thread away >> > from a lazy tlb mm, which is subject to the TLB flushing race >> > described in the changelog introducing ARCH_WANT_IRQS_OFF_ACTIVATE_MM. >> > >> > Signed-off-by: Nicholas Piggin >> > Signed-off-by: Michael Ellerman >> > Link: >> https://lore.kernel.org/r/20200914045219.3736466-3-npiggin@gmail.com >> > Signed-off-by: Sasha Levin >> > --- >> > arch/powerpc/Kconfig | 1 + >> > arch/powerpc/include/asm/mmu_context.h | 2 +- >> > 2 files changed, 2 insertions(+), 1 deletion(-) >> > >> > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> > index f38d153d25861..0bc53f0e37c0f 100644 >> > --- a/arch/powerpc/Kconfig >> > +++ b/arch/powerpc/Kconfig >> > @@ -152,6 +152,7 @@ config PPC >> > select ARCH_USE_BUILTIN_BSWAP >> > select ARCH_USE_CMPXCHG_LOCKREF if PPC64 >> > select ARCH_WANT_IPC_PARSE_VERSION >> > + select ARCH_WANT_IRQS_OFF_ACTIVATE_MM >> >> This depends on upstream commit: >> >> d53c3dfb23c4 ("mm: fix exec activate_mm vs TLB shootdown and lazy tlb >> switching race") >> >> >> Which I don't see in 4.19 stable, or in the email thread here. >> >> So this shouldn't be backported to 4.19 unless that commit is also >> backported. >> >> cheers >> > >Hi- > >This glitch has made its way into 4.14.y ... > [4.14.y] c2bca8712a19 powerpc: select ARCH_WANT_IRQS_OFF_ACTIVATE_MM >But 4.14.y does not carry the prereq that introduces that config. I'll queue up the 4.19 backport for 4.14 too, thanks! -- Thanks, Sasha