Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4985380pxv; Tue, 20 Jul 2021 16:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxREDH236qI2jLsN7Zi5/9FvHG8WHmRqq40h62Ac2hsNVQe9aUeqCs9YnSuc7E6BHEFAZL7 X-Received: by 2002:a05:6402:686:: with SMTP id f6mr35525424edy.127.1626823148845; Tue, 20 Jul 2021 16:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626823148; cv=none; d=google.com; s=arc-20160816; b=Gv1ns8NA/AN4vXl1amrd7aggSi15o+D94ixtZuOkXthHIltrUXu3bV51IRXJoQcp9r HQ76iG4DD7yui1tiMfvGY4L3+Ba3YFP7vfeXP+f10cIzKqYFTUeVJLo22nxrSn7Ic8f2 GWX3P9OoaYNPPeBN3gCizzWD7/uWUxaY/aCCDiwTrhP1A9DcqTJQZdzM7vBpYRH/X56M MyDoOSSV7rr0ZKy+5QFIIo185ZxFcSVCwnizEVrmCJcHD1wHn9fRPeTupFRRo6U2/zd4 pmPZQLPqM3ZhidXMw3MybZWheqNeG/7nsz5s3sGY0/1C8DzcaQy+4NweLXGrJQv10odz NgXQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0p6woGvLazRsdIw5tzwzVQwrRbtmhR2lrobhIH6fadA=; b=Pa2HPKCmnzX8ViWucvrS9HkOEz5DrsGv2D04y86t6SPhoK/Lbl+W/9e/EOAFFjqYB0 LMwpzTdBL5t55jzdKHFi67newvKOLoU/NlJv8DnkhB1UauntKsOTMR/GLzE/jCDpDp+N eDIBxGDIrFEloTJXFQCvCcZKri3Q0h3moufabvXtBGdzafNF48EODOuuD60RFRjT3Dw4 +SwISZCRcX+ZzTeqC+I2FB22ExqM+SfywIBEweXFjek6aNnNC/pfLVPtCYSFJChEtSk5 YUN68I4FsTkMOo9CsArvpB00ZMdI//k8wXLy+0p+LjzSU8bcCBX8nXPJmqljAl/woCzH XEgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=asJZYUWG; 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 o13si27036860ejy.231.2021.07.20.16.18.43; Tue, 20 Jul 2021 16:19:08 -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; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=asJZYUWG; 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 S231697AbhGTWd7 (ORCPT + 99 others); Tue, 20 Jul 2021 18:33:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbhGTWdq (ORCPT ); Tue, 20 Jul 2021 18:33:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 46CB760FE7; Tue, 20 Jul 2021 23:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1626822862; bh=nEnjKOxUloIQfSQL7a+2WVoIz2kHnvdbpqmipDdcQII=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=asJZYUWGeUCXEMHNcgGFRAG/YdCc5ucna4fYThfnH6elAMAExzgEYCremlJelES1R H5xyNCRFILz36ZhahLc4oktKOkbnRMklrUbRAAoEoF0z7gFZAq+pw8H77B9yvDx1zw /nukVTRmXzzte9RPc7RrDPONIP+pA3r9KNH85Loo= Date: Tue, 20 Jul 2021 16:14:21 -0700 From: Andrew Morton To: Qi Zheng Cc: "Kirill A. Shutemov" , tglx@linutronix.de, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, songmuchun@bytedance.com Subject: Re: [PATCH 1/7] mm: fix the deadlock in finish_fault() Message-Id: <20210720161421.f4874db77e0b13192d0ab895@linux-foundation.org> In-Reply-To: <9e97cedc-9fd7-4290-9f44-04b96acea15d@bytedance.com> References: <20210718043034.76431-1-zhengqi.arch@bytedance.com> <20210718043034.76431-2-zhengqi.arch@bytedance.com> <20210718212814.suvziikndiyezi6m@box.shutemov.name> <9e97cedc-9fd7-4290-9f44-04b96acea15d@bytedance.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Jul 2021 17:53:12 +0800 Qi Zheng wrote: > > > On 7/19/21 5:28 AM, Kirill A. Shutemov wrote: > > On Sun, Jul 18, 2021 at 12:30:27PM +0800, Qi Zheng wrote: > >> The commit 63f3655f9501(mm, memcg: fix reclaim deadlock with writeback) > >> fix a deadlock bug by pre-allocating the pte page table outside of the > >> page lock, the commit f9ce0be71d1f(mm: Cleanup faultaround and > >> finish_fault() codepaths) rework the relevant code but ignore this race, > >> fix it. > >> > >> Fixes: f9ce0be71d1f(mm: Cleanup faultaround and finish_fault() codepaths) > >> Signed-off-by: Qi Zheng > > > > Acked-by: Kirill A. Shutemov > > > > and add stable@, please. > > > > OK, I will add these in the patch v2, thanks. Please send this as a separate standalone patch, not as a part of the main series. Also, please include in the changelog a description of the user-visible impact of the bug which is being fixed.