Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp987400imm; Fri, 3 Aug 2018 15:35:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcVXMWur+MQVDpnA8iMHzMGLPfnPiK5rctHRN73GWEy4dhsC09noefPZW89zvn6TCLHiuWF X-Received: by 2002:a63:b605:: with SMTP id j5-v6mr5546402pgf.437.1533335722963; Fri, 03 Aug 2018 15:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533335722; cv=none; d=google.com; s=arc-20160816; b=hhIMa3nPabV/ndFJ5ZiXrZJV9cf/S1+alAE9/ULrsaabiZji5hgRQ67kdEdooGQ9V8 G7SAyxCwHj9v2ziHXDCGi2jR5OFd605NLmzfVJnJx4/wg8wWUaw25fh3V4fzRhPkny1P 5iq0MDuwtZUwLaMZd5xym6mDcDXWXcWhYsxnKaM2zeb3oh4kJBXUb6XAZ7y5oE3BbQHk +L6K3euPL35G2qSKRaAztXGM8+KyARVIRWSnCBdpKjzfZFDu0rfgMw0ciX7crAyCO1/w dWrfAcGM39ogOh1KrzKr6TY4gB4N+JKT2rWb592zQQDbKhhVKOGprttvS78H3rvBzgJm TZ/A== 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:dkim-signature:arc-authentication-results; bh=3g8LMtp7L2orVKXiybY3tn8pSapKfU/I1pTsITWrQSc=; b=fw7zLp3qpZgSRu4MZ0GreFOiDNmaCjK3rRD1VFRka4mIst0CQbUtIw00EGLr93c6B+ +MHp0ISH07Xq+Q1tbOdAjDuuL57+sotr1V/JWnvRAdhit1sxU84a3ZLh5JUBYTGxwgf7 VzUjMcDeluiIB+0y8sgNAq/+aZ1xZJZAUZzRYsxc9DOCQ2n6y1xvvLQQQCJC3Z4KDk6T d8z1D3Hik3uInk8aNRzDbLq9wBTUxyvdZKBvtnK5QEcBU1HqTQtcV23agS8WBRwl2b2R C38ofgjrQ3cYnuT7EEOgu98xEGkAOb5uoIiXTM1qUOV3C67/IqnA/RNY0tm4qtXRDIqW MbbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=L24yqu5C; 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 p13-v6si6151745pgi.317.2018.08.03.15.35.02; Fri, 03 Aug 2018 15:35:22 -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=@infradead.org header.s=bombadil.20170209 header.b=L24yqu5C; 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 S1731986AbeHDAcW (ORCPT + 99 others); Fri, 3 Aug 2018 20:32:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33030 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731682AbeHDAcW (ORCPT ); Fri, 3 Aug 2018 20:32:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3g8LMtp7L2orVKXiybY3tn8pSapKfU/I1pTsITWrQSc=; b=L24yqu5CQkAAiWEYuIZ+W88Md O2FWVq5qTdQUT9IX6FvfVe4Cvzo75+IpNpEPRZ5RvSz/xzt1EH/oLCkqTAYWJvCVbobYHoz4zW+Cz qlzyvJYMSIA5Qf/6QnCeb4z3kRqZc43gIkFYejR5IxLF7GAY7AcMlYkAdFfBPqSlPDBJoDVoBdqxy zi+de08Nc/fLeCb34qpWMrmRkL1B1j1oTawi2XZLHfz1E5LiS433XuvIBTEgJpoM7GHkq0Aoupovy 8lVv20/kkpXKA2q54J7aiqF4Gvbt6tGIT4LCleVkpFrDZBO65Dqf76i2Dme5QtXKbGbQhma6w7ieW 41fgyI/xg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1flidx-0007aA-D7; Fri, 03 Aug 2018 22:33:57 +0000 Date: Fri, 3 Aug 2018 15:33:57 -0700 From: Matthew Wilcox To: Guenter Roeck Cc: Christopher Lameter , linux-mm@kvack.org, Matthew Wilcox , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org, Jan Kara , Jeff Layton , Mel Gorman , linux-sh@vger.kernel.org Subject: Re: [PATCH v3 2/2] slab: __GFP_ZERO is incompatible with a constructor Message-ID: <20180803223357.GA23284@bombadil.infradead.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180803212257.GA5922@roeck-us.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 03, 2018 at 02:22:57PM -0700, Guenter Roeck wrote: > Hi, > > 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 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.