Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1607962imm; Sat, 4 Aug 2018 07:02:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdIR0+Irxy0aekbWUSik5Y1mGq5rbRFECHV0sZTg67MRjrtz4MZYkqOVglWPSEF5yW6iDj6 X-Received: by 2002:a17:902:e005:: with SMTP id ca5-v6mr7443272plb.224.1533391349971; Sat, 04 Aug 2018 07:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533391349; cv=none; d=google.com; s=arc-20160816; b=GCl9xHMxcnZgVzHyBPwNlzvztoclS81ra2TD6SixDj6jZVPIjY1Li5SUcyazh07LZf zSU9ZZHq7ejp4+D5axOb3astJEdlgoeWTT+Jlsxnu3HaGRFi3t7f3JWShn/fdaWw6Ve/ 2UpEjPG+7ZRnGSU3NeMRh1SU/Va4Na1JmTb+lOyzF4e2UNXGsCltnqPio6jK8dGqFRHv dN05MiX0Pl8im6usH43F2n+1kvPUCcRZ5VyTSHLUwW2ETHeXXk1jZD5c3tbjcS1oK5+p RV3MfQZOzV1MAIitAOgLV7pBhThgeqNE556d08GeBZdmoNn8GQeDhuSdgMysy0L5CUOP HOlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=If84yWVo0jUwk8qOhUiq/TGCaAKJpnXEvNFizfvv/54=; b=sy31NRj1D++m70MLGkdVeaz6usu//jvSZbY5Vape6XFimh6enr0NiBzNAvSA6T9NiO ozvKbrkva9xP65y9bU9PgFLtz27KfTgAPEShwoEXb+gtq3xOvi6aRnkyaMHDvnhZD6vL hL0OG7kH1f7i9g5Q2pwv7b9sglZeSZTg8I5F0UhOVz8QSiTUDOdL4aFdAaT4C/c8T/FO EZbWacPHjtxRZdOGY48x90vwR18sGBgi+18jAdxjSbSp5P+msFEi5H1RyXf/nyNs2DmC 1Krd3Sh6xpvybnA/j6OR/pocv9QVVjC2jvCQc2QuuajN9m8igsKkXcU3bnb/E6L9YOKm XUDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="IkXZ5/pa"; 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 d7-v6si5772377pll.162.2018.08.04.07.02.03; Sat, 04 Aug 2018 07:02:29 -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=fail header.i=@gmail.com header.s=20161025 header.b="IkXZ5/pa"; 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 S1728067AbeHDQB2 (ORCPT + 99 others); Sat, 4 Aug 2018 12:01:28 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36285 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726696AbeHDQB1 (ORCPT ); Sat, 4 Aug 2018 12:01:27 -0400 Received: by mail-pf1-f195.google.com with SMTP id b11-v6so4697990pfo.3; Sat, 04 Aug 2018 07:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=If84yWVo0jUwk8qOhUiq/TGCaAKJpnXEvNFizfvv/54=; b=IkXZ5/paOHYgNUxDCtsRhA2DGzyf0JqRhChVKKbn5MMGZzun8/nq4WOhnIIjP+2w7y 1/IWoAZDVr4S5OG2TEn//95gqo2IkFcqAjB/gYfx8efnIuHfC11y+2Qxb+bWbfHfUSfa lbn8bUtuRRxktX8P1+ttPmslCY/a2CVge42djvPS93tFW3w4RKN/doJllUr6ACcStOAV +gwm0+CejyLyO6iG7YIAhjXjX+UzYyLiUee3b4HtCIAweLh7/4b2JG9nfEgnTI0CBuGr 0qtXHT9kRxNW+hXj48Go/nNJP4DcT8zJuZ+hbrIvdlYQxMQHpAlyeV2z3dC4H18Zmzvf u5tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=If84yWVo0jUwk8qOhUiq/TGCaAKJpnXEvNFizfvv/54=; b=jq2tWHuuv5N8tawl1wQzWCDlEQpNGdQpxO7VyIdNbqUBmubHFjNrOYF7btDyP+GmNe vPmnC39MYPsoHPrrM3sV4vYVnQNOINZH/F8PfoX8Yu7ZAuTkx7UibEgmsMxY5w+skZ1S Og4rGJWlXhac0RW/ATH1pAEZLWMWvTaN9udlw4vowjQpht4sI2MtuOxlzFG8mddygdc5 30cZEgPhMnO9E4SCu9kqKHf9cm+CPZtmKrDNmAdMCy51uge2Jolz9PRp85rm5tn9CGCe 45MoAxJc3Cj9chx1Aqn/s8zbA6Xt5+w85T8bC/ezIFexY1Pi0UgYUoMbmQkzR7yMAEkM HhwA== X-Gm-Message-State: AOUpUlGR4ZOm/ZibLz8/btMpNx/xzFbrD50psprfGSvP8jgX3H8u25Be ECCb6sSgNNUT11OztsRSYvqpTnfR X-Received: by 2002:a63:f414:: with SMTP id g20-v6mr7819321pgi.407.1533391238846; Sat, 04 Aug 2018 07:00:38 -0700 (PDT) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id a11-v6sm13907850pfl.66.2018.08.04.07.00.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Aug 2018 07:00:37 -0700 (PDT) Subject: Re: [PATCH v3 2/2] slab: __GFP_ZERO is incompatible with a constructor To: Geert Uytterhoeven , Matthew Wilcox Cc: 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 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> From: Guenter Roeck Message-ID: Date: Sat, 4 Aug 2018 07:00:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/04/2018 02:28 AM, Geert Uytterhoeven wrote: > 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. Though now it is making a lot of noise :-). I just found two more 0-day bugs, so maybe improved testing and log messages such as the one encountered here do help a bit. Guenter