Received: by 10.192.165.156 with SMTP id m28csp335482imm; Tue, 10 Apr 2018 23:07:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx48os4DWuTLY9PGZM74zAjQ9AtehCVXa35A5yWSGojobX/6DwMB4kkNH2n1QZ9QSjs6CcOzg X-Received: by 2002:a17:902:748c:: with SMTP id h12-v6mr3663174pll.264.1523426825791; Tue, 10 Apr 2018 23:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523426825; cv=none; d=google.com; s=arc-20160816; b=QAtsamV5ULeEj+Ha/Znf8sOkqMjP+EHKule3UzyT52qGaiZlUT+WWX6fzFukGyyyK9 aZ8OHjR0aG+8neK/uilznjtojfq3xGJq9YiCXpMlxLzpnFHU6nXdz3ye610xuw6QkDIp vl3JuG2zrkTb0TxLQDGnKy/fi/OpsUSVb76Y4Uu2UvMfhOUgjo4VZtuKN4SQnUPBz15W SkcnpF9QRyz3Pfr6R99qNwlrJeIH7R7lkeCH2FWLMlFl9UZu4L4/A4KoTard8IH3WnNU ZEmNKTbVLGgZxJ3/DpEZd/gSGMUezogTfgfGy2eZTdeT7eSmtNTzAgI27RlEnrYnUR3K tOGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=v8L5uq4R8IuC+Dmo4SQOI9d475f/QnYH4JyM3cGBRys=; b=N54c47dNBkLEVcKqlemN3ZgPDph212E+dVlcwntWWTW79qQKIO0P1s3ObyQr5aQ0HZ gQvb9+igIcICIYFGfLxR0v5aBJ5wgnqs+p82TFvfs/2o6DAolvVljVlZZh+RYNCp2ZyX hZ0osdXqG+I4+4bWizPr8v32W6+WFwp9UkKJRf7qbTSTN+0uzjwUQaQLhNVJt9lFE4lI Km2c776tir9ftg+SXm54fZUw+aPrRrXph/r9vngvglwVo1QVrZG2I6zIFxLZUZTpmUAL 6mox1r6aBLgzZMOUSO5H89MzW01GRFUpyB1LoQ7Nr3vOp8KX+6hxrIpZtyq9D9W4WeJq 4q7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oVVTZ1Ad; 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 7-v6si434409ple.604.2018.04.10.23.06.29; Tue, 10 Apr 2018 23:07:05 -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=oVVTZ1Ad; 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 S1752003AbeDKGDb (ORCPT + 99 others); Wed, 11 Apr 2018 02:03:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47302 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751734AbeDKGD3 (ORCPT ); Wed, 11 Apr 2018 02:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=v8L5uq4R8IuC+Dmo4SQOI9d475f/QnYH4JyM3cGBRys=; b=oVVTZ1AdN4r/spcj4PmumVND2 giOl26yYT0hPR3obWgHXUydoKzAA++FxKpGtg2jEaNEkoLUhRJY7OuKRiqhWcm7chyDfemjjcEa1k ItDaTVlUsJRddSqT7Xg+M/h+nj6UrK8XaZ/TYp/JdkYrlcwRLUpi59jYHRmiaWCBw61iFxiQ2Webd 6+ZEAjKU9RsDLqtDXkDYz6Mc1s8CIL+j+7OQtIIduP8o7huklKdwKCM4igtWGV+gNYs99GQmN/XHJ IWnCjTLDnIAnHVPvWmai6Ft6REmBXEURsOENbEI39fCtPAL1p0O2qFB3WxizOb20a6lm17ykyKfeQ sf5F13QHA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f68qp-0003m5-Bm; Wed, 11 Apr 2018 06:03:23 +0000 From: Matthew Wilcox To: linux-mm@kvack.org Cc: Matthew Wilcox , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org, Jan Kara , Jeff Layton , Mel Gorman Subject: [PATCH v2 0/2] Fix __GFP_ZERO vs constructor Date: Tue, 10 Apr 2018 23:03:18 -0700 Message-Id: <20180411060320.14458-1-willy@infradead.org> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox v1->v2: - Added review/ack tags (thanks!) - Switched the order of the patches - Reworded commit message of the patch which actually fixes the bug - Moved slab debug patches under CONFIG_DEBUG_VM to check _every_ allocation and added checks in the slowpath for the allocations which end up allocating a page. Matthew Wilcox (2): Fix NULL pointer in page_cache_tree_insert slab: __GFP_ZERO is incompatible with a constructor mm/filemap.c | 9 ++++----- mm/slab.c | 7 ++++--- mm/slab.h | 7 +++++++ mm/slob.c | 4 +++- mm/slub.c | 5 +++-- 5 files changed, 21 insertions(+), 11 deletions(-) -- 2.16.3