Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp33017lqk; Wed, 13 Mar 2024 15:30:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/pBYDdDf5BbmL5S3HA5YqFB8YSbbaY2z1ZlRe1RdApeC5FqOf3H+kgwOF+f6Coqj6klQ417UwvQSSSL7r1zoGAcbrOigvFae1aS6D2A== X-Google-Smtp-Source: AGHT+IGzUFBrChq4b1uXCfZqKiVGg59rwj/mMKa/7X1pKOzLABc0vzZbrg5FZL+a40gmvKTtpO7I X-Received: by 2002:aa7:8881:0:b0:6e6:9f47:c18c with SMTP id z1-20020aa78881000000b006e69f47c18cmr69073pfe.33.1710369036628; Wed, 13 Mar 2024 15:30:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710369036; cv=pass; d=google.com; s=arc-20160816; b=hNooqQBEL82O8Z5ld8Ht65vjGGqQSDMxcL+p8vWsg+DvZVPNRMTYUJvLt7WF1Q16KS esB2a5p3k3V/SPrVAw4SQKg3NQs9IoJrLUcgJ982s9Zjd6T5nrFlGDMREq8lISlIhBWl g5G3hsi+zG4s3K7TvmMVn1Ua5jCTvI7pG6bErfdxGqiXm/AeoHXbjDB8MXwe/0Bfjko6 +ZIDlcWskHWroS/rFfdfdXBO6uIPkNxrPJQTzqcJN+avEHH4fM6CBZqdt5O62yz2peqs /KsVHzR5d8qG6vKHP/ZTpLYVOKarXNhfJ6IEsDfpPPzWRq54RpgN+LIImWv21tgMooVa zOOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6Sc7A23YGrKfvDPxXLh29IDC/guj7D4h0krd4QzL1DA=; fh=rW7Rd7WVbmFdm5Vr0iZt6DSCmYkoGGsvE9lz0vg/8wA=; b=WNux724qXO9P0ijZclPd2YwSb/zY/AEJJ/LhunRKUFrnZDFZuDSy1bJggu4+r86RLJ qxj6RFPq12zCLjtOlvwTYryPzRVzHbILNaU/R9jGbuvULUa3+5rKcVt5DUVbkygHVTRG mmlLzc0Pl/cmSDX+4u0V6geCZWK8pd3QquYPR+MNQURjs3PspbrTGIh4e343IRqEAWIB gDDwQ4mCQvtTwHMHuC+QkSF48szJGg30Xomhi3l4Xb+Wx0ZPfCSjbzbcbPgtDePGPvf8 IKYMV7kqIg6aBALy5P/MYRphAIJa99jQBn/p6S0CrwvXT82FscyeGcCNOJ88DrjjvbqO eE4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=JxAR7SLr; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-102596-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i3-20020a632203000000b005dc82fb4b3bsi241849pgi.742.2024.03.13.15.30.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 15:30:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102596-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=JxAR7SLr; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-102596-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4A935284293 for ; Wed, 13 Mar 2024 22:30:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0E285D724; Wed, 13 Mar 2024 22:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="JxAR7SLr" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD4EC1A38ED; Wed, 13 Mar 2024 22:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710369020; cv=none; b=X+IU4GVnA3JqQOaPlgQgtuhQgbrJrny8OEVJv73VyBmz1oj6zvFhljB0W+4rQGQZLBLrVfjOuj/h/3WXHdY8W6ZjCgE/zm3aopVvf8LqI5j8c8B7986/SsZ79x5y9jx1yrDcQo1g9yp9AXUm88KKIYpcHOqcFVwRIfdaHwhD9lY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710369020; c=relaxed/simple; bh=CCIs2EhXWX9ha6OhlSM03eisveA0v/CDu7Xhq3qO7/Q=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nrs0Sykpl/UI5rO/61OPCJCvS6zlAbzExbWgJQd2/WWq3H4FKCVtWIxMqf+lIc0wAOXi4KeP4ItVy7YnM9+2GQ14/Opx35v3SfPYiJHOUPJRvItb9yJi7n8norjapn+Xn5WhVPQGRDbHLzjituNFzMAtzmxJk6iBRUNP2qt75Fg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=JxAR7SLr; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1710369015; bh=6Sc7A23YGrKfvDPxXLh29IDC/guj7D4h0krd4QzL1DA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JxAR7SLrFiXaB4tuxeUeSsxGfq835w9kPqkN+x4fe4NYU0PXmB5I2oiGhDHzD6N/T Zf6jw4U97alpslDuqE07jxT/RZF02fvzN6tB4Rhnm2WL0+NG19FQVSy9gKvWHyEbdl gwmKKuA7/3SKy5DOji8qSPYqt2N4ANdfFkPH9i5pPsoZzZIsJZw+HpgPhQRZwa8EXI clHWS6xY+ZBaE8yC4ujvTg9gbmtxzsxKffVppxZIVacc75TfBH8DiMi1mX74G+D/xZ +OvMeEMFKcIV4r8hbRYRi58w00nYCEK0ZmgVehWSBhLZTBTkiFTSutUm+ZO4jJahB0 wmDFDJolO4+ww== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tw4vp0MVGz4wck; Thu, 14 Mar 2024 09:30:14 +1100 (AEDT) Date: Thu, 14 Mar 2024 09:30:12 +1100 From: Stephen Rothwell To: Andrew Morton Cc: Networking , David Miller , Jakub Kicinski , Paolo Abeni , Daniel Borkmann , Alexei Starovoitov , Andrii Nakryiko , bpf , Linux Kernel Mailing List , Linux Next Mailing List , "Uladzislau Rezki (Sony)" Subject: Re: linux-next: manual merge of the bpf-next tree with the mm-stable tree Message-ID: <20240314093012.3dba692a@canb.auug.org.au> In-Reply-To: <20240313105117.699dc720@canb.auug.org.au> References: <20240307123619.159f1c4c@canb.auug.org.au> <20240313105117.699dc720@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/X.LwiEanwP1pFLelG86SM1D"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/X.LwiEanwP1pFLelG86SM1D Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Wed, 13 Mar 2024 10:51:17 +1100 Stephen Rothwell = wrote: > > On Thu, 7 Mar 2024 12:36:19 +1100 Stephen Rothwell = wrote: > >=20 > > Today's linux-next merge of the bpf-next tree got a conflict in: > >=20 > > mm/vmalloc.c > >=20 > > between commit: > >=20 > > 8e1d743f2c26 ("mm: vmalloc: support multiple nodes in vmallocinfo") > >=20 > > from the mm-stable tree and commit: > >=20 > > e6f798225a31 ("mm: Introduce VM_SPARSE kind and vm_area_[un]map_pages= ().") > >=20 > > from the bpf-next tree. > >=20 > > I fixed it up (I think - see below) and can carry the fix as necessary. > > This is now fixed as far as linux-next is concerned, but any non trivial > > conflicts should be mentioned to your upstream maintainer when your tree > > is submitted for merging. You may also want to consider cooperating > > with the maintainer of the conflicting tree to minimise any particularly > > complex conflicts. > >=20 > >=20 > > diff --cc mm/vmalloc.c > > index 25a8df497255,e5b8c70950bc..000000000000 > > --- a/mm/vmalloc.c > > +++ b/mm/vmalloc.c > > @@@ -4755,81 -4423,70 +4820,84 @@@ static void show_numa_info(struct se= q_f > > =20 > > static void show_purge_info(struct seq_file *m) > > { > > + struct vmap_node *vn; > > struct vmap_area *va; > > + int i; > > =20 > > - spin_lock(&purge_vmap_area_lock); > > - list_for_each_entry(va, &purge_vmap_area_list, list) { > > - seq_printf(m, "0x%pK-0x%pK %7ld unpurged vm_area\n", > > - (void *)va->va_start, (void *)va->va_end, > > - va->va_end - va->va_start); > > - } > > - spin_unlock(&purge_vmap_area_lock); > > -} > > + for (i =3D 0; i < nr_vmap_nodes; i++) { > > + vn =3D &vmap_nodes[i]; > > =20 > > -static int s_show(struct seq_file *m, void *p) > > -{ > > - struct vmap_area *va; > > - struct vm_struct *v; > > - > > - va =3D list_entry(p, struct vmap_area, list); > > - > > - if (!va->vm) { > > - if (va->flags & VMAP_RAM) > > - seq_printf(m, "0x%pK-0x%pK %7ld vm_map_ram\n", > > + spin_lock(&vn->lazy.lock); > > + list_for_each_entry(va, &vn->lazy.head, list) { > > + seq_printf(m, "0x%pK-0x%pK %7ld unpurged vm_area\n", > > (void *)va->va_start, (void *)va->va_end, > > va->va_end - va->va_start); > > - > > - goto final; > > + } > > + spin_unlock(&vn->lazy.lock); > > } > > +} > > =20 > > - v =3D va->vm; > > +static int vmalloc_info_show(struct seq_file *m, void *p) > > +{ > > + struct vmap_node *vn; > > + struct vmap_area *va; > > + struct vm_struct *v; > > + int i; > > =20 > > - seq_printf(m, "0x%pK-0x%pK %7ld", > > - v->addr, v->addr + v->size, v->size); > > + for (i =3D 0; i < nr_vmap_nodes; i++) { > > + vn =3D &vmap_nodes[i]; > > =20 > > - if (v->caller) > > - seq_printf(m, " %pS", v->caller); > > + spin_lock(&vn->busy.lock); > > + list_for_each_entry(va, &vn->busy.head, list) { > > + if (!va->vm) { > > + if (va->flags & VMAP_RAM) > > + seq_printf(m, "0x%pK-0x%pK %7ld vm_map_ram\n", > > + (void *)va->va_start, (void *)va->va_end, > > + va->va_end - va->va_start); > > =20 > > - if (v->nr_pages) > > - seq_printf(m, " pages=3D%d", v->nr_pages); > > + continue; > > + } > > =20 > > - if (v->phys_addr) > > - seq_printf(m, " phys=3D%pa", &v->phys_addr); > > + v =3D va->vm; > > =20 > > - if (v->flags & VM_IOREMAP) > > - seq_puts(m, " ioremap"); > > + seq_printf(m, "0x%pK-0x%pK %7ld", > > + v->addr, v->addr + v->size, v->size); > > =20 > > - if (v->flags & VM_SPARSE) > > - seq_puts(m, " sparse"); > > + if (v->caller) > > + seq_printf(m, " %pS", v->caller); > > =20 > > - if (v->flags & VM_ALLOC) > > - seq_puts(m, " vmalloc"); > > + if (v->nr_pages) > > + seq_printf(m, " pages=3D%d", v->nr_pages); > > =20 > > - if (v->flags & VM_MAP) > > - seq_puts(m, " vmap"); > > + if (v->phys_addr) > > + seq_printf(m, " phys=3D%pa", &v->phys_addr); > > =20 > > - if (v->flags & VM_USERMAP) > > - seq_puts(m, " user"); > > + if (v->flags & VM_IOREMAP) > > + seq_puts(m, " ioremap"); > > =20 > > - if (v->flags & VM_DMA_COHERENT) > > - seq_puts(m, " dma-coherent"); > > ++ if (v->flags & VM_SPARSE) > > ++ seq_puts(m, " sparse"); > > +=20 > > - if (is_vmalloc_addr(v->pages)) > > - seq_puts(m, " vpages"); > > + if (v->flags & VM_ALLOC) > > + seq_puts(m, " vmalloc"); > > =20 > > - show_numa_info(m, v); > > - seq_putc(m, '\n'); > > + if (v->flags & VM_MAP) > > + seq_puts(m, " vmap"); > > + > > + if (v->flags & VM_USERMAP) > > + seq_puts(m, " user"); > > + > > + if (v->flags & VM_DMA_COHERENT) > > + seq_puts(m, " dma-coherent"); > > + > > + if (is_vmalloc_addr(v->pages)) > > + seq_puts(m, " vpages"); > > + > > + show_numa_info(m, v); > > + seq_putc(m, '\n'); > > + } > > + spin_unlock(&vn->busy.lock); > > + } > > =20 > > /* > > * As a final step, dump "unpurged" areas. =20 >=20 > This is now a conflict between the net-next tree and the mm-stable tree. ... and now a conflict between te mm-stable tree and Linus' tree. --=20 Cheers, Stephen Rothwell --Sig_/X.LwiEanwP1pFLelG86SM1D Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmXyKPQACgkQAVBC80lX 0GwlxQf/eCrMYHEYG7MSNkVQBOK/HNe6zEdclVJJ9hZMYItowVZn+cAtXqMfMl98 XimL1lFZVTMWBTCvPTvVWcle8LDPDX/RymqePh2S/roMVI31uPKHV6YnA0zm86sn nkgsaJyiuRqHj0wQzAS+X5UUnOW1wYw9C1fEchCXLiFkzBoz3fJul/k7v0DvS5Zi iCRSvYDFAEE1wVf7DkWjZ5J2B0W/+fORMWzf8ljakfi4KH+HRTF6mpLlRPnKI7gw n1tc6lv3ZJsycrZf2h3D48jw8CQ1FwSdReWioCZZaq2fUH63318j3A4wiiOUm3DD KEs+PRyq44sMFcT18czjvkX9kL6iCA== =A/F9 -----END PGP SIGNATURE----- --Sig_/X.LwiEanwP1pFLelG86SM1D--