Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp262271ybe; Tue, 3 Sep 2019 22:20:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwl/OcdGQZeX5naQOgMCszpJX9MKM4aPvxZTlMqG2e91JKO1o/y6rVlJ9ifSFGSbBjsqVa X-Received: by 2002:aa7:8436:: with SMTP id q22mr16542103pfn.74.1567574440416; Tue, 03 Sep 2019 22:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567574440; cv=none; d=google.com; s=arc-20160816; b=qdFWEVOoRJxF6Pb21vRJDDNUpI2jo/ip0+1JmuG0CY2weiH60NBBhBEXU1xe4eR/bE gcQ5Eppe41R6TpfF8gvZk9D29BuE8SHMfGLS1O5ZFf2iV8UEQUFP2sOOQhyol6vnCIk6 aC6sRSolVsRMG83hWM+Qx32prUUI1UBl/C736/KIevTeUvM1zQJBm27aS4tpfhPmmeNp pGZiHdMql5eDuo+DaqgzfTbedrim8A+5YdufGgha8KErE0PGuhXUyaVKfZ+SlDajP1zI /3Iverg4J3rY4d+dUu2uPH3iiL8ZcLQYDzCj8PbKfDfy32MSkNowRg0/uQp3im8RuUJJ hY/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xRlSS2aqhYaBUj0UvvLiVFyAeGAhMR9q/JYRgcJsudg=; b=dNjVBG89/uAPpU30VVgTf7ibuC2GsXYqats52kdzdsgQ2vBRvsqXFhV31kThtpA3/r /ON7FDCpvhL0FGKZ6BtLKzbaEND/koly7omTXc5s6aE9Rb2AvQdf2TBkQ6soD1JfcUd/ noXcPg8nW0J0QKTCfyxuNNozMelA96eCo1ODIsoCvWWYeBubHJsFsekVY3seHqNhlcyF UnjygWIHkNC0ChnuUdhEgDi5xqfvVIOO5aII8xSA2s5OZr2sha3xqAcuPSSn05yW5hcX eq+zSh7PWz0nJmmZW+bpLagwgkBj/iEFTwysJf1GLBpYfXhLJkZRVCKccqNWdp/8r+45 dJRQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z12si16372019pgp.342.2019.09.03.22.20.24; Tue, 03 Sep 2019 22:20:40 -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; 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 S1728113AbfIDFTi (ORCPT + 99 others); Wed, 4 Sep 2019 01:19:38 -0400 Received: from verein.lst.de ([213.95.11.211]:35930 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfIDFTi (ORCPT ); Wed, 4 Sep 2019 01:19:38 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 7B64868AEF; Wed, 4 Sep 2019 07:19:33 +0200 (CEST) Date: Wed, 4 Sep 2019 07:19:33 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Christopher Lameter , Michal Hocko , Vlastimil Babka , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pekka Enberg , David Rientjes , Ming Lei , Dave Chinner , "Darrick J . Wong" , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, James Bottomley , linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2 2/2] mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two) Message-ID: <20190904051933.GA10218@lst.de> References: <20190826111627.7505-1-vbabka@suse.cz> <20190826111627.7505-3-vbabka@suse.cz> <0100016cd98bb2c1-a2af7539-706f-47ba-a68e-5f6a91f2f495-000000@email.amazonses.com> <20190828194607.GB6590@bombadil.infradead.org> <20190829073921.GA21880@dhcp22.suse.cz> <0100016ce39e6bb9-ad20e033-f3f4-4e6d-85d6-87e7d07823ae-000000@email.amazonses.com> <20190901005205.GA2431@bombadil.infradead.org> <0100016cf8c3033d-bbcc9ba3-2d59-4654-a7c2-8ba094f8a7de-000000@email.amazonses.com> <20190903205312.GK29434@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190903205312.GK29434@bombadil.infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 01:53:12PM -0700, Matthew Wilcox wrote: > > Its enabled in all full debug session as far as I know. Fedora for > > example has been running this for ages to find breakage in device drivers > > etc etc. > > Are you telling me nobody uses the ramdisk driver on fedora? Because > that's one of the affected drivers. For pmem/brd misaligned memory alone doesn't seem to be the problem. Misaligned memory that cross a page barrier is. And at least XFS before my log recovery changes only used kmalloc for smaller than page size allocation, so this case probably didn't hit. But other cases where alignment and not just not crossing a page boundary occurred and we had problems with those before. It just too a long time for people to root cause them.