Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1097244ybe; Wed, 4 Sep 2019 12:32:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPqspLzLHlM/gSk+MGgVYyzP0+uJOjFPTwS7oY+y+FZsCJ9/JKcoK2jsPkico4fzHDV4MN X-Received: by 2002:a65:6284:: with SMTP id f4mr37634775pgv.416.1567625562153; Wed, 04 Sep 2019 12:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567625562; cv=none; d=google.com; s=arc-20160816; b=0QZNterzw8mb/74UQxjyjvd6PPKccHLrkJw705w2m0uaXgqHwYT/xOlkItoqaW2PxY D1mjW/1JoPn9LTBkiUN1s85vGfEQQ9KZLp6ULDXl4rAU9W01eJY3k7HuijdVrfnuJbN6 WcEDpNwmxiuheUATzufKFZTVPn7tIhtgMfaMmqTJKZja8f4JG8BQLVFZ3qlHQEQxH8ZG YfiP2Eg9UN6BmwOrlN4S3ZSO1+IbuzlK3FNygLJiSIwUpEn/gUEfm4TXi+NQc0cp8X2S ObgIWPLFCkrKEntUbMlrufl62iku7/vPDFL6Z22W+FKvUi2z1wsZBRhOXgGj35O7o9Sq s0bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=MALklUANwpJGNpqjay0cWCenBbWh7mSRg3MGmzY570E=; b=Batplg2x+tnB+BJMEY39PGEbtwsKVRP9aEeuYRWL9+IybylRRMNXEXtpvnGU+O875Q VjgUIW9HRw+msCs0MLMcJYeX8atyhsCthAZqIizSOP8FWboeousRuwRA6mXD8yZjRdDK u9Yk47eYOK/HeaHrVik9nsHMk/whAxBdNbZa5q6OEBj82RXgxRlKou+0N3f4WA0zrrJN OMnvNdPoM79eEdqKDYN67bvzYkUgiib8Dx1tuMOtqW9IznNgagItzwBOEFnwUqAdhA/N cLO0ViGo2AIOUB3YpsmexlC3OnEWSOy7bQn0c8CInJDMVNlFJxGv0ESk+rXITYMA+h9y bYgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=GwHMsNh0; 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 cq14si3048566pjb.108.2019.09.04.12.32.26; Wed, 04 Sep 2019 12:32:42 -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=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=GwHMsNh0; 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 S1730677AbfIDTbd (ORCPT + 99 others); Wed, 4 Sep 2019 15:31:33 -0400 Received: from a9-54.smtp-out.amazonses.com ([54.240.9.54]:43374 "EHLO a9-54.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729803AbfIDTbd (ORCPT ); Wed, 4 Sep 2019 15:31:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1567625491; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=PcFJmgXphXAgMTzEqtGAmyZoYWFr5XRnp0kHdbyqz4s=; b=GwHMsNh0TlGnNbVoMm7+dx7dxoBn/weDacqBs00YnSm/6FPhetXhaKq4djrf5Unz rYFSYQZdou6MsJEjMIKrMRLWImApiZkCjzrC6D96ACCVw+/tdIOrAjBncyGYXS5n0Lj /4YdNYH/kmEZmxPCMoUxC3iDBf/wOYGWtdPgu+z4= Date: Wed, 4 Sep 2019 19:31:31 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: 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) In-Reply-To: <20190903205312.GK29434@bombadil.infradead.org> Message-ID: <0100016cfdc2b4a1-355182af-3d27-4ae8-94f3-e3b6e8cc6814-000000@email.amazonses.com> 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> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.09.04-54.240.9.54 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Sep 2019, 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. How do I know? I dont run these tests. > > decade now) I am having a hard time believing the stories of great > > breakage here. These drivers were not tested with debugging on before? > > Never ran with a debug kernel? > > Whatever is being done is clearly not enough to trigger the bug. So how > about it? Create an option to slab/slub to always return misaligned > memory. It already exists Add "slub_debug" on the kernel command line.