Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp664809pxj; Thu, 3 Jun 2021 16:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc2i68xVCVt/cOGxrHR4MZyHEUPUXnxlapraCbhF+OdPCilXmi2wCcT5SJCLriOZhGCixr X-Received: by 2002:a05:6402:50d2:: with SMTP id h18mr1838302edb.10.1622763606832; Thu, 03 Jun 2021 16:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622763606; cv=none; d=google.com; s=arc-20160816; b=gjCvjyw5eFG9gMcs1NTSk3pBhZYgZtE8o+4p6T6o44VfBVuyMM/VMlILvQVokhmP1x ZlKGZcHMFTKwtxthOQYJuy9GxPwo3pitoIAxdl8ht7Nx73JCtXAVt5wlkeqoaa8cT6nR 2QBifzbmNANxM1OKUFjBdJGnrC3KM5+/bLkwQx18o/yQf6fSC++jhPPsGK93QyWJtV/7 Ej/XmZ/k1MHtYBaN9ptI29uwOrXr2G0BVx2o7MWbwkgInAG+dX7bt3luNnW9pKG8RXyQ DA1AgJnP7W13UI1XuVpEMPLmiitttPhypWHPVHdMOQIcyn2iVH00dA4xJXDwoPPRrjbL y0+w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vyWrZ/fldASwaRIjyLrjp+HYBRR0gb/AZVj+sEux4qw=; b=0kif1tO/DRSsm2S4k6jUB0W4s873iJUV0GQ4rYn3JYC/B3Cge6K3ZkjbAmPXn6xi6x NvzFuLP11qDJWdU9mFylWcZJlj2CMBsYU/4dwBLG8pInfdkXz4ft2qclPs5byTqcczng Lw/lFY7M8kcq80Ym6Ma+wcltamMk2GlveTCKysnKYnugrvb8U7f9uesMPNh8QqV0B1D/ tpgNVjhGG8IY6+A84Z8MUFaImxHiXzwfeK/kCuyypiYVn5egOMrNIS3PwaBK57beGREU lLoTYW4Ar5xDeI+UC/WM2Kfr8CZy4cDgZ0ZpwVsEYaMX7zxLhJdnU+xSFqSJZ1GZzyPq 31iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VfPcGKLK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg8si3683107ejb.592.2021.06.03.16.39.44; Thu, 03 Jun 2021 16:40:06 -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=@gmail.com header.s=20161025 header.b=VfPcGKLK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbhFCXjm (ORCPT + 99 others); Thu, 3 Jun 2021 19:39:42 -0400 Received: from mail-pg1-f173.google.com ([209.85.215.173]:35524 "EHLO mail-pg1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhFCXjm (ORCPT ); Thu, 3 Jun 2021 19:39:42 -0400 Received: by mail-pg1-f173.google.com with SMTP id o9so3537666pgd.2 for ; Thu, 03 Jun 2021 16:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vyWrZ/fldASwaRIjyLrjp+HYBRR0gb/AZVj+sEux4qw=; b=VfPcGKLKcV1UvPky+z40TYyNslXUcxSrzTqzkRD4JUSH9hyXVkG1StNSaAXCILipA5 TrUq6lZF/QJobkfPwLmx0cmU0zoTUkDw2m8h88Twv9wAFbZdowb8t8cOZAqHb2A+B1UW 49U8c02lu2656N3PIQdQ+hXh11/3kT9L15UKUXSUQX1p2m3K0Js8nTCaRqmkwZufsA3i sQum8nq7IoFwWcD2X4Jf94veDKfTqYVoeqeR48QrmoPmCbNfJzDKjIG6NiC4nhRy90VZ A5D+YhquxcedYb/fCRYMR5a8ZWWuVeNH2qstkH7G52Kv2tLyLi0waEA0FJrgds9Yy+RM 3BjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vyWrZ/fldASwaRIjyLrjp+HYBRR0gb/AZVj+sEux4qw=; b=bFzCm/7hfx+d23bOLegeJ92BHLcGgUPkVutkzn2hw7sq1rTkV6fi/pf7/BqtGOB7Cv 7zQ0HG5JNznWRT3f/J3GrU5E4hq305AvLFBddkj+eEi7VT1gVKAeHcpFN42sIdTtJAFK 5xGEyMea4JOePkbogzziCRx607VZUUYvAAds/Qz2thY2XgNir/Wiqka4GxvaffdZ7j/Z MpRKHfQpECKcrLR21gFWVpC3iH5tHNflYV6LfLJZ4SQCmezYiqEP8n+CbIbaRFAqNfq6 uLA4UDAljFE0qjD+n2ivipzy6lha6tItSzWfQT68PldKXzd5XZQw7qVLBQ5HQnYeHYbC YbAA== X-Gm-Message-State: AOAM533NXhpFX52AFxPJQI/LQMq6lwPPxnrFEWJVjP1B7gMNH2M+Hhaq cHh7+9pqb+1SIytRNmWSqw== X-Received: by 2002:a05:6a00:1c4d:b029:2e9:c839:d2d with SMTP id s13-20020a056a001c4db02902e9c8390d2dmr1577514pfw.5.1622763401249; Thu, 03 Jun 2021 16:36:41 -0700 (PDT) Received: from localhost.localdomain (h175-177-040-153.catv02.itscom.jp. [175.177.40.153]) by smtp.gmail.com with ESMTPSA id gg22sm3009818pjb.17.2021.06.03.16.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 16:36:41 -0700 (PDT) From: Naoya Horiguchi To: Oscar Salvador , Muchun Song , Mike Kravetz , linux-mm@kvack.org Cc: Andrew Morton , Michal Hocko , Tony Luck , Naoya Horiguchi , linux-kernel@vger.kernel.org Subject: [PATCH v6 0/2] hwpoison: fix race with hugetlb page allocation Date: Fri, 4 Jun 2021 08:36:30 +0900 Message-Id: <20210603233632.2964832-1-nao.horiguchi@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here's the v6 of the fix of the race between get_hwpoison_page and hugetlb page allocation. Thanks, Naoya Horiguchi v5: https://lore.kernel.org/linux-mm/20210518231259.2553203-1-nao.horiguchi@gmail.com/T/#u --- Summary: Naoya Horiguchi (2): mm,hwpoison: fix race with hugetlb page allocation mm,hwpoison: make get_hwpoison_page() call get_any_page() include/linux/hugetlb.h | 6 ++ mm/hugetlb.c | 17 ++++ mm/memory-failure.c | 219 +++++++++++++++++++++++++++++------------------- 3 files changed, 157 insertions(+), 85 deletions(-)