Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp996457imu; Fri, 11 Jan 2019 12:58:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN4iPJktD++g8nNkcyjscyleXHZyKW2vyYavajWR17SmqtEn5NEHBuYhGIxHrdV6QBBnNnGl X-Received: by 2002:a17:902:33c1:: with SMTP id b59mr15954198plc.220.1547240322158; Fri, 11 Jan 2019 12:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240322; cv=none; d=google.com; s=arc-20160816; b=G3HHj44uWXR5fdXvLSzHpfChy5cA/MJQQ2/9GGdxl+krkU7tNNDwxn3gIdcs9eNsh0 4KBBcexCkKyubkATSYguPNTlTT9ZMAWJgYhvKpPfV5hlOImQ5eRb1SIqVCA+RI8EXZuc kq1LAdjeGlLuSm7TDMOqqELRIs2QtF0VjZ8FXfdc2Lzl+ZZxH4cLkXQRu5dZCSQWZxYs RbjCq/mtioRMA0BFzuaTaWpJ4mRcfi6i3ldHBVwmJTEABDLFL6Dhsm5UZ41JDbv0DVKn EgIgpMHh2G8f6FRz1paJtIDaQ92Fbdt0LbRvq4QW7Cr1Vm4J1zleBwYy1N/V7nTNKhPA +w/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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nmx4asMzroV5sBI0wqplHX3gob/sn7xzkvUWEPDo4YU=; b=KVAK0GpG2qMFgTGAi60mQWYWbH6Y3YKnJlOqWZca7Foy6IXS3L367mpTexl2nGTbiC IYxtn2N43Mav+2QHMQkne+NzRs7EmRze4OnaVlhoJ6ns/i/7Rq3osgq+AzW6NzWwrkl6 NP6oJlmDZWrJZ/f4UacEii+KocaCZl0PQTLPegdQ14vAjfCLoJSQbmOZ92vEYTDc5EB6 NRZjEW4ddmQwNxsXqqcPbmrCsGEb6cIhEvLmamLnPCvVU6/ZHr50J2GTynppHUguzP/D tLOBcYJ18e9Bkww3uQihzRmv2Ntr3etJ5HMi6j3cOxjAAaLGoiCycNppg+nlGAP/mAvx OWIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lTCr9aGG; 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 b1si25709050plc.332.2019.01.11.12.58.27; Fri, 11 Jan 2019 12:58:42 -0800 (PST) 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=lTCr9aGG; 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 S2387874AbfAKSQJ (ORCPT + 99 others); Fri, 11 Jan 2019 13:16:09 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46526 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfAKSQI (ORCPT ); Fri, 11 Jan 2019 13:16:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To: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=Nmx4asMzroV5sBI0wqplHX3gob/sn7xzkvUWEPDo4YU=; b=lTCr9aGG28zQaVC/ak9w+BxbBq Yl6l4kuGG4gV8wGelcfDSp/tx+qs1FzJJdpZ753xYJXbGv1FINzBAx3qH0McDCjGEC4dbeiTAULud 3Ofv2ZNrZFXaVaVAwuLQcdZCvSMX+Edz/X7N2Gi2d5pi8CfYgvYvOR89CBOgUd/aPSqJqCx/H9495 +PCa105LqDzWedVTQCcoXt+KmENBUcHRFeQhK8DShVKMVoy320P1jUvG+hGjabTYThv2LCyG+3l2G +e4mNscbG0l/26QPj+THE81fHfhwrVWhhDoJp9YaO6TGZk5l4cIZLO0ikROozRkAYrH1qu58NRYkp Qksf27cA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gi1Lc-0000qm-Ns; Fri, 11 Jan 2019 18:16:00 +0000 Date: Fri, 11 Jan 2019 10:16:00 -0800 From: Matthew Wilcox To: Qian Cai Cc: akpm@linux-foundation.org, esploit@protonmail.ch, jejb@linux.ibm.com, dgilbert@interlog.com, martin.petersen@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, walken@google.com, David.Woodhouse@intel.com Subject: Re: [PATCH] rbtree: fix the red root Message-ID: <20190111181600.GJ6310@bombadil.infradead.org> References: <20190111165145.23628-1-cai@lca.pw> <20190111173132.GH6310@bombadil.infradead.org> <1547230356.6911.23.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1547230356.6911.23.camel@lca.pw> 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, Jan 11, 2019 at 01:12:36PM -0500, Qian Cai wrote: > On Fri, 2019-01-11 at 09:31 -0800, Matthew Wilcox wrote: > > On Fri, Jan 11, 2019 at 11:51:45AM -0500, Qian Cai wrote: > > > Reported-by: Esme > > > Signed-off-by: Qian Cai > > > > What change introduced this bug???We need a Fixes: line so the stable > > people know how far to backport this fix. > > It looks like, > > Fixes: 6d58452dc06 (rbtree: adjust root color in rb_insert_color() only when > necessary) > > where it no longer always paint the root as black. > > Also, copying this fix for the original author and reviewer. > > https://lore.kernel.org/lkml/20190111165145.23628-1-cai@lca.pw/ Great, thanks! We have a test-suite (lib/rbtree_test.c); could you add a test to it that will reproduce this bug without your patch applied?