Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1554567ybs; Mon, 25 May 2020 20:16:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/ygyb5tASmtbGn7JeeXvwGTM3p1g8m8xwqBrJm+diVwjDALAIwldxnWdBCTmrHnyN4gaW X-Received: by 2002:a50:bb6f:: with SMTP id y102mr6528114ede.152.1590462967402; Mon, 25 May 2020 20:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590462967; cv=none; d=google.com; s=arc-20160816; b=MnuAX/R/bZEkKhV+LJ3/gESkq6VLYKkXl8Md7sSq/tu/mCaC9F+wrSxFUJtRpAnhGq d5ovxQUOkamd+c5+Sxi8/5osnr4r6ds4ZHXFhfqf1YvCI1cZpEvmML+YFhzUhF1QH4NR 7lxCzeRnt6kFFmseNwjQ3xk9CJ37IadcXKYfoIEivvN77OlMZuHll2fdCEGaBIxv/fw9 v+GCRCBD1l0sSUa3C+yZJNQKdJhi2Mz1Dm09TBzg0Jp4r9A53IUGQvtboJkwD5yUgubP l4rTlthxNQhzpZZ0XY43BBxDvvcDWE2rG7LOsZaBfugAz5wQLk7a1thrlzf3FaEjMZQn JTqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature; bh=ZRjrx7pR9yRVUBpzSFh71VD0jXNfu8VTXnr6VU1BfQ4=; b=wkG4bQtmyrdSkrNcjEj9z2meuuC8zlsZEeqtndj9B2kc3fs+vXFYe7fci5swy10eJc MVdgrPKx6PMFK4PzwqZJQEtfMh8OsX1FXXbVXiGNMFL5Nwkv3fIGoJWi8mrNuy/v8xZX l8JNIIocqKnf92Kxm2poJssE0h2+mw+oBBIrAl9h2hPBhFIBRNfxTYjUIT6aaE4ahNBr a566vhudj20C1uQWTySwZ3RQLuf+oxYMULdd+bHfpt9l1tp94/Vi4whM3/P2393FxsYo 6oDyKyc9WIrWZUuJJAbfBgGldZsJO+x86t+vN9ChHWzi2XPUf7blACEomErsdodp3nfE vBHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Qt5OhoU5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si10674364eja.77.2020.05.25.20.15.30; Mon, 25 May 2020 20:16:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Qt5OhoU5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388592AbgEZDMu (ORCPT + 99 others); Mon, 25 May 2020 23:12:50 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:37779 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388460AbgEZDMu (ORCPT ); Mon, 25 May 2020 23:12:50 -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 49WJtQ6Mthz9sRW; Tue, 26 May 2020 13:12:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1590462768; bh=ibjYOJ+mjGcTQ7SK0V45i01JnzyGkUrx46Df39/IMCM=; h=Date:From:To:Cc:Subject:From; b=Qt5OhoU57GhRKI5+nV9xTdZiUCDsydy1/brpQKpbkAWDkZmxifs59xK7MWvqHTVUV Uyg5LBXVAmnHMPr+/iZluxJobEjwErOwTO2GftS1zxy8UiiRWQHAyGLArvgFIyXxPI /dX7Bx9ORysmevIB9gH6Kq0HapKaBkO5mKmVbF/lXK7rXD6+CTls/UT9inGJ2k0Zfc et/uiTHbeTA6/cX6CLSjmLnGu1Xz376Lsd+vNsum9vBmlkBTyd7GOqvEZTu0nragW6 UkHRmzCIybbZSdjQwLVcaThDSIt/ECzPqnQLzCqz/hlZS8lGTB1d0hCl3DqNoL5erT GGv2IDBwGh3DA== Date: Tue, 26 May 2020 13:12:43 +1000 From: Stephen Rothwell To: David Miller , Daniel Borkmann , Alexei Starovoitov , Networking Cc: Linux Next Mailing List , Linux Kernel Mailing List , =?UTF-8?B?QmrDtnJuIFTDtnBl?= =?UTF-8?B?bA==?= Subject: linux-next: manual merge of the net-next tree with the bpf tree Message-ID: <20200526131243.0915e58c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/hcL6WG8dNvQARE_6wapKFfn"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/hcL6WG8dNvQARE_6wapKFfn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/xdp/xdp_umem.c between commit: b16a87d0aef7 ("xsk: Add overflow check for u64 division, stored into u32") from the bpf tree and commit: 2b43470add8c ("xsk: Introduce AF_XDP buffer allocation API") from the net-next tree. I fixed it up (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 Cheers, Stephen Rothwell diff --cc net/xdp/xdp_umem.c index 3889bd9aec46,19e59d1a5e9f..000000000000 --- a/net/xdp/xdp_umem.c +++ b/net/xdp/xdp_umem.c @@@ -389,13 -349,10 +353,10 @@@ static int xdp_umem_reg(struct xdp_ume if (headroom >=3D chunk_size - XDP_PACKET_HEADROOM) return -EINVAL; =20 - umem->address =3D (unsigned long)addr; - umem->chunk_mask =3D unaligned_chunks ? XSK_UNALIGNED_BUF_ADDR_MASK - : ~((u64)chunk_size - 1); umem->size =3D size; umem->headroom =3D headroom; - umem->chunk_size_nohr =3D chunk_size - headroom; + umem->chunk_size =3D chunk_size; - umem->npgs =3D size / PAGE_SIZE; + umem->npgs =3D (u32)npgs; umem->pgs =3D NULL; umem->user =3D NULL; umem->flags =3D mr->flags; --Sig_/hcL6WG8dNvQARE_6wapKFfn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl7MiSsACgkQAVBC80lX 0GzFOgf8DouWICsguEs8Ast+8L7nS6YDM+TWtX6ZH+95i3RHscLa0clIZ3dcBqoq YwPG6GVT5/8buiMD+GvcJfoyssMsSMcy2L81QEs/OJDnI225g/i7IE7HnAXNQOAD 0C+D8lfzCcl8vdjp2EJ5VMHsqxzhEzc0dsma3gmH2wDaBfir/O6ZiXQaT1I4BuB1 9zZs9KdM+A5JfKGZkAG26JTUFXyqcTXlURVv5E+bqiUftlxJnX9vUQ7K4KS7kJPt Fg/oR8kayjBCZjxWaWO4rBFYx4Nt9uvwTRGooT2EPkvNrqWgy9i3AJqCT4ULD5LT Ah9TZlb1tz2I8SHxSfphISmXK9hofQ== =v5to -----END PGP SIGNATURE----- --Sig_/hcL6WG8dNvQARE_6wapKFfn--