Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp614298img; Tue, 26 Feb 2019 05:53:27 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia+vr5nnzfO5uHf35+a+wV+KO25Pfmv51p94+KkaVVoupl+SbQpl4oFLOZ94XwFf6uODRQE X-Received: by 2002:a65:6489:: with SMTP id e9mr24500130pgv.260.1551189207362; Tue, 26 Feb 2019 05:53:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551189207; cv=none; d=google.com; s=arc-20160816; b=tBL3fXmPGTzOJFa3ynkt3NClbwSxaIle+0U2c/ZFU3aPGd7EceMQcYji6g+S+odMA6 +O5CNHAh0aFbvhmVK+QH2J9V6YI+Q1fMM+YhaZMM/9SJLoUbOecTta6Oa4j5mgGJBdl7 ez1nBU7UAj1nbhDeYsy/HoRQktx9v2QEdYZ3skdTQkBeDNK/Cpt7Mqzg+K3Lra+Folgy Ls28W7nv6ClGr022OT3N1SseU7l0+393IIiOmsIr5ID5f1kWiXtgYllWLSyj3xv2Uhc1 a+mbCwsQlzVI77VL1+aoJFTIxzAcs3p8Ekj+Xn3zpS6q8GNlMBup/WD00vPBYfoNDMyt dk4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lLK3BfRxB+qG/aPDalW8MkM3Flr+0berjH+y6Qs1Co4=; b=e/p/r7ExX6hdipnABgnIwsXetIwHpmklFUcLlrHLH8SIvFC8ipfF5ppq3gnjZiTW1w wmtgWbmZNufb/fzukB5uop5WBMsAXcsi55qn5416fRte3TRFhdcUIIFu+p5QC/lCBDSn s4U9gwCJfAQY9akJ0GNGdlaQhiTtbco0VZwSLNYZxeHPeqCWvaS4QNtPbIPAESJ32P7p UNZZjKP9G/Wb4ModGzk0ci5d4q10pUFHNjhBJwpv9e14ay9L3VgR4t83wpoSmZ+FK1DV MkbJYSMAlrqiL6fN/j3gBIrVXDVPBgI+23uLjXfocKGMAFwiUOGOCxVWjnSKJOPtiMgo GjvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=j7BI8t9w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b125si3231821pfb.242.2019.02.26.05.53.12; Tue, 26 Feb 2019 05:53:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=j7BI8t9w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727614AbfBZNwD (ORCPT + 99 others); Tue, 26 Feb 2019 08:52:03 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41603 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727051AbfBZNwB (ORCPT ); Tue, 26 Feb 2019 08:52:01 -0500 Received: by mail-pg1-f193.google.com with SMTP id m1so6247008pgq.8 for ; Tue, 26 Feb 2019 05:52:01 -0800 (PST) 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:user-agent; bh=lLK3BfRxB+qG/aPDalW8MkM3Flr+0berjH+y6Qs1Co4=; b=j7BI8t9wmBNjRxMmV65x2O7XXA+jv1wklMcOpP7+aNgJlnbw1zPeSxFQgpNtoX+ZQI eFiIM9jI3sNGzA5n+wH4wuWRC/q/55iO+ZiS1yyE9iPZHjuvooh5aY65vllpzR2Lhd1w 1o+hEWiT6fXCAXIEA2kZtlt7BqYXmoB0rghGS6otU5i5zZWL0nqH+6lJkvGSlNnlM2j6 32Lddsc15Z787TELQglsClmm9TuUA1tSuHxRQPvHqbg8eZOhkBeJJUc0Rex09C6qMTk7 Nd+Sq9tSgm9rKrF8IXOhPCyuQbaLbyewkMjixgzPKefrg0wP0+hjAGxwzymwqHK2/Z3T NKvQ== 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:user-agent; bh=lLK3BfRxB+qG/aPDalW8MkM3Flr+0berjH+y6Qs1Co4=; b=ZeX6o61zotE/wDXuSRAXZSibSBfBTRj1x48MIiKx1GDh+HRHuUY9+61hLOMkZsvNwp sGmS4BgTjwiVGhtLOF7EMTVh4x7+VEIrd4YyZfVLSnDf+dlEgBOx9BhXDgyPSITUd7u0 pYT/7nyiVLoNTKYwQTUbq02nSKxhuR47tY1K5GOlRFCNzEGlMTtboaf1WaHUSiWxlnmX vwXgwybE5WyzFCrYpVBltukvwDzsHhXR35Vt59HrsTGQqKUEP1zoQDFxJbRKk77Tiiq+ bOkbcf2DVqpvUDQtewyEAKhpmpAedy2DJYCrr0s3xGhBVMN4BOqbI/8iZPZmG9f4GBj1 R2EA== X-Gm-Message-State: AHQUAuZ6l/ZdtQ65R4H6EzI2CuUv1NFTBoeHe0WTCpzO8IWU/fw+rKS0 RSaVheN+0qmHRyFfWufxkQKdsA== X-Received: by 2002:a63:4b0a:: with SMTP id y10mr24504308pga.66.1551189120787; Tue, 26 Feb 2019 05:52:00 -0800 (PST) Received: from kshutemo-mobl1.localdomain ([192.55.54.41]) by smtp.gmail.com with ESMTPSA id c18sm3626873pfo.44.2019.02.26.05.51.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 05:52:00 -0800 (PST) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id B569930064D; Tue, 26 Feb 2019 16:51:56 +0300 (+03) Date: Tue, 26 Feb 2019 16:51:56 +0300 From: "Kirill A. Shutemov" To: zhong jiang Cc: n-horiguchi@ah.jp.nec.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mhocko@suse.com, hughd@google.com, mhocko@kernel.org Subject: Re: [PATCH] mm: hwpoison: fix thp split handing in soft_offline_in_use_page() Message-ID: <20190226135156.mifspmbdyr6m3hff@kshutemo-mobl1> References: <1551179880-65331-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551179880-65331-1-git-send-email-zhongjiang@huawei.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 07:18:00PM +0800, zhong jiang wrote: > From: zhongjiang > > When soft_offline_in_use_page() runs on a thp tail page after pmd is plit, s/plit/split/ > we trigger the following VM_BUG_ON_PAGE(): > > Memory failure: 0x3755ff: non anonymous thp > __get_any_page: 0x3755ff: unknown zero refcount page type 2fffff80000000 > Soft offlining pfn 0x34d805 at process virtual address 0x20fff000 > page:ffffea000d360140 count:0 mapcount:0 mapping:0000000000000000 index:0x1 > flags: 0x2fffff80000000() > raw: 002fffff80000000 ffffea000d360108 ffffea000d360188 0000000000000000 > raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 > page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0) > ------------[ cut here ]------------ > kernel BUG at ./include/linux/mm.h:519! > > soft_offline_in_use_page() passed refcount and page lock from tail page to > head page, which is not needed because we can pass any subpage to > split_huge_page(). I don't see a description of what is going wrong and why change will fixed it. From the description, it appears as it's cosmetic-only change. Please elaborate. -- Kirill A. Shutemov