Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1152499pxb; Wed, 4 Nov 2020 01:07:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+sjlaApQBsNAn4PeJeU1KiaLYrfIoLWX21Dx6Mbb4kVURUtOGqFXx0nnzrLnS0HjzTJ+o X-Received: by 2002:a17:906:adcd:: with SMTP id lb13mr13608211ejb.362.1604480824656; Wed, 04 Nov 2020 01:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604480824; cv=none; d=google.com; s=arc-20160816; b=WGOUYzgloP/8DgxhEavEmQGq1rXJ4exWLSfyl27BYx8CD+GHFcPPgFZ/G10wjTnaJs 7tEFU8nBHOOq/NSuX/zKnhig11wjeb9mIL7X92qXJLY1g8d5ZXfZC9X11DmcJicPY/Bd w9rRnpTtKHjHgt5SUgjl0yfr+4kZ/Nr7ZgvdMw+kLpSfIr+iGufzjjSfpiN34zilNUYi MwNXgbS9VBOGpXv86u8ZXsnTt47N1GS4/xlK9Us8fBUFZMq8OTfuQBqBZ0e8mww5BXMN 7krR9Vis8VBYkG672iPJ77eFrQ7cOm5aLz2jL55PN1++ZhX4vN4JMpB1IxuKytsNU6S7 57rg== 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=lTnlYKC1HtzNpYKrhs9+4rg5SIhaYoNVtyeZJI5Eui8=; b=TC2A4M2zgEG2d1HUo/neUluJ7HIiMF2By5z4xl+F9ONLnj3ij4h9WYN+nyQKE1nGMA Ec4yNxPJeSaMgjxd+76VVO8+EVUg3+ahQQYWKXBZJpR5UZRwvC92+ddrofDNgMiEJEOe DaNmZJb6nravmZKYGb8KtjVADex9RZ7Yvm0SpYyrblBfqO8ukScmVnkFekS4p/t/mP7X k5JCGakTDw5DybhOMtw+1JSrT8l4fo0mrQRsBIYjI+ZCHJZR7oePHwu5Bx4TaAk/TKRT IvAVCOtsXBwLGJg73MgOohaaVXSJM7nPgQ4bf4k7nC3+36qt2NMggBv6cIqdvYmWn0Pr t7ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lgKqgbnM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si1006920ejo.473.2020.11.04.01.06.41; Wed, 04 Nov 2020 01:07:04 -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=lgKqgbnM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728523AbgKDJFA (ORCPT + 99 others); Wed, 4 Nov 2020 04:05:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:54510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbgKDJE6 (ORCPT ); Wed, 4 Nov 2020 04:04:58 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 4E2DD2220B; Wed, 4 Nov 2020 09:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604480698; bh=RrG7UZ6WXi39gsCIBfUePqokH5ljjR4rAlO1FEu4eP4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lgKqgbnMumChVGaGLx9OqXvrCL2umG5saMgHEwPOhTdPaaamkCnlRr3HiWvvkH0rP zAYPYAIP1yF0qcCcUlWinAdjXiZYhGHMTqcgujK8+jiJx31xKK78A57OeDfC/720ET NzUJR0KyrB+dp27OaaJ45prWzB8qFzXIxPERXvtM= Date: Wed, 4 Nov 2020 10:05:49 +0100 From: Greg Kroah-Hartman To: Michael Ellerman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Nicholas Piggin , Sasha Levin Subject: Re: [PATCH 4.19 056/191] powerpc: select ARCH_WANT_IRQS_OFF_ACTIVATE_MM Message-ID: <20201104090549.GB1588160@kroah.com> References: <20201103203232.656475008@linuxfoundation.org> <20201103203239.940977599@linuxfoundation.org> <87361qug5a.fsf@mpe.ellerman.id.au> <87zh3xude6.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zh3xude6.fsf@mpe.ellerman.id.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 12:19:45PM +1100, Michael Ellerman wrote: > Michael Ellerman writes: > > 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. > > I just sent you a backport of d53c3dfb23c4 for 4.19. I've taken that at the proper part of this series now, thanks! greg k-h