Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4394143ybi; Mon, 3 Jun 2019 10:07:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC49ZAiKYBgT0oV89UQfOy77+we+gUXWqEtVPpl2KRnK4f4rdnShGt3jJ/wOcrlyCw+wCZ X-Received: by 2002:a17:90a:a593:: with SMTP id b19mr31163485pjq.31.1559581647779; Mon, 03 Jun 2019 10:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559581647; cv=none; d=google.com; s=arc-20160816; b=IG7os3vZjzpiqkNup7suQ+g2NiENoMQmSAflVE/LvixtdRlEntPxkYzT10QF7fgMmr mWYUDCKiCitMBN/daOGII5Oqa9ztE8+MD0gTcw9XjZX5hWqiY3ONkEg+NLwuotClxd5A fHhKBCifjZqJ+uyERdnvGfavNrw31xzhgeJE5Foh1hm5L7d9cI/lbreso2L0MPSrV+5H aJzkOm9zXohhT28Hirs/5S1yvIgVyJcdBi4NZMls7dBxW+0/mIx997u0BVkK4CahRSOv LxKkmGHYmR2YdZatBqbY4J7e/QEbbTxIpR5hEJ7LtfVODsQUKae+pXrAZOLSQ+z+27ma KbHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=hPsNQnidYq+BQl/NNJgUFJGoiM8pu0dcJ/loGylQo0Y=; b=ezB1evJwKm9MniHW/jo3IDGFb1IyFUhfr1DjDvtJkDDDTwvvJoRjKN7Yq5VF6gSPbE ig0cKFZzFz2IfAKm0iD731mYNT5XMCFmMgyEAGMVFNSkST9sKVNM5TmnNeqJNSsxChWE eB/ZQtevE+nuunKCzOXQbj+k8e8hv9teLl9gggmSfvKB6OlSPpoiFRdIYPw+m3DPvike U2GAmjslPyMEDCmZ1LPlK9K/q95VGynIvqMv6r5smC2iPAsj5yBQcFRe3xo0UXwYKCY2 pT2O879wJX4/F7njGYmGFOS5y2fGmRMrMQBSoxJ0sd+HG/qzTzMYo+7l+iyZ+Tj3dzbo kT2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=tzn4pUMi; 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 az8si19163874plb.219.2019.06.03.10.07.11; Mon, 03 Jun 2019 10:07:27 -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=@canb.auug.org.au header.s=201702 header.b=tzn4pUMi; 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 S1729071AbfFCOkH (ORCPT + 99 others); Mon, 3 Jun 2019 10:40:07 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:37235 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727650AbfFCOkH (ORCPT ); Mon, 3 Jun 2019 10:40:07 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45Hd4f2zbfz9s1c; Tue, 4 Jun 2019 00:40:02 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1559572803; bh=FmOgiY6lTWDTCTs9StTg9VBetPqLMyHfqz6jDfrLEw4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tzn4pUMiSu0BF5kUDplr3AltOVKC3qEPEVi2vSFc0pduscleqgcb4mQ4knMeVZlQ0 +AI7Tw85ErOshOMcx5omQ2KQEF60D0UUSz9WusycR48ts+ptuMuKFl2BZwhwd8mkv2 PTQ611rzC32q9O40FUmpPaXdPUqHya2oQrM+p1/wx0RebbbFd8sQobSwAZUwmXAnpF ZGvdvEeclib+ja0S5JzavMHBg+gKnMr922Wo3hiQNmLRS3Ie/PtG94WrT1BP6Pnsc/ JOdL61En/qVH8F7a6x6l9LDibcVMoHu+p4EDM3ksvoE+QnhrrnLae73PwCNC/iXqC1 BbiVcLGaabBjg== Date: Tue, 4 Jun 2019 00:40:00 +1000 From: Stephen Rothwell To: Krzysztof Kozlowski Cc: Uladzislau Rezki , Andrew Morton , Michal Hocko , linux-mm@kvack.org, Marek Szyprowski , "linux-samsung-soc@vger.kernel.org" , linux-kernel@vger.kernel.org, Hillf Danton , Thomas Gleixner , Tejun Heo , Andrei Vagin Subject: Re: [BUG BISECT] bug mm/vmalloc.c:470 (mm/vmalloc.c: get rid of one single unlink_va() when merge) Message-ID: <20190604004000.0d6356a9@canb.auug.org.au> In-Reply-To: <20190604003153.76f33dd2@canb.auug.org.au> References: <20190603135939.e2mb7vkxp64qairr@pc636> <20190604003153.76f33dd2@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Hhpt4L1s=8zO1hfZdUUFFal"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Hhpt4L1s=8zO1hfZdUUFFal Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Tue, 4 Jun 2019 00:31:53 +1000 Stephen Rothwell w= rote: > > Hi Krzysztof, >=20 > On Mon, 3 Jun 2019 16:10:40 +0200 Krzysztof Kozlowski w= rote: > > > > Indeed it looks like effect of merge conflict resolution or applying. > > When I look at MMOTS, it is the same as yours: > > http://git.cmpxchg.org/cgit.cgi/linux-mmots.git/commit/?id=3Db77b8cce67= f246109f9d87417a32cd38f0398f2f > >=20 > > However in linux-next it is different. > >=20 > > Stephen, any thoughts? =20 >=20 > Have you had a look at today's linux-next? It looks correct in > there. Andrew updated his patch series over the weekend. Actually, this is the patch from mmotm (note 'm'): From: "Uladzislau Rezki (Sony)" Subject: mm/vmalloc.c: get rid of one single unlink_va() when merge It does not make sense to try to "unlink" the node that is definitely not linked with a list nor tree. On the first merge step VA just points to the previously disconnected busy area. On the second step, check if the node has been merged and do "unlink" if so, because now it points to an object that must be linked. Link: http://lkml.kernel.org/r/20190527151843.27416-4-urezki@gmail.com Signed-off-by: Uladzislau Rezki (Sony) Acked-by: Hillf Danton Cc: Ingo Molnar Cc: Joel Fernandes Cc: Matthew Wilcox Cc: Michal Hocko Cc: Oleksiy Avramchenko Cc: Roman Gushchin Cc: Steven Rostedt Cc: Tejun Heo Cc: Thomas Garnier Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- mm/vmalloc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- a/mm/vmalloc.c~mm-vmap-get-rid-of-one-single-unlink_va-when-merge +++ a/mm/vmalloc.c @@ -719,8 +719,8 @@ merge_or_add_vmap_area(struct vmap_area /* Check and update the tree if needed. */ augment_tree_propagate_from(sibling); =20 - /* Remove this VA, it has been merged. */ - unlink_va(va, root); + if (merged) + unlink_va(va, root); =20 /* Free vmap_area object. */ kmem_cache_free(vmap_area_cachep, va); @@ -746,9 +746,6 @@ merge_or_add_vmap_area(struct vmap_area /* Check and update the tree if needed. */ augment_tree_propagate_from(sibling); =20 - /* Remove this VA, it has been merged. */ - unlink_va(va, root); - /* Free vmap_area object. */ kmem_cache_free(vmap_area_cachep, va); =20 _ Do I need to replace that for tomorrow? --=20 Cheers, Stephen Rothwell --Sig_/Hhpt4L1s=8zO1hfZdUUFFal Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlz1MUAACgkQAVBC80lX 0GyODwgAhFRY7MDp6PN5rHGvLRcgcl0R9opYG6WWuR5pAkl9A7RGR/6BDDLm0ZVu YvumuExfm9Z4XFQkdAqX3yPw+Zt7Y1fLTyY7G8obyw4D+L5/DbktmCKqWMHMO4OZ iVeW4LyAGfY+t/XFu2By/hPZuIUXnjL+zWP5hW3q+bI0Kzy028LnAEcISuuMxSY4 6ePXcA4eOZZgwAn60poxjWOIgpiu13CTjEsK9/FH/kDbF+bghqvKyI7q09DcBKkm BSTTHiXPPXCxAjFve53BBQc418H2ZZ+j0uTWZBfsjRWpOETHafQYnZAXwVl7GHaF L7E3xO/wVQbdCMyaKMbdh3Io4lmHZw== =/lGE -----END PGP SIGNATURE----- --Sig_/Hhpt4L1s=8zO1hfZdUUFFal--