From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635AbcJIWbr (ORCPT ); Sun, 9 Oct 2016 18:31:47 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:32878 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbcJIWbq (ORCPT ); Sun, 9 Oct 2016 18:31:46 -0400 Date: Mon, 10 Oct 2016 01:30:28 +0300 From: "Kirill A. Shutemov" To: Wenwei Tao Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: kernel BUG at mm/huge_memory.c:1187! Message-ID: <20161009223027.GA3964@node.shutemov.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 09, 2016 at 03:24:27PM +0800, Wenwei Tao wrote: > Hi, > > I open the Transparent huge page and run the system and hit the bug > in huge_memory.c: > > static void __split_huge_page_refcount(struct page *page) > . > . > . > > /* tail_page->_mapcount cannot change */ > BUG_ON(page_mapcount(page_tail) < 0); > . > . > > In my understanding, the THP's tail page's mapcount is initialized to > -1, page_mapcout(page_tail) should be 0. > Did anyone meet the same issue? > > Thanks. > > 2016-09-28 02:12:08 [810422.485203] ------------[ cut here ]------------ > 2016-09-28 02:12:08 [810422.489974] kernel BUG at mm/huge_memory.c:1187! > 2016-09-28 02:12:08 [810422.494742] invalid opcode: 0000 [#1] SMP > 2016-09-28 02:12:08 [810422.499034] last sysfs file: > /sys/devices/system/cpu/online > 2016-09-28 02:12:08 [810422.504757] CPU 31 > 2016-09-28 02:12:08 [810422.506775] Modules linked in: 8021q garp > bridge stp llc dell_rbu ipmi_devintf ipmi_si ipmi_msghandler bonding > ipv6 microcode dca power_meter ext4 mbcache jbd2 ahci wmi dm_mirror > dm_region_hash dm_log dm_mod > 2016-09-28 02:12:08 [810422.571439] > 2016-09-28 02:12:08 [810422.573088] Pid: 10729, comm: observer > Tainted: G W ---------------- 2.6.32-220.23.2.el6.x86_64 The kernel is already tianted with warning. And that is way to old kernel -- from RHEL 6.2, almost 5 years old. Contact your OS vendor. -- Kirill A. Shutemov