Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2036478imm; Sat, 30 Jun 2018 09:26:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpca68w4OxNSvajdxSzQPcy5aaXu0YEmZKuwSTPC+aOwe0yStHX6QdJuyvz7v1ouB6ztzn0G X-Received: by 2002:a65:5b8e:: with SMTP id i14-v6mr12190867pgr.242.1530375999397; Sat, 30 Jun 2018 09:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530375999; cv=none; d=google.com; s=arc-20160816; b=M4pmmg5gd09Ew1bIcOFhM68sJngkSGIZH0l+5Skr2DcKe0bFqJ+p6c9cst1FydlHid ppoyBtRIEwLULCRO9lGAa9jIGY+oCZNGRL5yPFhQ4sm3jlwKMmRB5Yxyf/kzyRhO/E9M I1hbE5Kn/QoWB5frOFC5UI5Q6F+lqpYA7YTEhA6O32PGNO7cQ/vd3TpcwBc/09oTVDnY b0D1dxccg4Y06PGmXztFHNFGYam/yMEWJbqTU2wyXFo0aQ+2uIXS0NX5rrWbylvAJaMt U2YaEj2R4VlYDaHshpOWH6iAKTgXqKycWHK8s9xUvkY9ZLYLZyKFw2RtkS/10LxI/Tac JJKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=IBsesTxYbpdfX9P3QFgdsqi1d5yu/tuP3GYLnArbARk=; b=PzgCmgaIig6mw9vpc1gJAsZCvuWMvExzOGHFnh8+89e1kgPchF4MnII2dI/M0DDBjm ZqbV/bkZDnxhvESVOlK9sAbB7BXJoZ4v5KLcEs7Td4PnIa7uPo/RjMlMMwBrCKprt81K SodjX/11RohXAwb6oA3aNlHergLUW9VFiRw7F0irXKd7PvKUy20VisLh6BzmTJfWtABK E3RSqUiZhbJBZClU5fxI+K9AXG7WWM7QWUdfXYOC4iarlZ6XD8UyLIWBjqOZ09RSv7o8 SEai+CyS9E+BpTQMEze1PzSb78wCuQKBQMcv2I2+uccaglEma3WzTVm6jdGM6Lhdvlbd oClw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kNvOdGqi; 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 y6-v6si504422pgk.474.2018.06.30.09.26.24; Sat, 30 Jun 2018 09:26:39 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=kNvOdGqi; 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 S1751331AbeF3QZV (ORCPT + 99 others); Sat, 30 Jun 2018 12:25:21 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:39916 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbeF3QZS (ORCPT ); Sat, 30 Jun 2018 12:25:18 -0400 Received: by mail-oi0-f66.google.com with SMTP id d189-v6so2422839oib.6 for ; Sat, 30 Jun 2018 09:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IBsesTxYbpdfX9P3QFgdsqi1d5yu/tuP3GYLnArbARk=; b=kNvOdGqikX3A6719n/UKWNFPnHRhp8YMGCFAOb5J20YnNYqvxfbP3NxV55n15f/Acz gWmEnBDKkpvIB7j7xjhH0R25wQzqxIxY8oMAJZWDtkqNIPkFK2Mqf3gflEiYVzzy7pFJ Bnv/LURao+79vqPgoHSNUmT/FgTaZ1C3UpogrSgYKOa3B9niTnDtI1eoj1w5uq4vPkU0 3QfGFlyqNcRwXc5hirmFyO1JPIUdZ0rBmn9+U8nSnC1XhwIFUKuXvVnuFs9Jf24zQCqF 1SACIcGGj/yx8ZQVl0A1fJvb83rWMvh7gKzTloQthorU+TocFMVI1PIKws8+LVAgWzOu cOMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IBsesTxYbpdfX9P3QFgdsqi1d5yu/tuP3GYLnArbARk=; b=ssinPZ5NHEnQvbGZze+yFO892UAMThFJGX8TgZj8LROgxYIss2ivMImtpGAjxLthuK KZwUWq8M66l2ZrspeLJB6JyEHEI76uBwJvC0qi30HXuIsKl9SX4MeNq94EUCdFvsvT61 Fs4V2KHANjNEg58dAfyRzmW9fTdS6aiph3MreK/+quV9ZFx7rskR+6w0Nv855WaiHhIC oO1VRdK6ACO2HcEwo3KQnwHbAzhICBmMTA8dtFBzU0Ne/SYxFNcW/ijnkUUHVBUS7Ksy 3VzvqPaDY/N3mrOKsyV6Echw+Wbk/WntuuWSMj5Cf2YGzXOXdqvg9gZWtqVvbM1jWa9+ yCFQ== X-Gm-Message-State: APt69E1cqQPrlXZiSlIuwtKgZZBV1prJLsjfl4F3MdRlD4S3YOPvyyti O/s4ASwQirQ9TOjSzl6WNJiGog== X-Received: by 2002:aca:758c:: with SMTP id q134-v6mr3683749oic.334.1530375917572; Sat, 30 Jun 2018 09:25:17 -0700 (PDT) Received: from [192.168.1.107] (cpe-24-31-253-228.kc.res.rr.com. [24.31.253.228]) by smtp.gmail.com with ESMTPSA id t7-v6sm5737494oth.12.2018.06.30.09.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 09:25:16 -0700 (PDT) Subject: Re: [Update] Regression in 4.18 - 32-bit PowerPC crashes on boot - bisected to commit 1d40a5ea01d5 To: christophe leroy , Matthew Wilcox , "Kirill A. Shutemov" , Vlastimil Babka , Christoph Lameter , Dave Hansen , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Lai Jiangshan , Martin Schwidefsky , Pekka Enberg , Randy Dunlap , Andrey Ryabinin , Andrew Morton , Linus Torvalds , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, LKML References: <99169786-61dd-b19c-ac81-84bcd0a67de4@lwfinger.net> <1a73e92a-f77d-ba1e-ebf8-b469db3c465e@c-s.fr> From: Larry Finger Message-ID: Date: Sat, 30 Jun 2018 11:25:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1a73e92a-f77d-ba1e-ebf8-b469db3c465e@c-s.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/30/2018 04:31 AM, christophe leroy wrote: > > > Le 29/06/2018 à 22:42, Larry Finger a écrit : >> My PowerBook G4 Aluminum crashes on boot with 4.18-rcX kernels with a kernel >> BUG at include/linux/page-flags.h:700! The problem was bisected to commit >> 1d40a5ea01d5 ("mm: mark pages in use for page tables"). It is not possible to >> capture the bug with anything other than a camera. The first few lines of the >> traceback are as follows: >> >> free_pgd_range+0x19c/0x30c (unreliable) >> free_pgtables_0xa0/0xb0 >> exit_pmap+0xf4/0x16c >> mmput+0x64/0xf0 >> do_exit+0x33c/0x89c >> oops_end+0x13c/0x144 >> _exception_pkey+0x58/0x128 >> ret_from_except_full+0x0/0x4 >> --- interrupt: 700 at free_pgd_range+0x19c/0x30c >>      LR = free_pgd_range+0x19c/0x30c >> free_pgtables+0xa/0xb >> exit_mnap+0xf4/0x16c >> mmput+0x64/0xf0 >> flush_old_exec+0x490/0x550 >> >> I have more information regarding this BUG. Line 700 of page-flags.h is the >> macro PAGE_TYPE_OPS(Table, table). For further debugging, I manually expanded >> the macro, and found that the bug line is VM_BUG_ON_PAGE(!PageTable(page), >> page) in routine __ClearPageTable(), which is called from pgtable_page_dtor() >> in include/linux/mm.h. I also added a printk call to PageTable() that logs >> page->page_type. The routine was called twice. The first had page_type of >> 0xfffffbff, which would have been expected for a . The second call had >> 0xffffffff, which led to the BUG. >> > > Oh, seems to be the one I noticed and told Aneesh about > (https://patchwork.ozlabs.org/patch/922771/) > > Aneesh provided the patch https://patchwork.ozlabs.org/patch/934111/ for it, > does it help ? Yes, those changes fix the problem. Larry