Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3837738yba; Tue, 9 Apr 2019 06:00:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCoqr3tmjQK81GOiPYjXDsCG+fsl1pVgfzcxVwrxjzV9SfVNJT25K5hMShngerexrtuJNF X-Received: by 2002:a63:fc43:: with SMTP id r3mr34144948pgk.44.1554814854557; Tue, 09 Apr 2019 06:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554814854; cv=none; d=google.com; s=arc-20160816; b=K3voLFrdmryqahK17t50HE8UTTTKlf8LYsGdSRIMri3eH7fDsas2xm8tecIMOheLGD xtOEXRwoJ0T9w6RvbiqcSzuPPYMgWq94kqjZtr/hKFII+AmVcGIEcXkC3Yw5o2ae5q89 SdoSKnRjUTq6yp1GIHHunNhg0e1nO07WrYSGZZGAQcmiZGpaanDhXbi3/LOzVXduxRUl 63DI88UW8uPb3W1tqhAuduju1/pf3L6nLcnl9xblIUPfhrnQLCSFXwJEaTvuVkvOlwuq ERNvXBTGRRlvuwsoj6wq1aWjwyBzTimNFZBu7jpetnT+wRZnMBd3jp/FBILDtLewWcRk btwQ== 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; bh=uIvO0Bh+ze5opiMLu1WYLITUUhyx38LPIW5JC/Xq+uI=; b=Ey/Q5RolvZDI/X9oPbHfT3SDnj2C+4u/vsDQqhYqmcvllS+IDqhwT/9YBsNuu5TAh1 Svxh0ipTAaE/t+ksmCKYGbLQC8Y/zphbZMM6JE96J17RELqmNnCHlpua6cBT6amtvScw qppY63TX9EdS5lHbErkdV8cyBusXxm4OqcWtxO2tO9DWZ/BDD+sz6SJbB2L2+uFRgZOC 12p+YAqW0jh2XhS3pr7aSrFpXmvQnfgxt8hxzPyR1bSAYglShHUHcWnJM4+M3ASubSXL 5nIFhWmeBHKefx3PAFszh5RDjJElVYZl+Fjx2bV3Yu2LupdesjW43EU2YTJxJmNEP4pl fK4w== 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 a61si30373622pla.178.2019.04.09.06.00.39; Tue, 09 Apr 2019 06:00:54 -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 S1727285AbfDIM74 (ORCPT + 99 others); Tue, 9 Apr 2019 08:59:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:51998 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726535AbfDIM74 (ORCPT ); Tue, 9 Apr 2019 08:59:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 49F92AC31; Tue, 9 Apr 2019 12:59:54 +0000 (UTC) Subject: Re: [PATCH v5 2/7] slob: Respect list_head abstraction layer To: "Tobin C. Harding" , Roman Gushchin Cc: "Tobin C. Harding" , Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Matthew Wilcox , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" References: <20190402230545.2929-1-tobin@kernel.org> <20190402230545.2929-3-tobin@kernel.org> <20190403180026.GC6778@tower.DHCP.thefacebook.com> <20190403211354.GC23288@eros.localdomain> From: Vlastimil Babka Message-ID: <63e395fc-41c5-00bf-0767-a313554f7b23@suse.cz> Date: Tue, 9 Apr 2019 14:59:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190403211354.GC23288@eros.localdomain> Content-Type: text/plain; charset=utf-8 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 4/3/19 11:13 PM, Tobin C. Harding wrote: > According to 0day test robot this is triggering an error from > CHECK_DATA_CORRUPTION when the kernel is built with CONFIG_DEBUG_LIST. FWIW, that report [1] was for commit 15c8410c67adef from next-20190401. I've checked and it's still the v4 version, although the report came after you submitted v5 (it wasn't testing the patches from mailing list, but mmotm). I don't see any report for the v5 version so I'd expect it to be indeed fixed by the new approach that adds boolean return parameter to slob_page_alloc(). Vlastimil [1] https://lore.kernel.org/linux-mm/5ca413c6.9TM84kwWw8lLhnmK%25lkp@intel.com/T/#u > I think this is because list_rotate_to_front() puts the list into an > invalid state before it calls __list_add(). The thing that has me > stumped is why this was not happening before this patch series was > applied? ATM I'm not able to get my test module to trigger this but I'm > going to try a bit harder today. If I'm right one solution is to modify > list_rotate_to_front() to _not_ call __list_add() but do it manually, > this solution doesn't sit well with me though. > > So, summing up, I think the patch is correct in that it does the correct > thing but I think the debugging code doesn't like it because we are > violating typical usage - so the patch is wrong :) > > thanks, > Tobin. >