Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1699145pxj; Wed, 19 May 2021 11:46:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqsAELv/UkcyS1e+vqUISFDQNzcjgbnYOV4GMu3/Xu1R5niLMyB928RvGCrvRqL3BxVZXj X-Received: by 2002:a17:906:a285:: with SMTP id i5mr585286ejz.350.1621449979864; Wed, 19 May 2021 11:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621449979; cv=none; d=google.com; s=arc-20160816; b=c4dvphW58qJzxLoCUYRI7swi67OVHZw4U1MP0ZFOx7jYuS/9C4NAtXyQD65/WvOCic M15m7PovBxl9KpyBp3S9YD6ZBnzmvLBIrJspwP5vSWSMFaDJkoJ4+Vgv3YTK1OOnA8VF JDAxVU72rwHGaeu23XkAkpcxbNbr9+uMDZfTl+Y7+9uKW7Rn/QWrjBaTD8J5e3DRAZBb Ob08ROcLsdRVdLU2FZ6pbcablfEUfMwq9t2cCVGcmITLqEjSIovmkv0+aUE9SGEVgdc7 csvJvjayf/vpV9UkcLtnUGsVjltu9pxaTWLhV/DKZKNwvUgApZkyvGZXBNG5p6H0M0+c +LJA== 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=wmux7zEIvTlZ3g8qBTFUSGjR1GHleMmeGKxZ7tsT3bE=; b=dUT4b3rLU8ojKgorB+9QGjSxDrf8+78Wmv+XR7Na7ZVuCgLxhAFhpt3u2YaFR5Rf6K m67l2uhEyaTUM/9nNSRELlFtM7KO6NufDhWy1Pnrw7JZTT2Fxs1V3yD8Q0V30wDaSI7y vWGwgQ/Gmgh0oUg0icCfx4CTnJTcEPqJjF5QqS3gtw6u6WaW9n9Ovy2U8jJPJhr3D7GE PYzlkMPBCvtYC/DBXUcwsID8HsjJmeZ+lVw4/yLNfvuPZsCgvZCONFiEnZQlVvNxMBRJ QBWPFMUe2SFyOE0Ee85AAItOFXkOIZF0draVegZw6ibyhsHw3cpcbOTzttp+CKxmIfkw SdDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pwupZ+G8; 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 t14si362089ejb.624.2021.05.19.11.45.55; Wed, 19 May 2021 11:46:19 -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=pwupZ+G8; 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 S232649AbhERXO3 (ORCPT + 99 others); Tue, 18 May 2021 19:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhERXO2 (ORCPT ); Tue, 18 May 2021 19:14:28 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D3EAC061573 for ; Tue, 18 May 2021 16:13:10 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id 22so8172591pfv.11 for ; Tue, 18 May 2021 16:13:10 -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=wmux7zEIvTlZ3g8qBTFUSGjR1GHleMmeGKxZ7tsT3bE=; b=pwupZ+G81nZwIn0zo+G/TlYE6h/qDMi1EBng+geK5dYMIq4x5U2wa0nf0U344ZI1bF VFJXNJjfO6eOPVyIRyKEmDHmQ4fcc1Z2RzMDw1pX/n0SL+qCKZhUtMC59hfOrDxAnmHH yyKnvMVFDMshHrMNdIkImBN6a/9vW+lu/SNV70tiZdRwctCZzYD1YJszXAeweq2yqES5 mEeJUHBKpYmOWuhzj7kQtimO5dTL+bYKVlqtoUaQ0Yv6hUAVnUrr4i+kvmk0+5kfJUhA cKANbfMwB+qQQroRwq+BO+WglfV6SSbUx8SNQPqzj6XkfNOimu6/1qVL5nj1i9luGKoI FKrQ== 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=wmux7zEIvTlZ3g8qBTFUSGjR1GHleMmeGKxZ7tsT3bE=; b=BLvU0od1mDiJmfE/TNRyQpK9lA/+mXWyDz5wsFxE9rAtpPXexYoa5TSeEPf72iZtTL oLDvh3qBDN+Kjw6DYEOADzkJ8Y2zTRPqyEI+kdXNCkFSz+Jdd91dlZ2mGqbl0DI5KHNw 11LxjVwLade9t2m6RFvEiaDFfb49mOLI6tfR96tiCOGhh2mAMJnKft6/O/ijaJPjivIV Sa6bBkWgqpsY8Q9OfLtwKTCLgltxIy7PwZxt2ONPwNW33Hot1HcGtGY4K96ZNXigo8wr YCHQrAwsOh1tEWuhHhZb2wmqT9Iz+MwZTvUwS0kVRDeOeBFozy9+quV9Xze5dDVjZZu0 IIVQ== X-Gm-Message-State: AOAM532fH0QINTYao/7QB12cwUoJ3C34mU010dB5OiwF4iwPyE2BSBt3 dAfbRVoxO7L+fe0Qmzqeqg== X-Received: by 2002:aa7:90d5:0:b029:28e:df57:47ff with SMTP id k21-20020aa790d50000b029028edf5747ffmr7546916pfk.74.1621379589702; Tue, 18 May 2021 16:13:09 -0700 (PDT) Received: from localhost.localdomain (h175-177-040-153.catv02.itscom.jp. [175.177.40.153]) by smtp.gmail.com with ESMTPSA id f14sm14437473pjq.50.2021.05.18.16.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 16:13:09 -0700 (PDT) From: Naoya Horiguchi To: Oscar Salvador , Muchun Song , linux-mm@kvack.org Cc: Andrew Morton , Mike Kravetz , Michal Hocko , Tony Luck , Naoya Horiguchi , linux-kernel@vger.kernel.org Subject: [PATCH v5 0/2] hwpoison: fix race with hugetlb page allocation Date: Wed, 19 May 2021 08:12:57 +0900 Message-Id: <20210518231259.2553203-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, I updated the patchset again based on discussion over v4 [1], I rebased onto v5.13-rc2 with suggested fixes and code adjustment. Thanks, Naoya Horiguchi [1] https://lore.kernel.org/linux-mm/20210517045401.2506032-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 | 118 +++++++++++++++++++++++++++--------------------- 3 files changed, 90 insertions(+), 51 deletions(-)