Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2627410iof; Wed, 8 Jun 2022 08:46:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Zer/hKbN5/oxMqeQcvNpHaYtNB0LKJbaLgoVQVf9B4pxNOWvTw6znizl17xvdxZznix7 X-Received: by 2002:a63:4f09:0:b0:3fd:3479:7624 with SMTP id d9-20020a634f09000000b003fd34797624mr23179500pgb.425.1654703171154; Wed, 08 Jun 2022 08:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654703171; cv=none; d=google.com; s=arc-20160816; b=yVFXAQWBfNlHZskdCjfmyMLETJxPu87VSDIj/4ojuWc158LfdzjYxOBqOY2GFvE0zZ YQJjC6GUGg/1mywiqmylN3IdmacEQAi8VNMxzqdrx26c8QsDBDdWCB5uJVfziiHezWBS KxWMn+UuXmBSDvAESeGISSckHO3pMOB2FVycUxxUYI2UCnEhhHnHPIXqoLSh8tJXrzOb BmQOpVX5DQKRRKTcLbTWwI+O6f6g7kzC9lJw6IbkQWwF5taGPoOC8QCOioRTWZWkO+qx 0viSPJVt8S3MXzbybHufoR9ALeCG2nrCJjBM3MGxkyIrO1xGbZrefbQfHqt7oVfb8uEE 5pvQ== 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=ezwSP2ycpO1p3eEM9FoNLAzo6tW/B/UAxq7z/I5YF+c=; b=NQGJtYgnNakoPZwz5esO+yQvZTcf4JIaZ+Y+ikFNxBWcZOdSw5zAd4x0WZKxRdXtwr MMn8i5Vev7mANdAoQXJl+gxVKpPRHqhrXgkXys+J70M/v30QvCXEwBk+DjhyDlyiRDyW heP+KRnM5Dl4PGnZMrmpONg3so7TjuJeBp7ld5Po9Di2HABdbxPqxID8qmwPA3KBUJCp 7s5XderI/rfvZWYM8OlclVstla9r4XdPLnKwucJYmoeXBUTS7alupcp6poObRkKEr8b5 036mcDFykAQIBm0RsvJsLT1tXJpMdmjFIHIjvAV0zND7+tvOI21x8C2rKq1qGI4HxWzB ouMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VX18ZEOx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p9-20020a170902780900b00153b2d1659fsi13845310pll.423.2022.06.08.08.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:46:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VX18ZEOx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 92CAF11CB57; Wed, 8 Jun 2022 08:17:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244337AbiFHPP4 (ORCPT + 99 others); Wed, 8 Jun 2022 11:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244428AbiFHPOg (ORCPT ); Wed, 8 Jun 2022 11:14:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7EBA1F0A4F; Wed, 8 Jun 2022 08:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ezwSP2ycpO1p3eEM9FoNLAzo6tW/B/UAxq7z/I5YF+c=; b=VX18ZEOxSUcNpyBZYrsteOdpBT HZTcWzeAfZ6BJYQuFjLWfCOJvTMUxk8MBr1xKoL2P60bmS4cJFpNLiXDZtftqzI+rgduxGS68DtiK n2sX7U8y/70osNz3d2Xt0J6OluKnOUM3YB9Zi9fJja9GYLe+tapPXdVPaGQ3u9lSN6Xi3CMW1rzUO e3CAfEEv9OEh2D7wgtx4oI2+cs3IN1VyHSrg0xW5CGtOKE5NiMzT399Egt+AxLGeudx7a3sdf9LdV Mi/zih0vfnOHChkKnY+yM8XUEhW7zxYgPk9eAQTvAmT+1w3WkGykJpFbfD3mdaGEeXhyHnkHSdNZ4 EXPPsicA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyxHH-00CjeB-22; Wed, 08 Jun 2022 15:07:23 +0000 Date: Wed, 8 Jun 2022 16:07:23 +0100 From: Matthew Wilcox To: kernel test robot Cc: Baolin Wang , 0day robot , LKML , linux-csky@vger.kernel.org, openrisc@lists.librecores.org, linux-arch@vger.kernel.org, lkp@lists.01.org, akpm@linux-foundation.org, linux-mm@kvack.org Subject: Re: [mm] 9b12e49e9b: BUG:Bad_page_state_in_process Message-ID: References: <20220608143819.GA31193@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220608143819.GA31193@xsang-OptiPlex-9020> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2022 at 10:38:19PM +0800, kernel test robot wrote: > > > Greeting, > > FYI, we noticed the following commit (built with gcc-11): > > commit: 9b12e49e9b02bbaca8041f236a6b2fd4586d45c8 ("[RFC PATCH 3/3] mm: Add kernel PTE level pagetable pages account") > [ 75.338681][ T4873] BUG: Bad page state in process 444 pfn:20b066 > [ 75.338840][ T4873] page:0000000016cf0259 refcount:0 mapcount:-512 mapping:0000000000000000 index:0x0 pfn:0x20b066 mapcount:-512 is PG_table. Somebody forgot to call pgtable_pte_page_dtor() (or similar) > [ 75.339041][ T4873] flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) > [ 75.339190][ T4873] raw: 0017ffffc0000000 dead000000000100 dead000000000122 0000000000000000 > [ 75.339350][ T4873] raw: 0000000000000000 0000000000000000 00000000fffffdff 0000000000000000 > [ 75.339508][ T4873] page dumped because: nonzero mapcount > [ 75.341013][ T4873] Call Trace: > [ 75.341080][ T4873] > [ 75.341142][ T4873] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1)) > [ 75.341236][ T4873] bad_page.cold (mm/page_alloc.c:637) > [ 75.341326][ T4873] free_pcppages_bulk (mm/page_alloc.c:1511) > [ 75.341428][ T4873] free_unref_page (arch/x86/include/asm/irqflags.h:137 mm/page_alloc.c:3444) > [ 75.341524][ T4873] __mmdrop (arch/x86/include/asm/mmu_context.h:125 (discriminator 3) kernel/fork.c:791 (discriminator 3)) > [ 75.341608][ T4873] ? __mmput (arch/x86/include/asm/atomic.h:123 include/linux/atomic/atomic-instrumented.h:576 include/linux/sched/mm.h:49 kernel/fork.c:1194) > [ 75.341889][ T4873] exec_mmap (fs/exec.c:1035) > [ 75.341977][ T4873] begin_new_exec (fs/exec.c:1293) > [ 75.342071][ T4873] ? kernel_read (fs/read_write.c:455) > [ 75.342160][ T4873] load_elf_binary (fs/binfmt_elf.c:1002)