Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp418699pxu; Tue, 5 Jan 2021 15:06:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5p+ppVyk5tP/EX8Zuv02H+HU2zoIcnWT9fhHbYSldgqtktRqQaosdTB+brgz6zwk7WGx4 X-Received: by 2002:a05:6402:b4d:: with SMTP id bx13mr2013666edb.93.1609887990989; Tue, 05 Jan 2021 15:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609887990; cv=none; d=google.com; s=arc-20160816; b=m/yTKv6oASRGcWRc3N2rRlHCS2HocxD62yFVDwI+qcvUT2u9QGydG9Jg/TK0xYiC1/ e0NSJYYLeV4krRlAT+KZLHVaCX7/s6bBQNP0liqGhMWN3genUOxHLhYDQc7yPR0wTAJ6 8yEVecS7/+MqYG+52DEJzQftSXooL1+F0aXNBJ8181yicXpw0ndMR+c1wSWmWYuJrmqt gPjnaTntzYzdTQtKJWXx1oFgVRZIx8IiMb71c8rj0aqsyugB5zpfFD+DKWbPJBpA2FLy 2Vjumv2zZo4TnqQoOBjkq3NF5hYHqh+QMZnyRPa/I6XFvcJDx8pPlsBW3I147unJOXJZ Co0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=s6F2SvwcbZK373069SLZrBu7NJM8ozvNHQfYRWPsEck=; b=MUonAqB4R68cfkBNpReHwx96cH/SlqdumfcaiGrKZG3s6KuTL8Qf8s+fXB5x54HU36 1CH4eCc21+hmye9iXoArEnSctEGkrs3ZIdgAI0lICQ83uLgi2XrLbfVjY8gZngtm7sGk ckoGFosSEwYjedaDz7ROUXyzsQTpWOYCQHH+EFRTXvt6z3V8HkKcvimOa2S8f1A/X6q/ GPwQXsm/T3fkiw2b0m+n/NmeRtOZYG4dXPGsZxhosXvZfyij0e8A/A2k8UDSeKzxx78z VK6joO3EOWiHaIkJs/Ia0ZEit90pVX+zIf7pCjhhNsm8rXppUruR5Pew9GPyqL5L6pjA 8QbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="hy/vjE5S"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zm13si245552ejb.351.2021.01.05.15.06.07; Tue, 05 Jan 2021 15:06:30 -0800 (PST) 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=@linux-foundation.org header.s=google header.b="hy/vjE5S"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731427AbhAEVXt (ORCPT + 99 others); Tue, 5 Jan 2021 16:23:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbhAEVXs (ORCPT ); Tue, 5 Jan 2021 16:23:48 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CFAC061574 for ; Tue, 5 Jan 2021 13:23:08 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id h205so1837907lfd.5 for ; Tue, 05 Jan 2021 13:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s6F2SvwcbZK373069SLZrBu7NJM8ozvNHQfYRWPsEck=; b=hy/vjE5SaF6czegqQX0MrOdpl+GiZWj39LeytRwKYyCkOFal4ic4IbYkUtq+SvTuIy JcNrCHKwdMIPWI5xADxwiT9gF5DL9Qh8Xp336ph68n11Co1yoy2k31xJFHMjTT5r4tfp 1T1axkDAsnXFFj/XkHJx8TYBK90ovvBzeWomY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s6F2SvwcbZK373069SLZrBu7NJM8ozvNHQfYRWPsEck=; b=SNmmfGSgdyBMbPNInyXrjNXQmRzrGEjRsCgXBH36ycASwdTScRRy/b/S5RG9a40VJC J7qN3cMU4GzIgfeSEZisH3GET1JiBINvElVi2TRXzI+m6UOt6EKMUt2ARpnk9K0nkL5I JGQsr6XeYMEITf+xilpzCKMIqjmwRm+m7hxxFPz8pe/xxhfK5P6AfFUvcPd86MjRvxyD O2UpTgMNzSqDxzDMR+OiHXXfF5Hhu8onCwhBx+USI3jMHLj/JOYXPAEouY6mNFGECO6e 3umaButQXg+QSPVTrD6QALRFOe+krbZnSCd9DCc2qnMP1rotXBh/O42drtOc0VbDtZow 1yFA== X-Gm-Message-State: AOAM5333deX8OrqoxDep6UYg7uRq1lCtNMu6quZwKfMBrjA6UBhY/DXG 3sq4W7ghXEXxPN0c5ihkY42qo+UnyYXDbA== X-Received: by 2002:a05:6512:786:: with SMTP id x6mr453883lfr.643.1609881786543; Tue, 05 Jan 2021 13:23:06 -0800 (PST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id o19sm36237lfd.250.2021.01.05.13.23.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jan 2021 13:23:05 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id s26so1795103lfc.8 for ; Tue, 05 Jan 2021 13:23:05 -0800 (PST) X-Received: by 2002:a05:6512:789:: with SMTP id x9mr461400lfr.487.1609881785021; Tue, 05 Jan 2021 13:23:05 -0800 (PST) MIME-Version: 1.0 References: <000000000000886dbd05b7ffa8db@google.com> <20210104124153.0992b1f7fd1a145e193a333f@linux-foundation.org> In-Reply-To: From: Linus Torvalds Date: Tue, 5 Jan 2021 13:22:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kernel BUG at mm/page-writeback.c:LINE! To: Hugh Dickins Cc: Andrew Morton , Matthew Wilcox , syzbot , Linux Kernel Mailing List , Linux-MM , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 5, 2021 at 1:13 PM Hugh Dickins wrote: > > I was going to raise a question, whether you should now revert > 073861ed77b6 ("mm: fix VM_BUG_ON(PageTail) and BUG_ON(PageWriteback)"): > which would not have gone in like that if c2407cf7d22d were already in. Honestly, even if it wasn't for that PageTail issue, I think 073861ed77b6 is just the right thing to do anyway. It just feels _so_ much safer to not have the possibility of that page wait thing following while the page is possibly then being free'd and re-used at the same time. So I think the only reason to revert that commit would be if we were to find that it's a huge performance problem to raise the page refcount temporarily. Which I think is very unlikely (since we already dirty the page structure due to the page flags modification - although they are far enough apart that it might be a different cacheline). Linus