Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2221025pxb; Sun, 18 Apr 2021 23:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6squbfA1c8MuGtvs1M28rl1txOu1/dkUBwyGESEqSYrXTW+AWnfSIf0XfmYuVD6hjfJN7 X-Received: by 2002:a05:6a00:2304:b029:25b:2b31:3ac6 with SMTP id h4-20020a056a002304b029025b2b313ac6mr11309522pfh.59.1618814413088; Sun, 18 Apr 2021 23:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618814413; cv=none; d=google.com; s=arc-20160816; b=wDGQzlptX1aRqUQURfC/W0lalw9OgdCJeeLhaMeP3hXU5nlR3CKAuIE+ZHmL+9Rv3Y DI3rDLuB0nec3ATGZsuN8j/N23nz1nQrrLSHxYsn+77tIpe2Y0eZkN47dUR/PAEToKu7 hMNG81MSIo5K7X+aCCYgvPpgLnaxh/Iip2lTsSZ4QE3C5RzwVrxAPwwHsbflFrXJNvdY g+9ltlhrt9kD0e8tuRXEwyaRZnr8UCZcI4IinanV2LLcrz00gsubZozDaj6L7j9enFzA rPm8YnbyA9u7HYHZO5cKYLORw68EktUmd05hRJojp53noNqehMjWJY9KqmfALvXrO8pe iFwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=nvr2+/PKd5oQxWifihbzA8+OhkZlPY4vms4pz1zYo0A=; b=C346+ZtEHzlBJW795izoXDVy1WyshTqhOwbcJksbiZX91HtAEGu+tpCbETyO7O53e2 ZqPwN1F1A9Oly59rKV1iUsWfThQX62yBxKXytxoWZUAPFpOoEfmgtNIo4PHEX5NV11C7 wPeKgHrGe0wThsIrqtmatsO1AMed+Ll/mjsoOIDdh4d9gKMYfNvmMy0isBS2kg3AjZ85 Ky5vVQa702dJEdD66MqIW22/81mlWGQmwF3p/ET65BbjVjye2VRiqLlwEsJJpy9y/7ob rYlH6isbXfgEr39tQlMfWsJal8IJkZMRO8YNCrTFr/0NvXdVuleaZxlmUDHQqnYctc1g vdQw== ARC-Authentication-Results: i=1; mx.google.com; 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 y188si5647299pfg.243.2021.04.18.23.40.01; Sun, 18 Apr 2021 23:40:13 -0700 (PDT) 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; 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 S237464AbhDSGfP (ORCPT + 99 others); Mon, 19 Apr 2021 02:35:15 -0400 Received: from verein.lst.de ([213.95.11.211]:45258 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhDSGfO (ORCPT ); Mon, 19 Apr 2021 02:35:14 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A92C068B05; Mon, 19 Apr 2021 08:34:41 +0200 (CEST) Date: Mon, 19 Apr 2021 08:34:41 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Jesper Dangaard Brouer , David Laight , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mips@vger.kernel.org" , Ilias Apalodimas , Matteo Croce , Grygorii Strashko , Arnd Bergmann , Christoph Hellwig Subject: Re: [PATCH 1/1] mm: Fix struct page layout on 32-bit systems Message-ID: <20210419063441.GA18787@lst.de> References: <20210411114307.5087f958@carbon> <20210411103318.GC2531743@casper.infradead.org> <20210412011532.GG2531743@casper.infradead.org> <20210414101044.19da09df@carbon> <20210414115052.GS2531743@casper.infradead.org> <20210414211322.3799afd4@carbon> <20210414213556.GY2531743@casper.infradead.org> <20210415200832.32796445@carbon> <20210416152755.GL2531743@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416152755.GL2531743@casper.infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 04:27:55PM +0100, Matthew Wilcox wrote: > On Thu, Apr 15, 2021 at 08:08:32PM +0200, Jesper Dangaard Brouer wrote: > > See below patch. Where I swap32 the dma address to satisfy > > page->compound having bit zero cleared. (It is the simplest fix I could > > come up with). > > I think this is slightly simpler, and as a bonus code that assumes the > old layout won't compile. So, why do we even do this crappy overlay of a dma address? This just all seems like a giant hack. Random subsystems should not just steal a few struct page fields as that just turns into the desasters like the one we've seen here or probably something worse next time.