Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp418056pxu; Tue, 5 Jan 2021 15:05:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5LSsxzeClJAhcpO07IojR2/Epf+ikxTIkQnbYFh9AGyAHOl0m4gR4jkeT68E5xmdYZaFk X-Received: by 2002:a17:906:b2d1:: with SMTP id cf17mr1121891ejb.281.1609887932802; Tue, 05 Jan 2021 15:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609887932; cv=none; d=google.com; s=arc-20160816; b=wcJoLQFNZiImIRU/dcwOM+Y5lR40L9m+TsB5PC0WBBbrLW/cCqyhUGVEPjk/u9+KFW FD051/F8bpP3FXJb3/nJNFRUo7U0DnsXW44oZgSGPAhfkSyOgCC1Ah8xtF4yh9cFpsrw MR1/4MMK234ZQUSRnZ/cKrheHgHN4qBRb1BKBVuHL83uFcDEwLbcQzn4Lml1xTCr4vW6 Bl6ECmnxBr170kaozs9qwxHAGSK1PMjq2+iG92cSrds+nvqS5NbOROKT3twtqEcZ70hz nSKCmb9MifoVRbaC9/WpP9x8gYoeFzNDKpfEuBwSGNttz5uzS+gV0GGulvRna4r+2KOX 70DQ== 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=4fXXGhqhwyZOyY/MzNL+cRERt9hfQzFKJ23KP07oxrg=; b=pks7W294bdBptNnoOjZgKF0IeNzSm0lyuSiPWAjJdQyir4wZe6ZWEf6C5bh+yiri3a SMvmkshVm8CwgT6bhBUUrK5Gy9wRjqnSGDq0WWry/y5zRMh6hmp4dNhGOi6oIYbYOel9 ozwgxMrYNhGjAoW9mS+bQdS+vvshHSLd50th4vVVgV/qmeTbztqT8Ou5dfyzoBRjILhK rpRht+xmCkyltL3Lzx4/R6gTw9ts9lvPepQtHE9hxj+huKAAE3UMtykLKWwamp/Cyjy3 VfL7jkg3wTuxsMohkez+AOvGRxxxhBz8yIR61w9IyZonoZF/xl89F5lCh7/IcJE0Th15 oz/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PMmrvrHj; 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 o18si235263eje.528.2021.01.05.15.05.09; Tue, 05 Jan 2021 15:05:32 -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=@infradead.org header.s=casper.20170209 header.b=PMmrvrHj; 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 S1731470AbhAEVfl (ORCPT + 99 others); Tue, 5 Jan 2021 16:35:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbhAEVfl (ORCPT ); Tue, 5 Jan 2021 16:35:41 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44C5AC061574 for ; Tue, 5 Jan 2021 13:35:01 -0800 (PST) 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=4fXXGhqhwyZOyY/MzNL+cRERt9hfQzFKJ23KP07oxrg=; b=PMmrvrHj+uqoxe55GQq/rvMKul vnT6PdTMKIcWp7KrN5DXA+ZEJiz3CBALxwj1Uqo8nFC1NGwaoyQK3Grlyl79zD5LUpt+4czdLxlL5 2cFEeUZZwnxF78MglNWKES4nrdE+4r9hJ5R1kL+wG/6X9hXK474xKhoyFxg7D1uU8MqOh43ksyJKo pt+S0Vvu7wC+71IE0zC5Cjr7ZiWiLMcxNh1JE65auWFmVWs8sn/AVPG2ByO8YbpGMC92YxQdplu46 h/1uASJyw59tHRhBS60tWeXSpBra+QkpGB8Fla2VFDBn/JzRJajbg7BlYVZ3xch6t6BGg+TbOCOvo dSjnFwNQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kwtyL-001hQZ-DD; Tue, 05 Jan 2021 21:34:42 +0000 Date: Tue, 5 Jan 2021 21:34:33 +0000 From: Matthew Wilcox To: Linus Torvalds Cc: Hugh Dickins , Andrew Morton , syzbot , Linux Kernel Mailing List , Linux-MM , syzkaller-bugs Subject: Re: kernel BUG at mm/page-writeback.c:LINE! Message-ID: <20210105213433.GC175893@casper.infradead.org> References: <000000000000886dbd05b7ffa8db@google.com> <20210104124153.0992b1f7fd1a145e193a333f@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 05, 2021 at 01:22:49PM -0800, Linus Torvalds wrote: > 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). struct pages _tend_ to be 64 bytes on 64-bit platforms (and i suspect you're long past caring about performance on 32-bit platforms).