Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5151597pxj; Wed, 9 Jun 2021 10:16:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHVmIpiZOwTFMbaBi5wIejdYHassSpIWmhh/4Qnu7ngKvp970Wdi+QaBowQsuZZUKPOCcv X-Received: by 2002:a05:6402:1a4b:: with SMTP id bf11mr492388edb.286.1623259004539; Wed, 09 Jun 2021 10:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259004; cv=none; d=google.com; s=arc-20160816; b=zgXp80z2AjxbJHWMAZiDbW6ADvNmcYMby1mllk8pwBN6h2FxMoEN5kvYA1vNCXb1ML JykCdQ1VUXMIB4vxc/T+7TIPmZY/i3F1ro5bGlSIZI6ZkBYRpfG8M1eQEbmBzdr+/eAm BG+BvH5EHgPXM34OTXxBPoaY5+hF2wGRe40Fgo23tUA5GQDaXpTrQUj/LwBdI7iUDl3p 0qEAx7KCj8CcysPuAVQn8sgxvEvtUDm/1dn/zTJktK8ip0yaCezBcsRkjhevSD3Xnoix AcUnhmLtq90FwCgQo0UuUbPzTuB7/APQo6MftbE2L00w+IIF8Rc+Xm2mZIfORFhscgJT ajEg== 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=7nPZCXLPijOT5fF+FbZxX7XklvUO6QeqH4yp5xzaFwE=; b=cvB1VAKwA/hlJhjSraBcDgWb9iVFHVQenkwfbX4lS3WlbqUPGUZBACOeAJU06WpyyT nYEwikvL4N4zRTqH/yNQS5r+b/3Y4bAzbSJL7ueTtkC7MP6IdQM7NuliGixyXttNxY9w Y67UzS8sOIXiIdcJNKV8aKMHnqC1EZ6FsAacSbAPDy6FvfST9GbqYjP2fJbsliBwHgXV ndorVXwyteJ0lwdFiT0eEkMllvdcqygU6lRoOpEcMqHBV9N+CWfQoUCK0oTBV4SerwoC 5vVdAb2w3l229PTUk1oIeMsfPo01TzIoAeREXuGhcRL0C7X8HvMbENRdFwkXMFwMh7p1 YISg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Gf01+i+r; 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 t26si235520edq.83.2021.06.09.10.16.20; Wed, 09 Jun 2021 10:16:44 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Gf01+i+r; 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 S234781AbhFIKaq (ORCPT + 99 others); Wed, 9 Jun 2021 06:30:46 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:36420 "EHLO mail-lf1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234179AbhFIKap (ORCPT ); Wed, 9 Jun 2021 06:30:45 -0400 Received: by mail-lf1-f49.google.com with SMTP id v22so35874490lfa.3 for ; Wed, 09 Jun 2021 03:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7nPZCXLPijOT5fF+FbZxX7XklvUO6QeqH4yp5xzaFwE=; b=Gf01+i+rhrmHv9uNBDWDc4o/KNuydo5p1MgGdFh07Uoo+QVHZHlt6MLTMN/DbW7mCN a6vTFWPnMtsCf4wTlZA2u3Gb8Xz+5GHAmSFv+9eLD2WDtbE71s7If/Uqqdzr8VNKy1SX A0wsmHGiKewJw7KfcC20flRS3LszPAHip5ia4RJ7Za6GCxzOqTJO4BzKoThXHiCjfEUR kRmpXjGugz/IpC3P1hv06est6m8bAPWn0hRaPEe0VCXpRVR6HzsH8Cv/vW8EhCRxt4Gi sUdzYSad+GLPzNIZeBblLs0VftgEtBokyA+gFODBNZBOmmprVk9BeQvgD/eXURL1FZ0p b0PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7nPZCXLPijOT5fF+FbZxX7XklvUO6QeqH4yp5xzaFwE=; b=VllpI1C4YAgrl8UrQF2SL3bvljIj9U0IssAGosLQtcf/2FQ0QommxEh4sKjjBjkT+/ a7Weus99RVU2g6f07b7EyDfIcQJ+AUWTvBTG5uld9mU4IF+7PICj9TKpfkG+esp6SY6a Ootd7cNvl1jomMtzQEnYOSI5e/Jz7zaRoyNrxVSTrwj3Up4mlneTBk00+MVrzAlKTr1N MnAibLe+9BU0OPB1T9LEeIbfqN/0tAJWt+wpo8ZvcpbvzXv49xhoVJT9dhcF+wJogi2y 14+4yVpF0vwoqHLjPWWMb0yEWzaKqsk0ztTfNXHpRCU7gygXslBVpjH1On98mj2C+r/2 SWxA== X-Gm-Message-State: AOAM531Kkph257G42OJSTjs+Dopc5/SVSWuVpFvZAgtyE+yxwGpSJh1O sXQ9cw91Qv/miT+R1FltT0WFww== X-Received: by 2002:a05:6512:38ce:: with SMTP id p14mr19133331lft.197.1623234456361; Wed, 09 Jun 2021 03:27:36 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id y22sm308374lfh.154.2021.06.09.03.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 03:27:35 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 3AE1A10265B; Wed, 9 Jun 2021 13:27:51 +0300 (+03) Date: Wed, 9 Jun 2021 13:27:51 +0300 From: "Kirill A. Shutemov" To: Hugh Dickins Cc: Andrew Morton , "Kirill A. Shutemov" , Yang Shi , Wang Yugui , Matthew Wilcox , Naoya Horiguchi , Alistair Popple , Ralph Campbell , Zi Yan , Miaohe Lin , Minchan Kim , Jue Wang , Peter Xu , Jan Kara , Shakeel Butt , Oscar Salvador , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/10] mm: hwpoison_user_mappings() try_to_unmap() with TTU_SYNC Message-ID: <20210609102751.kl4ywrx3bybyg46w@box.shutemov.name> References: <329c28ed-95df-9a2c-8893-b444d8a6d340@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <329c28ed-95df-9a2c-8893-b444d8a6d340@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 09:30:00PM -0700, Hugh Dickins wrote: > TTU_SYNC prevents an unlikely race, when try_to_unmap() returns shortly > before the page is accounted as unmapped. It is unlikely to coincide > with hwpoisoning, but now that we have the flag, hwpoison_user_mappings() > would do well to use it. > > Signed-off-by: Hugh Dickins Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov