Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp248762ybx; Tue, 29 Oct 2019 17:49:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA2VbVJ6WTYIlGnRk2h0a9BSEzpZ01O6/jvPVbs9o4iIuguBZ6YIkIgC26ETrrCX/QS7LZ X-Received: by 2002:a50:91c4:: with SMTP id h4mr29321649eda.36.1572396599694; Tue, 29 Oct 2019 17:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572396599; cv=none; d=google.com; s=arc-20160816; b=a8jpKgTanEKU8ECzKoH+usbhNirEQYrxbDL6kThR/tvkoczmPiPrOoqSKeq7CAf0bk Ur2sd2/ZXfn4Gr9hUB6pYeFo4rQViZbWKBdAdbgV0efsJ/HV8xsTcxesl59NPfhwrtf5 O6OaFAkkoaRYH+CMnSE12PK7e1F6f2Xy7Rq/f5YnoAfZt7wwNMrqIGUN3dkco41BvIuD b7Ekp2RP2QtsN+K5SY+ARA7u+e0CA17SyaHv7oXXydcdBBr6Vdx7UIUoCBdZad3bZ2gF wJD0/989naAOqtEaOpFtODGcz3beTRYK22v6DkVlLHsvZdfpX4ItBQLPVEK5BhlqtEwZ GqWQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HOtUKK51HFuElqeLalQxbaIbYgCdhuf/6YcuUR+YcXA=; b=HyZgj9bFLGmEggLqp5/cVUzDME50f1AajkpOqZKTO0x282SXISkAtQPApRzjWugoDn xu8qs55v2dAaXuxgz4WPU1kP+MfniUN6gdfQ+tg2mIvr0mStFz5HwiM5ja8K0b2O3nm5 ZydAIzaJ9rGwg+QkKycAzRnaX+fNHvGVlmHG63/un7JY4JjgUxaYhm+umE6qDuprYhiF vc3Z81cXIED5OigSFn10G0DE0X0n3SA6Y87X3KVc7CeAhCumkBxcB/BmgR1nM0dGti9d 5bNoO0OcuKfN5hC79Qth/4XLD4fOZ48rmB8PFI+lLppF0XUZhVLnMd4LfYIGi8Lh+VCV M2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DqNmB7cm; 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 nj6si192128ejb.400.2019.10.29.17.49.24; Tue, 29 Oct 2019 17:49:59 -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=pass header.i=@kernel.org header.s=default header.b=DqNmB7cm; 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 S1726187AbfJ3ArZ (ORCPT + 99 others); Tue, 29 Oct 2019 20:47:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:50748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfJ3ArY (ORCPT ); Tue, 29 Oct 2019 20:47:24 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA2EB2083E; Wed, 30 Oct 2019 00:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572396444; bh=rC4DTyV2zuA+J7bw7dlMjJDABthKcuPGgzmZ5hyLjuk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DqNmB7cmPEMslfCggeao0xz1kdv2tQhIkyD7Hc8ovAHyXPu3xJlmo9hCCB4yuZF2C Yqf39GHojD759SooL74JvoLuYT7M8J0q4zOVJ8XoFBP4Q/DrCA+/i6JM6+iJH4KCx8 s/OLz4DGT94C0Dhpc+xlz1YOg3OoodQ3lsuWTBl0= Date: Tue, 29 Oct 2019 17:47:23 -0700 From: Andrew Morton To: Shakeel Butt Cc: Greg Thelen , Roman Gushchin , Johannes Weiner , Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+13f93c99c06988391efe@syzkaller.appspotmail.com Subject: Re: [PATCH] mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node() Message-Id: <20191029174723.ceb916ec850e7c88ed00e091@linux-foundation.org> In-Reply-To: <20191029234753.224143-1-shakeelb@google.com> References: <20191029234753.224143-1-shakeelb@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019 16:47:53 -0700 Shakeel Butt wrote: > Since commit 1ba6fc9af35b ("mm: vmscan: do not share cgroup iteration > between reclaimers"), the memcg reclaim does not bail out earlier based > on sc->nr_reclaimed and will traverse all the nodes. All the reclaimable > pages of the memcg on all the nodes will be scanned relative to the > reclaim priority. So, there is no need to maintain state regarding which > node to start the memcg reclaim from. Also KCSAN complains data races in > the code maintaining the state. > > This patch effectively reverts the commit 889976dbcb12 ("memcg: reclaim > memory from nodes in round-robin order") and the commit 453a9bf347f1 > ("memcg: fix numa scan information update to be triggered by memory > event"). > > Signed-off-by: Shakeel Butt > Reported-by: The sysbot report (http://lkml.kernel.org/r/00000000000055aba7058af4d378@google.com) was for a null pointer deref. So won't we be needing a Fixes: and cc:stable?