Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1392639imm; Sat, 4 Aug 2018 02:30:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfQgeo+11qUjTruIyPBJfdDs7sepPkouNzbDbAo4LBpJ1kfGZTUSomK39BOcnk0SN34I5sr X-Received: by 2002:a62:4cd3:: with SMTP id e80-v6mr8223694pfj.234.1533375041523; Sat, 04 Aug 2018 02:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533375041; cv=none; d=google.com; s=arc-20160816; b=PxBdG338SuNsfHw5Hy5RJMqGLVS41sQ4IMfgMqpx7GBg8jH+8g3TTSXoCyCTS4KDDI 14+wMBO3LRon21oHDXWm/A+4WTMT71E5pzy2e05bDQ0eTm4RQZ022HLh8QjUPUErv2YR UM+yi2E9GWQeIlJVL3G8d2mYo/+oI0LKhfPpIy4DVECnjuwOsJWdTVyK4NtSf/eFB0cK ORjBiOuoWv5ptCh02OZjUSgYmqMSpnHoV66MAe1uF2ox4auJWrgrvSswaoLriPXu6NZ7 D0Ik76/4sKhOJ/e80zaTbKGytdAo/gIswSlIGT31U9EDGN3qMkg/NDOTtWjIzTFBWo8b mXaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=1W09M69y5Ysz7nMJ7EGGzp+dDUt3+tBBhUYBcJDiksY=; b=GnbU66uKrET541I+9kk3Gpm/sVAQ7HHd/fmatRnT9GhbpjVu00RhIUEdFbVSHDBZRj eVjrgvR6FatnGkXKjkgpGEbh0q1lVf5ftKUDrCtMMs8ZBZYJ4gtgiORJ+Wp8S1cJPHat IR53o/vCHgbc5IFAz3HpJQn8LTuBBm2U9r4s6XpWqRQDTN3z0Zo0b9zSjc+IvJ9jXS8+ CUcfy2zII/9AfcYb/OCAMXUhG64TgtBTmkNuQzho7GOOBSnHDhtEMy+dCzUGrpmoUJkl 6ZtaHoaBaXrG2sSQX/ALCLWLvE72TTGLMhCg1sv4+GHX1XGM6g4zEf9Jj5DdQGoIn8RH yncg== 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 z68-v6si1972086pfa.161.2018.08.04.02.30.27; Sat, 04 Aug 2018 02:30:41 -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 S1728032AbeHDL3K (ORCPT + 99 others); Sat, 4 Aug 2018 07:29:10 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:36530 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeHDL3K (ORCPT ); Sat, 4 Aug 2018 07:29:10 -0400 Received: by mail-ua0-f195.google.com with SMTP id c12-v6so7058952uan.3; Sat, 04 Aug 2018 02:29:05 -0700 (PDT) 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=1W09M69y5Ysz7nMJ7EGGzp+dDUt3+tBBhUYBcJDiksY=; b=TOSrX5o4iR0JmK+F6F2x8/RvGrXLrsqWr/7Z6DChnBYxmG6nuVMnSEGpt/gRREAggu YDRIqBfMfc+VQqOXy/ObXIIhMU/o10K9ZhoVKmxd6BPsZnLkDvAl4s5BnQm/4snXpl/N jPUgBcMtwA4xuucF3HOGobCOG5CctNRawqABoE6Wb7inQZzbohwkGrACaeDW0xeQBRYR 1XnphMNmJDgvt3n1I4KHpxMC2C/MWgulFCbyb3cDXI/9YnfIhq1Kn6jHj8xX2q09jJq8 M6zoIjT220328L+g3GR6GvO2gvIMZiVhVhXojptXwDaL8OKjgJmGL0H+h+W11GYnlTql 9Ftw== X-Gm-Message-State: AOUpUlF3EF27N2/NNfHIezIAC0j/8fIafCnNd/iva03ngYEuUH64viZk og3Uq2hSXUqtNeZ7TCYTwbURy/MF3zMFbVsDB1k= X-Received: by 2002:ab0:80e:: with SMTP id a14-v6mr5457002uaf.114.1533374944582; Sat, 04 Aug 2018 02:29:04 -0700 (PDT) MIME-Version: 1.0 References: <20180411060320.14458-1-willy@infradead.org> <20180411060320.14458-3-willy@infradead.org> <20180411192448.GD22494@bombadil.infradead.org> <20180411235652.GA28279@bombadil.infradead.org> <20180412142718.GA20398@bombadil.infradead.org> <20180412191322.GA21205@bombadil.infradead.org> <20180803212257.GA5922@roeck-us.net> <20180803223357.GA23284@bombadil.infradead.org> In-Reply-To: <20180803223357.GA23284@bombadil.infradead.org> From: Geert Uytterhoeven Date: Sat, 4 Aug 2018 11:28:52 +0200 Message-ID: Subject: Re: [PATCH v3 2/2] slab: __GFP_ZERO is incompatible with a constructor To: Matthew Wilcox Cc: Guenter Roeck , Christoph Lameter , Linux MM , Matthew Wilcox , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Linux Kernel Mailing List , Jan Kara , jlayton@redhat.com, Mel Gorman , Linux-sh list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 4, 2018 at 12:34 AM Matthew Wilcox wrote: > On Fri, Aug 03, 2018 at 02:22:57PM -0700, Guenter Roeck wrote: > > On Thu, Apr 12, 2018 at 12:13:22PM -0700, Matthew Wilcox wrote: > > > From: Matthew Wilcox > > > __GFP_ZERO requests that the object be initialised to all-zeroes, > > > while the purpose of a constructor is to initialise an object to a > > > particular pattern. We cannot do both. Add a warning to catch any > > > users who mistakenly pass a __GFP_ZERO flag when allocating a slab with > > > a constructor. > > > > > > Fixes: d07dbea46405 ("Slab allocators: support __GFP_ZERO in all allocators") > > > Signed-off-by: Matthew Wilcox > > > Acked-by: Johannes Weiner > > > Acked-by: Vlastimil Babka > > > Acked-by: Michal Hocko > > > > Seen with v4.18-rc7-139-gef46808 and v4.18-rc7-178-g0b5b1f9a78b5 when > > booting sh4 images in qemu: > > Thanks! It's under discussion here: > > https://marc.info/?t=153301426900002&r=1&w=2 and https://www.spinics.net/lists/linux-sh/msg53298.html > also reported here with a bogus backtrace: > > https://marc.info/?l=linux-sh&m=153305755505935&w=2 > > Short version: It's a bug that's been present since 2009 and nobody > noticed until now. And nobody's quite sure what the effect of this > bug is. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds